How "anchor" works?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

How "anchor" works?

Post 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
Campeones del mundo!
Vegetables!
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

No ideas? :?
Campeones del mundo!
Vegetables!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post 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.
Campeones del mundo!
Vegetables!
jscholtysik

Post 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
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Perfect jscholtysik, thanks a lot, it works perfectly :D
Campeones del mundo!
Vegetables!
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post 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
Campeones del mundo!
Vegetables!
ragi
Posts: 44
Joined: Wed 22. Sep 2004, 09:31
Contact:

Post by ragi »

Where can you see the anchor. I can´t see it and I have the latest version of phpwcms.

Thanks
ragi
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
ragi
Posts: 44
Joined: Wed 22. Sep 2004, 09:31
Contact:

Post 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?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply