[TYPO3-english] cooluri: how can I get it work for some parameters?

Jan Bednarik info at bednarik.org
Mon Dec 16 13:16:43 CET 2013


Hi,

everything looks OK. Have you tried to clean all URLs and cache? There 
is no reason why "padref" parameter should be surrounded by apostrophes.

Apostrophes here: deleted='0' AND hidden='0' are not really necessary, 
but they shouldn't cause such issues.

Jan

Dne 13.12.2013 11:30, Wolfgang Maschke napsal(a):
> Hi,
> can't get it work for some parameters. I don't know if single quotes cause the error and how to allow letters like ()/ in the parameter
>
> url: 	http://domain/index.php?id=102&searchtype=v&cHash=e99c51aa173c2a702ab98b81d352e09f&v-make=5
> cooluri: 	http://domain/service/product-search/search-street-products/search-by-vehicle/v/audi/
> » works fine
>
> url: 	http://domain/index.php?id=99&searchtype=r&cHash=c74779d841b2305c2d480ea3317f94b3&padref=1158
> cooluri: 	http://domain/service/product-search/search-street-products/reference-detail/r/'1158'/
> » ends up in "page not found" error
>
> url: 	http://dev.pagidracing.com/index.php?id=102&cHash=e08a28e6939a5e607135ad9b4a643d0a&searchtype=v&v-make=5&v-model=A3 (8L1) Schrägheck%2F Hatchback
> cooluri: 	http://dev.pagidracing.com/service/product-search/search-street-products/search-by-vehicle/v/audi/'A3 (8L1) Schrägheck/ Hatchback'/
> » ends up in "page not found" error
>
>
> What's wrong? Any idea? How to get rid of single quotes?
>
> /wolfgang
>
> cooluri version 1.0.35
>
>
> <snip>
>
> <pagepath>
>      <!-- first non-empty value will be used -->
>      <title>tx_realurl_pathsegment,alias,subtitle,title,name,number,model,typ</title>
>
>      <saveto>id</saveto><!-- READONLY -->
>      <default>0</default><!-- READONLY -->
>
>      <userfunc>tx_cooluri->getPageTitle</userfunc>
>      <t3conv>1</t3conv>
>    </pagepath>
>
>    <uriparts>
>    <part>
>      <parameter>tx_news_pi1[news]</parameter>
>        <lookindb>
>          <to>SELECT title FROM tx_news_domain_model_news WHERE deleted='0' AND hidden='0' AND (uid=$1 OR l10n_parent=$1) AND sys_language_uid={L=0}</to>
>          <t3conv>1</t3conv>
>        </lookindb>
>    </part>
>    <part>
>      <parameter>tx_news_pi1[@widget_0][currentPage]</parameter>
>    </part>
>    <part>
>        <parameter>searchtype</parameter>
>      </part>
>    <part>
> 		<parameter>v-make</parameter>
> 			<lookindb>
> 				<to>SELECT name FROM tx_myext_domain_model_carmake WHERE deleted='0' AND hidden='0' AND (uid=$1 OR l10n_parent=$1) AND sys_language_uid={L=0}</to>
> 				<t3conv>1</t3conv>
> 			</lookindb>
> 	</part>
> 	<part>
> 		<parameter>c-make</parameter>
> 		<lookindb>
> 				<to>SELECT name FROM tx_myext_domain_model_calipermake WHERE deleted='0' AND hidden='0' AND (uid=$1 OR l10n_parent=$1) AND sys_language_uid={L=0}</to>
> 				<t3conv>1</t3conv>
> 		</lookindb>
> 	</part>
> 	<part>
> 		<parameter>v-model</parameter>
> 		<lookindb>
> 				<to>SELECT name FROM tx_myext_domain_model_car WHERE deleted='0' AND hidden='0' AND (uid=$1 OR l10n_parent=$1) AND sys_language_uid={L=0}</to>
> 				<translatetoif>
> 				  <match>^[0-9]+$</match>
> 			    </translatetoif>
> 				<t3conv>1</t3conv>
> 		</lookindb>
> 	</part>
> 	
> 	...
>
> 	<part>
> 		<parameter>padref</parameter>
> 			<lookindb>
> 				<to>SELECT number FROM tx_myext_domain_model_padref WHERE uid=$1</to>
> 				<t3conv>1</t3conv>
> 			</lookindb>
> 	</part>
> 	<part>
> 		<parameter>country</parameter>
> 		<lookindb>
> 				<to>SELECT country FROM tt_address WHERE uid=$1</to>
> 				<t3conv>1</t3conv>
> 			</lookindb>
> 	</part>
>
>      <part>
>        <parameter>tx_eeblog[showUid]</parameter>
>        <lookindb>
>          <to>SELECT subject FROM tx_eeblog_maintable WHERE uid=$1</to>
>          <t3conv>1</t3conv>
>        </lookindb>
>      </part>
>    ...
>    </uriparts>
>
> </snip>
> »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
>
> Wolfgang Maschke
>
> wm at wolfgang-m.de
>
> www.wolfgang-m.de
>
> t +49 (0)931 666 93 14
> m +49 (0)179 1079 187
>
> Burkardinerstraße 32
> 97234 Reichenberg
>
>
>
> webdesign | webentwicklung | cms
> internetkommunikation
>
>
> »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
>



More information about the TYPO3-english mailing list