[CLOSED] Anchor tags still don't work in some cases

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

[CLOSED] Anchor tags still don't work in some cases

Post by frankmanl »

CMSMS 1.9.4
problem: an anchor redirects to the homepage
Biggles_downunder found a solution: http://forum.cmsmadesimple.org/viewtopi ... =8&t=52967, but that does not work for a link to an anchor on another page.

I use pretty URLs, I added the {metadata showbase="false"} line in my template and now I can link to an anchor on the same page.
However: linking to an anchor on another page is not possible.
I used cms_selflink to link to that page, then manually changed the link to the anchor:
Image.
TinyMCE accepted that and stored the page well, but when I visit the page in my browser, the link is empty:

Code: Select all

<p><a href="">link to page with anchor</a></p>
So is there something else I have to do before a link to an anchor on another page gets to work?

Frank
Last edited by frankmanl on Sun Nov 10, 2013 3:51 am, edited 1 time in total.
dmagill
Forum Members
Forum Members
Posts: 165
Joined: Thu Nov 15, 2007 6:55 pm

Re: Anchor tags still don't work in some cases

Post by dmagill »

Sorry to poke a old post.

I have a difficult client, using 1.8.2... I know it is old... and we are having similar problem as this fellow.

We are using Pretty URLs, and I have made the system as up to date as I can.

http://soulsistercreations.com/index.ph ... ccessories
All the named anchors at the top right menu of the page I had to hard coded in. when I create the Named Anchor from within the editor and do not modify the code, it ignores the "index.php/store-front/accessories" part of link and treats it like the named anchor is a parent or top level page. I left "Bazura Bags" as a default named anchor link. Using the default Editor Named Anchor, ignores everything and takes me back to the home page.

At the same time I have a brand new CMSMS install and run into the same problem. I don't think I am doing anything wrong, but I have been up and down this forum, added metatag false and edited my Tiny scripts, made sure everything was up to date and I am not sure what else to do.

Personally I would like to say farewell to the client, but I don't make that call.

Thank you.
Anything would be appreciated.
uniqu3

Re: Anchor tags still don't work in some cases

Post by uniqu3 »

You could use on the right {cms_selflink dir='anchor' anchorlink='something' text='your text'} if it's anchor on same page.
dmagill
Forum Members
Forum Members
Posts: 165
Joined: Thu Nov 15, 2007 6:55 pm

Re: Anchor tags still don't work in some cases

Post by dmagill »

Thanks unique3.

I had seen that but knowing my client I think it has to come wit bumpers and a safety net.

I will give it a try and see what I can do to make this easier on her and me.

Thanks again.
Post Reply

Return to “CMSMS Core”