Thursday, 15 July 2010

php - more than one text separator style per template in joomla 3.0 -



php - more than one text separator style per template in joomla 3.0 -

let me first explain trying do. in joomla 3.0 have created menu_item_text_separator override template http://docs.joomla.org/help30:menus_menu_item_text_separator. seems though joomla recognize 1 default text separator per template ok if want one. ideally have selection of selecting custom 1 in template folder default 1 joomla recognizes. inform have done create happen.

in template have folder named html had folder called mod_menu within it. in mod_menu folder have .php files called:

default_separator.php custom_separator.php

i go menu manager , edit menu item want display text separator for. i go 'template style' http://docs.joomla.org/help30:menus_menu_item_text_separator , custom style. can take default one.

so wonder if way joomla works can have 1 default per template. possible have more one?

any advice welcome.

regards

w9914420

sorry got long comment.

okay let's start beginning. templates have set of parameters defined in templatedetails.xml file. template style simple record containing info template , array of parameter options have selected. can create many template styles want given template each 1 has own name. in menu can select of styles , assign menu item. ....

what talking has nil template styles. talking using layout override mod_menu. because using file same name core layout file should 1:1 replacement.

from understand of want do, should instead create new named replacemen both default_separator , default.php. that's because alternative layout field going replacement default.php yourname.php , in replacement when load template called separator automatically going yourname_separator rather default_separator because assumes appending _separator base of operations name. if has advantages such able create more complex layout , allow load different sub layouts conditionally example.

php joomla joomla-extensions joomla3.0 joomla-module

No comments:

Post a Comment