[actually not exactly solved] anchor tags to different page?

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
ladyr0gue
Forum Members
Forum Members
Posts: 91
Joined: Fri Feb 17, 2012 4:25 pm

[actually not exactly solved] anchor tags to different page?

Post by ladyr0gue »

Having a wee problem with my anchor tag - you see I have an anchor halfway down a page which I would like to access from other pages. trying things like

Code: Select all

 {anchor anchor='example#ANC' text='Example Anchor (ANC)'}
and

Code: Select all

 {anchor anchor='example.html#ANC' text='Example Anchor (ANC)'}
and even

Code: Select all

 {anchor anchor='http://www.mysite.com/cmsms/example.html#ANC' text='Example Anchor (ANC)'}
and I keep getting results like
"mysite.com/cmsms/page-I-was-on/#example#ANC
"mysite.com/cmsms/page-I-was-on/#example.html#ANC
"mysite.com/cmsms/page-I-was-on/#http://www.mysite.com/cmsms/example#ANC

rather than
"mysite.com/cmsms/example#ANC

where am I going wrong? how do I get off the page? :)
Last edited by ladyr0gue on Tue May 01, 2012 4:21 pm, edited 2 times in total.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: anchor tags to different page?

Post by staartmees »

don't use the # in an anchor.

{anchor anchor='ANC' text='Example Anchor (ANC)'}
ladyr0gue
Forum Members
Forum Members
Posts: 91
Joined: Fri Feb 17, 2012 4:25 pm

Re: anchor tags to different page?

Post by ladyr0gue »

ar, there we go... thanks. just wondering - is there anything wrong with using html to do these things? it seems to work fine...
ladyr0gue
Forum Members
Forum Members
Posts: 91
Joined: Fri Feb 17, 2012 4:25 pm

Re: [solved] anchor tags to different page?

Post by ladyr0gue »

so if I can't use the hash tag - how do I link to an anchor on a different page? see the thing is, I want to go from the page I was on to "mysite.com/cmsms/example#ANC .. not "mysite.com/cmsms/page-I-was-on#ANC ... ??? :)
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: [actually not exactly solved] anchor tags to different p

Post by staartmees »

first place the anchor ANC on your page example,
second place the link mysite.com/cmsms/example#ANC on the page your on.
ladyr0gue
Forum Members
Forum Members
Posts: 91
Joined: Fri Feb 17, 2012 4:25 pm

Re: [actually not exactly solved] anchor tags to different p

Post by ladyr0gue »

staartmees wrote:first place the anchor ANC on your page example,
second place the link mysite.com/cmsms/example#ANC on the page your on.
I think thats where I was having trouble - cms_selflink doesn't like the #tag and the wysiwyg doesn't offer a way to link to anchors - so would you just put in standard html link?

eidt: so what I mean to say is - I know how to make html anchor tag links from another page I just wondered if there was a cmsms {} tag way to do it ...

and also wondered if for any reason cmsms tags in general were particularly preferable to html tags other than because they are slightly smaller....
Post Reply

Return to “CMSMS Core”