Page 1 of 1

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

Posted: Tue Mar 22, 2011 4:24 am
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

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

Posted: Fri May 06, 2011 4:23 pm
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.

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

Posted: Fri May 06, 2011 5:45 pm
by uniqu3
You could use on the right {cms_selflink dir='anchor' anchorlink='something' text='your text'} if it's anchor on same page.

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

Posted: Fri May 06, 2011 6:11 pm
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.