1

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.

1
  • Small advice: Please update your joomal version to 2.5.20 May 14, 2014 at 14:41

2 Answers 2

3

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

1
  • this exactly the path... but joomla can't see the alternative layout.
    – FFrewin
    Jun 13, 2014 at 13:19
2

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.

1
  • oh man, that was vicious... Thanks for posting back your solution!
    – JinSnow
    Mar 26, 2016 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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