I am trying to create a new theme for Typo. For this I want the index
page
to have a different layout than the rest of the pages. Can someone
please
help me in this direction, as to how can I set up a new layout for the
index
page apart from the default layout.
I am trying to create a new theme for Typo. For this I want the index page
to have a different layout than the rest of the pages. Can someone please
help me in this direction, as to how can I set up a new layout for the index
page apart from the default layout.
You can’t. Well, not directly. You’d have to have a test in the
default layout and have it select the actual layout partial to use.
Hi ~
You would implement this by checking if the controller/action is the
index
page on the layout for your theme. If it is you would render a
different
partial. I guess you could do it with a before_filter too that
dynamically
assigned the layout, but this could get messy since you would be messing
with the Typo source.
Even I was thinking on the same lines, but somehow it’s not giving me
the
satisfaction (the one that you get when you know the job is perfectly
done ). I guess that I will have to try the else-if loop only.