[TYPO3-english] How to transform CoolUri to a parameter and remove a part?

Jan Bednarik info at bednarik.org
Fri Jan 16 22:11:05 CET 2009


Hi,

> I can link to the print version with
> www.example.com/something.php?type=98, too. But I want to create
> something like www.example.com/print/something.php whereas /print should
> be transformed to the parameter type=98 and should be removed then.
> Those print links are not cached and I don't want to create a CoolUri
> for each of them manually. I've tried to solve the problem with
> valuemaps and translateifnotfound enabled, but it doesn't work. Do you
> have any ideas?

you need to map type=98 to print. You can do that e.g. using valuemaps. 
That would, by default give you something/print.php. So what you need to 
do is to add "type" to paramorder.

So, your config should look like:

<valuemaps>
     <valuemap>
       <parameter>L</parameter>
       <value key="">0</value>
       <value key="en">1</value>
       <value key="de">2</value>
     </valuemap>
     <valuemap>
       <parameter>type</parameter>
       <value key="">0</value>
       <value key="print">98</value>
     </valuemap>
   </valuemaps>

   <paramorder>
     <param>L</param>
     <param>type</param>
   </paramorder>

Regards

-- 
Jan Bednarik
www.bednarik.org - web about Typo3 in czech


More information about the TYPO3-english mailing list