Elxis CMS Forum

Support => General => Topic started by: ROUBOS on November 11, 2009, 23:59:37

Title: Different layout for different categories of the site. Is it possible?
Post by: ROUBOS on November 11, 2009, 23:59:37
Hi,
Just a thought.
I would like to make a site, where the home page has a nice flash slideshow. The menu can be horizontal across the top (dropdown).
Now when selecting a menu item, to display a list of documents, it will display the list in a similar layout but without the flash. And then display the document page when selected.

Is this possible? Is it like making two different templates? Or can it be achieved with the use of javascript or something?

Any thoughts?

Thanks in advance.

EDIT>>> Just a thought now. Could it be like the Home page have the flash playing, and then the same area just loads the content when clicked on. Right? Do I make sense?
Title: Re: Different layout for different categories of the site. Is it possible?
Post by: speck on November 12, 2009, 09:06:10
in the template where you have the flash animation and you want it only in home page you can do this:

<?php if ($option == 'com_frontpage') { ?>

   <object width="960" height="260" bla bla bla bla ....................
         ...................
         ...................
   </object>
<?php } ?>

in this way, your animation appear only in home page  ;)


Title: Re: Different layout for different categories of the site. Is it possible?
Post by: ROUBOS on November 12, 2009, 14:35:34
thanks a lot :)
Title: Re: Different layout for different categories of the site. Is it possible?
Post by: ROUBOS on November 25, 2009, 17:28:35
Did it and it works thanks.

I have a problem though. I have a drop-down menu above my flash, and the menu appears behind the flash movie  :-\
Title: Re: Different layout for different categories of the site. Is it possible?
Post by: CREATIVE Options on November 25, 2009, 18:30:02
I have a drop-down menu above my flash, and the menu appears behind the flash movie  :-\

TIP: z-index & trasparent  ;)
Title: Re: Different layout for different categories of the site. Is it possible?
Post by: datahell on November 26, 2009, 08:28:51
You can not solve this issue when you deal with flash movies even if you use the z-index.
It is a well known problem of the flash objects. Try to move the flash in a place where does not creates this problem.