Hi everybody,
I have just started using this and have a quick question.
I want to link to a couple of pages. I have my menu set up as follows.
A
B
C
I want to add a link to content page A, B and C. How would I do this? I don't want any fancy menus, just the link to the page.
Thanks in advance for your help.
Phil
Using links
-
Vin
Re: Using links
You're probably looking for cms_selflink - look in Extensions->Plugins, read the help; you will probably need just 'page' parameter.
P.S. You generate the menu using menu manager, don't you?
P.S. You generate the menu using menu manager, don't you?
Re: Using links
In the template you just use {menu} and it will give you an ul li of your pages, it uses the default menu template "simple_navigation.tpl" so you may need to go to Layout » Menu Manager and click the second tab 'File Templates' and click the icon to the right of minimal_menu.tpl to copy it, it's the simplest menu list template, rename it, in the Database Templates you will see your new menu template click the name of it then you can make changes to it...
The default minimal_menu.tpl will have so if you want it to be "menu" you change it here, then you use {menu template="yourtemplatename"} with no .tpl in your template where you want the menu to appear...
It will look thru your page structure in Content » Pages and make an ul li from your pages...
The default minimal_menu.tpl will have so if you want it to be "menu" you change it here, then you use {menu template="yourtemplatename"} with no .tpl in your template where you want the menu to appear...
It will look thru your page structure in Content » Pages and make an ul li from your pages...
-
Sofia1
Re: Using links
Thank you so much that really helped me! However I don't want it to display all my pages, just some selected page. When i enter
Visit page A
It throughs up a couple of errors. I have already created a content page called PageA.
Visit page A
It throughs up a couple of errors. I have already created a content page called PageA.
Re: Using links
{menu items="pagea,pageb,pagec"}
(optional) items="contact,home" - Use this item to select a list of pages that this menu should display. The value should be a list of page aliases separated with commas.
from the menu help, this will make the menu only display the items in the list.... read the bolded text below \/ ....
(optional) items="contact,home" - Use this item to select a list of pages that this menu should display. The value should be a list of page aliases separated with commas.
from the menu help, this will make the menu only display the items in the list.... read the bolded text below \/ ....
-
Sofia1
Re: Using links
Hello Mark,
Essentially what I need to create is this...
PageA
PageB
PageC
CONTACT ME NOW
When I use the items="pagea, pageb, etc...." it loses any formatting I want.
How would I tell it to keep my formatting as is, and not revert back to a previous menu template as clicking on a link works, but it hides other links, links are numbered, and displays them at different levels.
If you could help me out on this i'd much appreciate it.
You have already helped me loads, so I'll try to pass on my knowledge to others from my learnings here.
Essentially what I need to create is this...
PageA
PageB
PageC
CONTACT ME NOW
When I use the items="pagea, pageb, etc...." it loses any formatting I want.
How would I tell it to keep my formatting as is, and not revert back to a previous menu template as clicking on a link works, but it hides other links, links are numbered, and displays them at different levels.
If you could help me out on this i'd much appreciate it.
You have already helped me loads, so I'll try to pass on my knowledge to others from my learnings here.
Re: Using links
If you are calling your CSS styles from the ul class="menu" copy one of each of the File Templates to see which one has the best calls for what you need, you can make them all with ul class="menu" just look up near the top to find the existing CONTACT ME NOW part...
If you search the forum for $node->id you should find the topic of picking out certain li for specific styling, it involves making a custom menu template...
As for the spacer you just make a new page and for Content Type: use spacer then move it in the page order to where you want it...
If you have more then the pages shown here and you don't want them to show in this menu you may want to make one page as Content Type: sectionheader and in the options tab uncheck Show in Menu: then put the pages not to be shown under it then you can call them from another menu or in page links as needed...
If you put a href="{Contact}" in your template the smarty engine will throw errors so your best bet is to learn how to use the menu manager...
You don't happen to have a link to your site?...
If you search the forum for $node->id you should find the topic of picking out certain li for specific styling, it involves making a custom menu template...
As for the spacer you just make a new page and for Content Type: use spacer then move it in the page order to where you want it...
If you have more then the pages shown here and you don't want them to show in this menu you may want to make one page as Content Type: sectionheader and in the options tab uncheck Show in Menu: then put the pages not to be shown under it then you can call them from another menu or in page links as needed...
If you put a href="{Contact}" in your template the smarty engine will throw errors so your best bet is to learn how to use the menu manager...
You don't happen to have a link to your site?...
-
Pierre M.
Re: Using links
Hello, jumping in 
I thought {menu items="pagea,pageb,pagec"} was the answer but I add 0,02€ :
{menu items="pagea,pageb,pagec" template="mymenutemplate"}
But I don't know menu templates / menu manager well.
There is the selflink-in-UDT/GCB way too, as said by Vin.
Pierre M.
I thought {menu items="pagea,pageb,pagec"} was the answer but I add 0,02€ :
{menu items="pagea,pageb,pagec" template="mymenutemplate"}
But I don't know menu templates / menu manager well.
There is the selflink-in-UDT/GCB way too, as said by Vin.
Pierre M.

