Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-07-30 10:31:59
- gago
- Plugin Author
- Registered: 2011-07-28
- Posts: 24
Root relative paths switcher
Hi at all,
I love root relative paths because they do not make the browser source code so big. Furthermore I have to change the site URL in my online textpattern CMS because of the different URLs between local and online.
Example: Recently it is http://www.domain.tld/dir ~ My wish is to change it into this way /dir
Thus I want to suggest an additional radio button in the admin interface where you can switch between the different path models (maybe ‘use short paths or long paths’).
Regards gago
Last edited by gago (2011-07-30 10:32:27)
<txp:addicted />
Offline
Re: Root relative paths switcher
Original question & solution came up in the German forum thread: Root relative Pfade
Using a plug-in one solution would be (excerpt):
<txp:rah_replace from='<txp:site_url />' to="/">
My idea was to ask the almighty tag handler dev team for an additional ‘type’ for <txp:page_url /> … type=“r” (root) … request_uri without domain. Does that ‘type’ make sense?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline