Easy tt_news page browse urls with CoolURI



 

It's been a while that I've left the ugly tx_ttnews[pointer] variable in my URLs. Today, I changed that to just have numbers specifying the browsed page number. I did it with CoolURI.

When you've got a list or latest view of tt_news on one of your pages, you might have a page browser.

The tt_news page browser urls in this kind of situation include the parameter, tx_ttnews[pointer] which can be put into your CoolUri configuration to convert it to it's number.

In my CoolUriConf.xml file, I just added the following part within the <uriparts> section:

 

<part>
     <parameter>tx_ttnews[pointer]</parameter>
</part>

So now, my urls no longer look like this:

http://www.example.com/news/&tx_ttnews[pointer]=1

They now look like:

http://www.example.com/news/1/

And that's the way I like it.

 

 

 


No comments

Add comment

* - required field

*

CAPTCHA image for SPAM prevention
If you can't read the word, click here.
*
*
TYPO3 CMS Computers & Technology
 

Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.