can't seem to get alternative menu item working
Posted: Tue Nov 15, 2011 3:00 am
hello all,
very psyched about alternative menu items, now if I could just make them work! starting off easy, just want to create an alternative item for a single article
copied both
/components/com_content/views/article/tmpl/default.php
/components/com_content/views/article/tmpl/default.xml
updated to
/templates/myTemplate/html/com_content/article/myItem.php
/templates/myTemplate/html/com_content/article/myItem.xml
uploaded. I can see the new menu item appears. when I choose it the internal URL gets build looks like this
so I know it's getting picked up at least partially, but it still uses the default.php layout. obviously, I've poured over http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6. the only place I've deviated from the instructions is by editing the menu item title directly in myItem.xml. because I don't use any language overrides. updated it to this...
you don't have to use language overrides to use alternative layouts right? what am I missing?
thanks in advance!
very psyched about alternative menu items, now if I could just make them work! starting off easy, just want to create an alternative item for a single article
copied both
/components/com_content/views/article/tmpl/default.php
/components/com_content/views/article/tmpl/default.xml
updated to
/templates/myTemplate/html/com_content/article/myItem.php
/templates/myTemplate/html/com_content/article/myItem.xml
uploaded. I can see the new menu item appears. when I choose it the internal URL gets build looks like this
Code: Select all
index.php?option=com_content&view=article&layout=myTemplate:myItem&id=1
Code: Select all
<layout title="Single Article (Custom)" option="com_content_article_view_default_option">
<help
key = "JHELP_MENUS_MENU_ITEM_ARTICLE_SINGLE_ARTICLE"
/>
<message>
<![CDATA[com_content_article_view_default_desc]]>
</message>
</layout>
thanks in advance!