Easy way to add anchor links with TinyMCE

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
dmgd
Forum Members
Forum Members
Posts: 115
Joined: Tue Jun 06, 2006 1:10 pm

Easy way to add anchor links with TinyMCE

Post by dmgd »

Using the base URL tag in your header causes TinyMCE to send you to a 404 page.  The link tag gives you an

Code: Select all

http://www.example.com/#anchor
  This does not work for me.

TIP:  After you select the anchor to use add {$page_alias} to the link e.g. {$page_alias}#anchor
The produces the link

Code: Select all

http://wwwexample.com/page-alias#anchor
Mark
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Easy way to add anchor links with TinyMCE

Post by Dr.CSS »

Have you tried using the anchor button in tiny?...
dmgd
Forum Members
Forum Members
Posts: 115
Joined: Tue Jun 06, 2006 1:10 pm

Re: Easy way to add anchor links with TinyMCE

Post by dmgd »

I did not explain that very well.

I use the anchor button to create all my anchors
I use the Link button (the little chain) to create the links to the anchor.
In my case simply selecting an anchor form the dropdown box created a link like

Code: Select all

http://www.example.com/#anchor
This would create a 404 because there is no anchor on the default page.
Adding the {$page_alias} created a proper link.
Attachments
linlktoanchoir.jpg
Mark
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Easy way to add anchor links with TinyMCE

Post by Dr.CSS »

Have you looked in extensions > tags for the {anchor} tag?...

Once there click the word anchor and it will show you a help page on how to use it...
Post Reply

Return to “Tips and Tricks”