Page 1 of 1

How "anchor" works?

Posted: Sat 17. Dec 2005, 15:19
by sustia
Hi, I'm trying to understand how the new "anchor" functionality works, but I can't undestand it.
Image

I put the sign in the content part, but I don't know how I can put in the article.
Suggestions?
Thanks

Posted: Sun 18. Dec 2005, 11:42
by sustia
No ideas? :?

Posted: Sun 18. Dec 2005, 14:14
by flip-flop
Hi sustia,
Oliver Georgi wrote:wenn der Anker gesetzt ist, wird im Frontend-Rendering vor den betreffenden Content Part ein Ankerlink eingefügt:

<a name="cpid152" class="anchorClass"></a>

Oliver
If the anchor is set, in the Frontend Rendering before the concerned content part an anchor link is inserted.

<a name="cpid152" class="anchorClass"></a>

Gruß Knut

Posted: Sun 18. Dec 2005, 15:14
by sustia
fli-flop wrote:Hi sustia,
Oliver Georgi wrote:wenn der Anker gesetzt ist, wird im Frontend-Rendering vor den betreffenden Content Part ein Ankerlink eingefügt:

<a name="cpid152" class="anchorClass"></a>

Oliver
If the anchor is set, in the Frontend Rendering before the concerned content part an anchor link is inserted.

<a name="cpid152" class="anchorClass"></a>

Gruß Knut
Hi fli-flop, thanks for the answer.
In see in the code of the page the anchor, but I still have some doubt
1. How I can know the number of the anchor?
2. How I can insert in the text page? I've tried to insert via FCK editor, but it doesn't work.

Thanks.

Posted: Sun 18. Dec 2005, 19:45
by jscholtysik
Hi sustia,


you can see the number of the anchor (the ID) when you hover over the checkbox before "anchor". Then it shows you the ID beginning with "CPIDxxx"


Make a hyperlink to this CPIDxxx, then you can jump to this anchor.

Example:

Code: Select all

<a href="#CPIDxxx">Anchortext</a>

Joachim

Posted: Sun 18. Dec 2005, 19:57
by sustia
Perfect jscholtysik, thanks a lot, it works perfectly :D

Posted: Mon 19. Dec 2005, 09:00
by Oliver Georgi
always use "#cpid152" - lower case.

You can see the link's name by moving over the label "anchor" in the backend. Then you can see it - but only when content part was stored (only then a unique ID is given).

Oliver

Posted: Mon 19. Dec 2005, 10:20
by sustia
Oliver Georgi wrote:always use "#cpid152" - lower case.

You can see the link's name by moving over the label "anchor" in the backend. Then you can see it - but only when content part was stored (only then a unique ID is given).

Oliver
Yes Oliver, I used the lower case.
Thanks for the explanation and for the feature :D

Posted: Thu 20. Apr 2006, 16:18
by ragi
Where can you see the anchor. I can´t see it and I have the latest version of phpwcms.

Thanks
ragi

Posted: Thu 20. Apr 2006, 19:24
by flip-flop
Hi ragi,

I hope I understand your question correctly.

First at "article content" the anchor switch must set.
Second the following code at the top of the content part is generated by phpWCMS:
------------------------
<a name="cpid49" id="cpid49" class="cpidClass"></a><div style="margin:10px 0 0 0; padding:0 0 0 0; clear:both;"></div>
..
.. content of the content part
..
------------------------
anchor
anchor ID
anchor class
margin:10px 0 0 0; at this example is the "space before".

The anchor ID e.g. [ID:49] you can see at "article information" and "article center".

Gruß Knut

Posted: Mon 24. Apr 2006, 09:47
by ragi
Hi Knut
thanks for your answer.

I have the trouble, that I can´t see the mark (kästchen) where I can switch on the anchor. I see only the space (before, after) and Top Link, but no anchor. How can I implement this?

Posted: Mon 24. Apr 2006, 10:26
by flip-flop
Hi rage,
I have the latest version of phpwcms
This function is implemented starting from the version: "phpwcms_dev_1.2.6_14.12.2005"
Download: http://www.phpwcms-docu.de/index.php?cvs_info_en
I can´t see the mark (kästchen) where I can switch on the anchor....
Have a look to the first post.

Gruß Knut