Yes, you can.
For this you also need an xml file with the same name.
I.e. food.php and food.xml
Just copy and rename ~/components/com_content/tmpl/article/default.xml to ~/templates/your-template/html/com_content/article/food.xml
Then open this file to edit thisto i.e.Or if you have a multilingual backend you can replace the DEFAULT_LANGUAGE_CONSTANTS with YOUR_OWN_LANGUAGE_CONSTANTS...
For this you also need an xml file with the same name.
I.e. food.php and food.xml
Just copy and rename ~/components/com_content/tmpl/article/default.xml to ~/templates/your-template/html/com_content/article/food.xml
Then open this file to edit this
Code:
<layout title="COM_CONTENT_ARTICLE_VIEW_DEFAULT_TITLE" option="COM_CONTENT_ARTICLE_VIEW_DEFAULT_OPTION"> <help key = "Menu_Item:_Single_Article" /> <message> <![CDATA[COM_CONTENT_ARTICLE_VIEW_DEFAULT_DESC]]> </message></layout>
Code:
<layout title="Single Food Article" option="foodarticle"> <help key = "Menu_Item:_Single_Article" /> <message> Display a single selected food article </message></layout>
Statistics: Posted by Mr. Wimpy — Mon Nov 11, 2024 9:15 am