Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1396

Administration Joomla! 5.x • Re: Template for article

$
0
0
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 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>
to i.e.

Code:

<layout title="Single Food Article" option="foodarticle">  <help    key = "Menu_Item:_Single_Article"  />  <message>    Display a single selected food article  </message></layout>
Or if you have a multilingual backend you can replace the DEFAULT_LANGUAGE_CONSTANTS with YOUR_OWN_LANGUAGE_CONSTANTS...

Statistics: Posted by Mr. Wimpy — Mon Nov 11, 2024 9:15 am



Viewing all articles
Browse latest Browse all 1396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>