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 Agency May 14 '14 at 14:41

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

| improve this answer | |
  • this exactly the path... but joomla can't see the alternative layout. – FFrewin Jun 13 '14 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.

| improve this answer | |
  • oh man, that was vicious... Thanks for posting back your solution! – JinSnow Mar 26 '16 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.