Recent Topics

Anchor tag in posts

Started by on Aug 12, 2017 – Last touched: Aug 20, 2017

Aug 12, 2017 22:58    

How do I add an anchor tag in posts?

I can enter the <a name> and <a href>, and the interface lists the anchor, but the link
<a href="#search">xx</a> attempts to go to the skin:

Can I insert some php to make this work?

Aug 13, 2017 17:00

A - I couldn't find a good discussion of anchors in the description.
B - After adding the plugin and making sure it was enabled, the editor still had the "Short Links: Link to a Post" grayed and disabled.
C - Strangely, I can add an anchor <a name="search">, and the link insert option has an option where you can select existing anchors in the post. What's that used for?

Aug 14, 2017 03:05

A: Use ((#anchorname link text))

B: If the toolbar is disabled it means you need to turn on the plugin in the "Text Renders" block of the edit screen.

C: Can you screenshot that please?

Aug 15, 2017 17:57

B: Okay, I enabled the plugin in Text Renders. But, when I select Link to a Post I get the strange dialog box that pulls links from a different collection, and no options to change it. The post in the other collection is manual page, so I guess the plugin only works with that type of entry.
A: There is no place to enter this
C: Attached

P. S. I can get to the anchor by manually adding the anchor to the URL of the post in the browser, or by using that as the link URL ( in the post. I just don't know understand why it tries to pass the anchor to the skin ( when I select the anchor as in the screenshot.

Aug 17, 2017 18:30

Since the last upgrade to 6.8.10 I face the same problem. Till then the plugin worked pretty fine. What has changed?

Aug 20, 2017 14:49

@dbell154 I confirm the issue you mentioned.

After adding some anchors to the post (using something like: <a id="anchor">Anchor</a>), the TinyMCE plugin automatically offers the option to add a link to those anchors (as displayed in the screenshot you uploaded). The resulting code would be something like: <a href="#anchor">Link to anchor</a>, and that's what b2evolution interprets as a link to its skin folder (adding the anchor at the end of the URL).

@saunders Are you sure you saw this working before? The anchor links seems to be broken on versions previous to 6.8.10. Can you please give us more details. i.e.: specific versions where you tested, skins used, etc.

In any case, the issue is already in the dev's pipeline and a fix should be delivered asap.

Form is loading...

powered by b2evolution CMS – This forum is powered by b2evolution CMS, a complete engine for your website.