User Tools

Site Tools


res:plugins:internalurls

Internal URLs

Description

Adds the BBCode elements “iurl” and “entryurl” to build links to static pages and blog entries.

Author: Piero VDFN

Usage

[iurl=PAGE]link text[/iurl]

adds a link to the requested static page, whereas PAGE may be:

  • index - blog root
  • contact - contact page
  • page:about or static:about - static page with the given name
  • post:entry210320-231132 or entry:entry210320-231132 - blog entry with the given ID
    (Add comments to create a link to the comments section in the given entry. Example: [iurl=entry:entry210320-231132 comments]link text[/iurl])
  • cat:2 or category:2 - overview page for the category with the given ID
  • relative:some/relative/path - given relative path based on your blog's base URL
[entryurl=entry210213-215343]link text[/entryurl]

adds a link to the entry with the given ID.

  • Add comments to create a link to the comments section in the given entry. Example: [iurl=entry:entry210320-231132 comments]link text[/iurl]
  • Leave the link text empty to use the entry's subject instead.

Download

res/plugins/internalurls.txt · Last modified: 2021/03/20 22:53 by arvid

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki