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

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 2008

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD