Copied the original file “core/templates/pages_items.tpl” and placed in “lib/skins/MyTemplate/pages_items.tpl”, this is ignored showing always the original.
Not sure what you are trying to do here. If you are trying to start a new page, it can be done in the Admin Center. Under News & Content, click Pages. On the next page (on the top left) you will see Add Page and View Pages. There you can create a new page and once it has been created, you can link to it by placing www.yoursite.com/index.php/pages/pagename (pagename= the title of the page you created)
Not sure what you are trying to do here. If you are trying to start a new page, it can be done in the Admin Center. Under News & Content, click Pages. On the next page (on the top left) you will see Add Page and View Pages. There you can create a new page and once it has been created, you can link to it by placing www.yoursite.com/index.php/pages/pagename (pagename= the title of the page you created)
No, my code is:
<?php
if(!$allpages)
return;
foreach($allpages as $page)
{
echo '<li><a href="'.url('/pages/'.$page->filename).'"><span class="l"> </span><span class="r"> </span><span class="t">'.$page->pagename.'</span></a></li>';
}
?>
Necessary to customize the view of the top menu item with CSS code
This is the original code.
<?php
if(!$allpages)
return;
foreach($allpages as $page)
{
echo '<li><a href="'.url('/pages/'.$page->filename).'">'.$page->pagename.'</a></li>';
}
?>
Better than a thousand words, one picture… or two
The first image is with custom file modified and put in “lib/skins/mytemplate/pages_items.tpl”
To see the correct menu item, second image, we must modify the original file “core/templates/pages_items.tpl”
What’s the skin you’re using? Are you putting it into the correct folder?
What’s the skin you’re using? Are you putting it into the correct folder?
I use my own skin. It is located in
lib/skins/mvs/ pages_items.tpl
I have modified other tpl files and placed in the path and they work properly.
Gracias.
Can’t tell, it’s all lowercase, permissions correct? I’ll check the code