I want to create an alternative layout for an article in Joomla 2.5.16. In my template's override folder I duplicated the current template override file (default.php) and renamed to myarticle.php.
But for whatever reason, I can't see my new article.php file as an option in article manager's layout option. It still displays only the default.php.
-
Small advice: Please update your joomal version to 2.5.20– Joomla AgencyMay 14, 2014 at 14:41
2 Answers
Make sure you have the folder structure correct:
Component path: /components/com_content/views/article/tmpl/default.php
Template path: /templates/mytemplate/html/com_content/article/myarticle.php
-
this exactly the path... but joomla can't see the alternative layout.– FFrewinJun 13, 2014 at 13:19
I fell into the trap of putting an underscore in my override file name. This is not allowed (https://docs.joomla.org/Layout_Overrides_in_Joomla#Module_Alternative_Layouts), and if you do it, your override will not appear.