Jump to content

Recommended Posts

Posted

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)

Posted

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>';
}

?>

Posted

Better than a thousand words, one picture... or two

menu01.png

menu02.png

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"

Posted

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.

imagen01.jpg

Gracias.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...