Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Is it Possible?
Is it possible? to make different permalink format on each section?
The example like this
I have two section, news and event then I wan make on news section will be format just titile but on event section the permalink will be incude date posting
Please help me
Thanks
Offline
Re: Is it Possible?
YES of course that is possible , you can use this plugins : GPB Pemanent Links
Last edited by kus (2007-06-04 03:52:34)
Offline
Re: Is it Possible?
Kus, please online on Your Yahoo Messenger, I need you guide ;)
Please
Last edited by jauhari (2007-06-04 04:05:53)
Offline
Re: Is it Possible?
Is it possible
As you homepage`s title says:
Everything Is POSSIBLE
:)
But AFAIK there is no plugin that can handle permlink formats depending on sections.
If you want do develop one on your own, it might be a good idea to start with:
(Possible there are other ways and maybe there are betters, but this is the way i would do it at six o’clock in the morning without sleeping:)
- Use
/title
as default permlink format in your prefs - Add
/year/month/day/title
to all events by using<txp:if_section name='event' />
and<txp:posted format=""/>
- Add a function by
register_callback(‘xxx_handle_permlink’, ‘pretext’);
- Check
$_SERVER['REQUEST_URI']
withxxx_handle_permlink
and eleminate everything but/title
with some RegEx
Edit: kus was faster and he knows a plugin ….
Last edited by Bastian (2007-06-04 04:10:59)
Offline
Pages: 1