Page 1 of 1

Alternative Layouts

Posted: 03 Sep 2011, 08:26
by Roues
Is Joomla 1.6 / 1.7 Alternative Layouts support implemented in Phoca Gallery now?

Just create in
\templates\mytemplate\html\com_phocagallery\category\
files
mycatlayout1.php,
mycatlayout1.xml,
mycatlayout2.php,
mycatlayout2.xml

(also copied
\components\com_phocagallery\views\category\tmpl\default.php
\components\com_phocagallery\views\category\tmpl\default.xml
to
\templates\mytemplate\html\com_phocagallery\category\ )

Choice of new types of menu is appeared,
and route is working like:
index.php?option=com_phocagallery&view=category&layout=mytemplate:mycatlayout1&id=19&Itemid=127
index.php?option=com_phocagallery&view=category&layout=mytemplate:mycatlayout2&id=20&Itemid=150

But Phoca 3.0.2 ALWAYS open the
\templates\mytemplate\html\com_phocagallery\category\default.php layout. :(

Re: Alternative Layouts

Posted: 06 Sep 2011, 23:34
by Jan
Hi, no experiences there, for alternative layouts, the best method is overwrite the templates (default.php e.g.) in template - as it written in MVC :idea:

Jan

Re: Alternative Layouts

Posted: 10 Sep 2011, 13:05
by Roues
Thanks for the answer, but unfortunately, only ONE layout for category view - it's very little.
The only opportunity that I see - have to use a lot of conditions in code override default.php layout for category view.