Alternative Layouts

Phoca Gallery - image gallery extension
Roues
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 03 Sep 2011, 08:09

Alternative Layouts

Post 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. :(
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49160
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Alternative Layouts

Post 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
If you find Phoca extensions useful, please support the project
Roues
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 03 Sep 2011, 08:09

Re: Alternative Layouts

Post 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.
Post Reply