How to add anchor tag to menu [SOLVED]

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
becfret
New Member
New Member
Posts: 8
Joined: Tue Mar 18, 2014 1:34 pm

How to add anchor tag to menu [SOLVED]

Post by becfret »

Hi,

I'm trying to add an anchor tag to the menu so that when someone clicks on 'Contact Us' in the navigation they are taken to the bottom of the page where all the contact details are. My attempts so far have either done nothing, caused a 404 error or have linked to the home page - am stumped!

Thanks for your help,

Becky
Last edited by becfret on Tue Mar 18, 2014 5:29 pm, edited 1 time in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: How to add anchor tag to menu

Post by JohnnyB »

Are you using the menu manager?
There are few ways to do this....
1) look under the Extensions and then Tags in the Admin for 'Anchor'
{anchor anchor='here' text='Scroll Down'}

2) you can use a Smarty tag:
<a href="{$smarty.get.page}#anchor">Anchor</a>

3) I believe the CGSimpleSmarty and/or CGExtensions modules has an anchor tag or a way to create an anchor from one of the tools it provides.

4) menu manager:
Where the <a> link is:
{$node->alias}#anchor
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
becfret
New Member
New Member
Posts: 8
Joined: Tue Mar 18, 2014 1:34 pm

Re: How to add anchor tag to menu

Post by becfret »

I added <li>{anchor anchor='anchor' text='Contact'}</li> to menu manager and it's working perfectly.

Thank you so much :)

Becky
Post Reply

Return to “The Lounge”