MVS105 Posted July 5, 2010 Report Share Posted July 5, 2010 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. Quote Link to comment Share on other sites More sharing options...
Jeff Posted July 5, 2010 Report Share Posted July 5, 2010 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) Quote Link to comment Share on other sites More sharing options...
MVS105 Posted July 5, 2010 Author Report Share Posted July 5, 2010 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>'; } ?> Quote Link to comment Share on other sites More sharing options...
MVS105 Posted July 5, 2010 Author Report Share Posted July 5, 2010 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" Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 6, 2010 Administrators Report Share Posted July 6, 2010 What's the skin you're using? Are you putting it into the correct folder? Quote Link to comment Share on other sites More sharing options...
MVS105 Posted July 7, 2010 Author Report Share Posted July 7, 2010 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 8, 2010 Administrators Report Share Posted July 8, 2010 Can't tell, it's all lowercase, permissions correct? I'll check the code Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.