Recent Topics

1 Oct 01, 2015 11:24    

[ Version 5 at the moment but will be upgrading to latest soon. ]

I am looking for a way to link to another post. I have been using normal HTML anchor tags but if I change my URL format, the path to my blog or my hostname then these will all break.
Is there a way to link to another post in an independent way? In MantisBT I can link to another bug using the notation #123 and to a specific bug-note using ~123 so that when the text is generated the appropriate link is generated. Does b2evolution support something like this?

3 Oct 01, 2015 15:11

Hmm.. kind of but not really. The title is not the identity of the post i.e. if I correct a typo in the title all the links to it will have to be changed too. The identity is usually an identifier of some kind that is intrinsically linked to the post. It is usually the database id of the post because you can change every part of the post and any configuration option in the system but the post id will always be the post reference.

I'd have thought something like this would have been build into the core of the system and not be a plugin.

5 Oct 01, 2015 17:41

WikiLinks will work because if you correct a typo you can still keep the old post slug in addition to the new one, so wikilinks will still know where to link to.

We will add a [[#123]] notation though.

6 Oct 01, 2015 17:56

That's a bit more like it. I always wondered what the point of permalinks were!

<a href="?p=123">Some title with potential mistakes</a>

But I still have to maintain the title. It's still not quite as automatic as #123 (or similar notation) that digs out the correct title and formats the link according to the current SEO configuration.

Maybe I'll have to invent my own render plugin to do this. :(

7 Oct 02, 2015 11:46

Sorry Francois didn't see your post until after my comment was submitted, thanks for adding the hash notation. I think it will help.

While the permalink/slug stuff kind of works I have found it a bit fiddly when correcting title spelling mistakes and then re-jig or delete erroneous slugs.


Form is loading...