[TYPO3-english] optimizing COOLuri for cal
    Joe Berger 
    thomas.muench at hfm-wuerzburg.de
       
    Tue Jul 13 17:36:38 CEST 2010
    
    
  
Hi Jan,
with <part after="-"> I got a perfect link. Thank you!
The other problem still remains. :-)
My xml-Configuration:_
  <uriparts>
(...)
	<part>
		<parameter>tx_cal_controller[uid]</parameter>
		<lookindb>
			<to>SELECT name FROM tx_cal_location WHERE uid=$1</to>
			<translatetoif><match>^[0-9]+$</match></translatetoif>
			<urlize>1</urlize>
		</lookindb>
	</part>
	<part>
		<parameter>tx_cal_controller[location]</parameter>
		<lookindb>
			<to>SELECT name FROM tx_cal_location WHERE uid=$1</to>
			<translatetoif><match>^[0-9]+$</match></translatetoif>
			<urlize>1</urlize>
		</lookindb>
	</part>
(...)
  </uriparts>
 <predefinedparts>
(...)
	<part><parameter>tx_cal_controller[view]</parameter></part>
	<part><parameter>tx_cal_controller[lastview]</parameter></part>	
	<part><parameter>tx_cal_controller[type]</parameter></part>
(...)
  </predefinedparts>
http://www.xxx.de/veranstaltungen/artikel/2010-07-13/event_title.html 
http://www.xxx.de/veranstaltungen/ort/4.html?tx_cal_controller[getdate]=2010
0713 
4 is the uid of the location.
Changing 
<parameter>tx_cal_controller[location]</parameter>
to
<parameter>tx_cal_controller[uid]</parameter>
I get the links 
http://www.xxx.de/veranstaltungen/artikel/2010-07-13/event-title/event-title
.html 
http://www.xxx.de/veranstaltungen/ort/4.html?tx_cal_controller[getdate]=2010
0713 
Changing the order of the parts too, I get the following links
http://www.xxx.de/veranstaltungen/artikel/2010-07-16/1261/1261.html 
http://www.xxx.de/veranstaltungen/ort/location/location.html?tx_cal_controll
er[getdate]=20100713 
One last question:
Is there a simple way to remove 'tx_cal_controller[getdate]=20100713' at the
end of the link?
Thanks for your great patience and support.
Joe
    
    
More information about the TYPO3-english
mailing list