Page 1 of 1
Re: Using cms_selflink to link to an anchor on another page
Posted: Tue Jun 27, 2006 3:23 pm
by cyberman
hmm, what have you done - this works for me (v0.13):
{cms_selflink dir="anchor" page="aboutme" anchorlink="#location" text="613 N. Broadway, Suite E, Pittsburg, KS 67662" label="How to find us: "}
But attribute text does not support html tags like
.
Re: Using cms_selflink to link to an anchor on another page
Posted: Wed Jun 28, 2006 5:44 am
by cyberman
Tygger2512 wrote:
Am I just not understanding the syntax
Think so

... that
is
not an anchor, but that
What have I done to get an anchor:
1. I've set a page with "aboutme" in page alias.
2. I put this inside
3. I've set now a second page "test 2"
4. There I've put this inside
Code: Select all
{cms_selflink dir="anchor" page="aboutme" anchorlink="#location" text="613 N. Broadway, Suite E, Pittsburg, KS 67662" label="How to find us: "}
or
Code: Select all
{cms_selflink dir="anchor" page="aboutme" anchorlink="#location" text="613 N. Broadway, Suite E, Pittsburg, KS 67662" title="How to find us: "}
And it works ... if you wanna only set an anchor to current page you don't need the page attribute.
Re: Using cms_selflink to link to an anchor on another page
Posted: Thu Jun 29, 2006 8:11 am
by cyberman
You were right - you can make only a link to page or a page internal anchor

. Please look at help file
Note! Only one of the above may be used in the same cms_selflink statement!!
Think this have nothing to do with pretty_urls or other config.php options ...
Re: Using cms_selflink to link to an anchor on another page
Posted: Fri Jun 30, 2006 5:50 am
by cyberman
For an internal page anchor please try to kill the page parameter ...
Your test has a problem
Posted: Sun Sep 30, 2007 1:30 am
by kendo451
Not sure that you are/were aware that CMS selflink chops out the page content above the anchor.
Your test page does not have enough content in it to test properly. Make a full page with several anchors and a list of self-links to the anchors at the top of the content block.
You will see that in both Firefox and IE CMSMS chops the content above the anchor. ( I am using CMSMS version 1.1.2) I'm not sure if this is a bug or on purpose.
Ken
Re: Using cms_selflink to link to an anchor on another page
Posted: Mon Oct 01, 2007 12:04 am
by Dr.CSS
You do have the {metadata} tag in the ?...
I put mine right after {metadata} this should give you a