how can I anchor?
how can I anchor?
I want to use anchors for long articles.
After I didn't find how to insert them I tried to figure out how to jump to a specific content part with in an article. They have IDs, but I can't figure out in the link, how to do that. (I've been to http://www.phpwcms.de/forum/viewtopic.php?t=720 for the Meaning of the IDs
Thanks a lot
Macangelo
After I didn't find how to insert them I tried to figure out how to jump to a specific content part with in an article. They have IDs, but I can't figure out in the link, how to do that. (I've been to http://www.phpwcms.de/forum/viewtopic.php?t=720 for the Meaning of the IDs
Thanks a lot
Macangelo
mark this

PACE

PACE
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
it makes an anchor like you'll see on this page http://www.phpwcms.de/index.php?id=14,0,0,1,0,0 in form of this button


Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
I think you would just have to hard code in the anchors your self in to the article. You could use a link list content type to actually link to them but I think for making the actual anchors you will have to do that yourself. I have never seen a way to add that using the phpwcms interface. But I could be wrong.
yes, i think ionrock is right, you have to hardcode it...
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
Hi ionrock, Hi Jan212yes, i think ionrock is right, you have to hardcode it...
I tried to dump
Code: Select all
<a name="discription"></a>Have a great start into the week
Macangelo
you jump like <a href="#Zieldef">Ziel für Verweise definieren</a>
with a name you define the targetpoint
with a name you define the targetpoint
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
I haven't tried this out, but isn't there a replacement tag for anchors in front.func.inc.php?
Just try {A:}, x beeing your article id (I guess)... Tell me if I'm wrong, it wouldn't be the first time!

Code: Select all
// anchor link
$search[22] = '/\{A:(.*?)\}/i';
$replace[22] = '<a name="$1"></a>';
i think the snip you posted is to clean up exicisting anchors between rendering, but maybe i'm wrong, going to examine that
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
-
jaredhales
- Posts: 35
- Joined: Wed 17. Mar 2004, 17:26
- Contact:
any new developments on this? is there a way to easily link to specific content parts?
or do we just have to put the anchors in and link to them manually?
ideally, we could use a replacement tag where you would provide a content part id, and you are brought to the containing article at that specific content part. maybe something like:
{CONTENT:XXX}
where XXX is the content part's ID.
or do we just have to put the anchors in and link to them manually?
ideally, we could use a replacement tag where you would provide a content part id, and you are brought to the containing article at that specific content part. maybe something like:
{CONTENT:XXX}
where XXX is the content part's ID.
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact: