Anchors in Articles
Anchors in Articles
Hi
PHPWCMS has been great since I know it. It is improving rapidly. I have a request that is somehow like a nostalgic feature of the old plain html days. Who needs it when you have a cms with articles, content parts and so on? - I'm talking about anchors.
Well, I have a client who is running a portal for expats in Germany - promoting her new book and hosting events, information and so on. Her articles are pretty long some time and she is longing for a way to structure them. ( e.g. http://www.vitalissues-germany.com/inde ... _president )
Is there a chance? Thanks a lot!
Macangelo
PHPWCMS has been great since I know it. It is improving rapidly. I have a request that is somehow like a nostalgic feature of the old plain html days. Who needs it when you have a cms with articles, content parts and so on? - I'm talking about anchors.
Well, I have a client who is running a portal for expats in Germany - promoting her new book and hosting events, information and so on. Her articles are pretty long some time and she is longing for a way to structure them. ( e.g. http://www.vitalissues-germany.com/inde ... _president )
Is there a chance? Thanks a lot!
Macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
you could use hidden tables and open them up via javascript (like used on: http://www.counter-strike.ch look for: "Lineup Lanfan - mBs" and click on it)
a link to the top of the page is easily created through:
[TOP]{IMAGE:top_link_.gif}[/Top]
or [TOP]YOURTEXT[/TOP]
a link to the top of the page is easily created through:
[TOP]{IMAGE:top_link_.gif}[/Top]
or [TOP]YOURTEXT[/TOP]
Last edited by brans on Fri 27. Aug 2004, 15:40, edited 2 times in total.
For an inter-article anchor you can use {A:AnchorName} then call it from anywhere in the article with [INT #AnchorName]go to anchor[/INT]
Not sure of any 'pan-article' anchoring or JUMP to ANCHOR.
There is a JUMP to article thing somewhere but I am not sure if you can parse an achor name to it though.
Not sure of any 'pan-article' anchoring or JUMP to ANCHOR.
There is a JUMP to article thing somewhere but I am not sure if you can parse an achor name to it though.
Last edited by pSouper on Sat 28. Aug 2004, 09:41, edited 2 times in total.
Code: Select all
{A:AnchorName}
Code: Select all
[ID #Anchorname]go to anchor[/ID]
Thanks y'all
What I tried so far is - the link:
with comm_president beeing the alias of the article and overseas2004 the anchor name.
The anchor is:
which is in a different content part (is that the problem?)
the problem is: the ID-replacemt-tag is not replaced - it is displayed as put into the article in the backend - but: when I delete the part #overseas2004 it works.
Thank you all for your support
Macangelo
What I tried so far is - the link:
Code: Select all
[ID comm_president#overseas2004]Voting from Overseas in 2004[/ID]
The anchor is:
Code: Select all
{A:#overseas2004}
the problem is: the ID-replacemt-tag is not replaced - it is displayed as put into the article in the backend - but: when I delete the part #overseas2004 it works.
Thank you all for your support
Macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
Thanks pSouper!
just to make sure: same article but different content part does not work?
Macangelo
just to make sure: same article but different content part does not work?
Macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
I just tried the same thing in the same content part. Does not work either.
any ideas?
Macangelo
any ideas?
Macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
yup: different contents part within the article is fine.
once a page is processed by phpWCMS it is effectivly sent to the browser as a single HTML page. this means that in theory (untested by me) you can also use Anchors in the template and link to them from any article that uses that temple.
e.g: somewhere in the right you may use an anchor and for every article that uses that structure/template you can use a link to that anchor.
once a page is processed by phpWCMS it is effectivly sent to the browser as a single HTML page. this means that in theory (untested by me) you can also use Anchors in the template and link to them from any article that uses that temple.
e.g: somewhere in the right you may use an anchor and for every article that uses that structure/template you can use a link to that anchor.
Ok, but do you have an Idea why my Link + anchor do not work? - (I would prefer to edit anchor an link in the article so that the user can do it...)
Thanks a lot
Macangelo
Thanks a lot
Macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
Hi pSouper,
you deserve an another drink - it works! At least - it jumps - but not where it is supposed to be! The problem might be: my
shows, when parsed, a target="_top":
<a href="#overseas2004" target="_top">
Where the hell does that come from?
Thanks a lot!
Macangelo
you deserve an another drink - it works! At least - it jumps - but not where it is supposed to be! The problem might be: my
Code: Select all
[INT #overseas2004]go to my anchor[/INT]
<a href="#overseas2004" target="_top">
Where the hell does that come from?
Thanks a lot!
Macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
The just goes to where you place the anchor: no text is visible to indicate this, it just jumps there.
try it out on a very long article: place an anchor in the middle so that the top of the page is NOT visible then set the [INT] at top pf the page -if the page jumps down it works fine: if not then the _top is taking presidence and makes this all useless
not sure about the _top (it is in the reptag)
i could write you a new reptag if you like but it you would need to re-insert it with every update.
try it out on a very long article: place an anchor in the middle so that the top of the page is NOT visible then set the [INT] at top pf the page -if the page jumps down it works fine: if not then the _top is taking presidence and makes this all useless
not sure about the _top (it is in the reptag)
i could write you a new reptag if you like but it you would need to re-insert it with every update.
Thanks for the offer - I'm not sure that's the reason
I made the browser window smaller so the anchor is no longer visible.
I replaced the INT-replacement-tag with
it jumps allways to the same place. Something seems to be screwed up!
Check it out:
http://www.vitalissues-germany.com/inde ... _president
the first 2 links below the title...
I made the browser window smaller so the anchor is no longer visible.
I replaced the INT-replacement-tag with
Code: Select all
<a href="#overseas2004">Voting from Overseas in 2004</a><br>
<a href="#uselection">U.S. PRESIDENTIAL ELECTION</a><br>
Check it out:
http://www.vitalissues-germany.com/inde ... _president
the first 2 links below the title...
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign