简体   繁体   中英

Joomla 3 articles category template override not working

I try to override an article category template with file newslist.php located in \\templates\\mediavolga\\html\\com_content\\category\\newslist.php

I set this file as alternative layout in category settings, but it does't works.

What I'am doing wrong, how to override default category blog template?

If you want to override the default category blog template, then it needs to have the same name as the default does. Try this: 1) copy all the files in components/com_content/views/category/tmpl/ into the folder \\templates\\mediavolga\\html\\com_content\\category\\ 2) edit them and add an "echo 'this is my override blog.php'" to the files. If you see the output, then you can start modifying it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM