Page 1 of 1

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

Posted: Tue May 01, 2012 11:18 am
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? :)

Re: anchor tags to different page?

Posted: Tue May 01, 2012 12:58 pm
by staartmees
don't use the # in an anchor.

{anchor anchor='ANC' text='Example Anchor (ANC)'}

Re: anchor tags to different page?

Posted: Tue May 01, 2012 4:01 pm
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...

Re: [solved] anchor tags to different page?

Posted: Tue May 01, 2012 4:20 pm
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 ... ??? :)

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

Posted: Tue May 01, 2012 4:51 pm
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.

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

Posted: Tue May 01, 2012 4:57 pm
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....