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!