Thundered

Ramblings of a Teenage Boy.

How to have different permlinks in Textpattern

One of my biggest pet peeves about Textpattern was that you couldn't have two different permlinks running at the same time. However, thanks to the plugin sgb_url_handler, it's possible! 1. Download and install the plugin. 2. Go to the plugin page and click 'edit'. Insert a code something like this into the plugin: $sections['domain'] = 'section_title'; $sections['about'] = 'section_title'; $sections['content'] = 'section_title'; That's the code I have in plugin because the sections that I have are 'Domain' 'About' and 'Content'. These should be different for you. For example, if you had a section called 'Random' then your code would be as follows: $sections['random'] = 'section_title'; The 'section_title' part of the code tells which permlink style you want to use for that particular section. If you wanted to use the permlink style that only displayed the title, this is what your code would look like: $sections['random'] = 'section_title'; 3. After you have put that in your plugin, go to 'Admin' at the top of your Textpattern home page and click preferences underneath. Then, where it says 'Permanent Link Mode' select the style you want. The style I selected was '/year/month/day/title' but it depends on your permlink preference. Congratulations, now you have different permlinks for your website with Textpattern! I'm sure there are other ways to do this, but this is how I did it. If you need any clarification, feel free to contact me.
Posted in Online,coding, on November 18, 2007 at 08:20 PM
Permalink