Recent Topics

Anchor tag in posts

Started by on Aug 12, 2017 – Contents updated: Sep 15, 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:

http://www.tylerhosting.com/b2e/skins/mystique_skin/#search

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 (http://www.tylerhosting.com/b2e/dbell.php/watch-your-z-s-and#search) in the post. I just don't know understand why it tries to pass the anchor to the skin (http://www.tylerhosting.com/b2e/skins/mystique_skin/#search) 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.

Sep 14, 2017 09:04

For further readers:

Please note that we are not considering this as a bug.

This behavior is the downside of a feature meant to make skins development easier. However, inserting anchors or # into posts is perfectly possible by the use of short links syntax. i.e. ((#anchorname link text)) or ((#)).

Thank you.

Sep 14, 2017 12:18

@mgsolipa wrote earlier:

@dbell154 I confirm the issue you mentioned.

@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.

It work on bootstrap blog skin and on bricks skin until the quoted update to 6.8.10. After a next upgrade to 6.9.3 the Anchor plugin has disappeared from editor. the plugin is not working any more (see post #5.

It is in a way awkward because # is commonly used and short links don't work in some bootstrap features.


Form is loading...

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