[TYPO3] CoolURI ab_downloads won't work properly
Marius Shekow
info at planetnexuiz.de
Sun Aug 12 20:00:36 CEST 2007
Hi there.
First of all: I used to be a RealURL user, but today I switched to
CoolURI. Everything worked out of the box. Now I'd like to get the
ab_downloads extension with nice looking URLs.
Anyway, the only resource about XML examples for extensions for CoolURI
I found was the one here:
http://docs.google.com/View?docid=dd33gg45_3f8j96p - are there any more?
However, since there was a listing for ab_linklist (which is very
similar to ab_downloads) I tried to create my own XML, and this is how
it looks like:
--------------------------------------------------
--------------------------------------------------
<!-- ab_downloads XML config additions -->
<uriparts>
...
<part>
<parameter>tx_abdownloads_pi1[category_uid]</parameter>
<lookindb>
<to>SELECT label FROM tx_abdownloads_category WHERE uid=$1</to>
<translatetoif>
<match>^[0-9]+$</match>
</translatetoif>
<urlize>1</urlize>
</lookindb>
</part>
<part>
<parameter>tx_abdownloads_pi1[uid]</parameter>
<lookindb>
<to>SELECT label FROM tx_abdownloads_download WHERE uid=$1</to>
<translatetoif>
<match>^[0-9]+$</match>
</translatetoif>
<urlize>1</urlize>
</lookindb>
</part>
...
</uriparts>
<predefinedparts>
...
<part>
<parameter>tx_abdownloads_pi1[action]</parameter>
</part>
<part>
<parameter>tx_abdownloads_pi1[pointer]</parameter>
</part>
...
</predefinedparts>
<valuemaps>
...
<valuemap>
<parameter>tx_abdownloads_pi1[action]</parameter>
<value key="category">getviewcategory</value>
<value key="propose-a-new-download">getviewaddnewdownload</value>
<value key="open-download">getviewclickeddownload</value>
<value
key="show-details-for-download">getviewdetailsfordownload</value>
<value
key="report-broken-download">getviewreportbrokendownload</value>
<value key="rate-download">getviewratedownload</value>
</valuemap>
<valuemap>
<parameter>tx_abdownloads_pi1[category_uid]</parameter>
<value key="home">0</value>
</valuemap>
...
</valuemaps>
--------------------------------------------------
--------------------------------------------------
However, the following problems occur:
The link to the details of a page works fine, but links such as "report
broken link" or "rate" do also point to the details.
The generated url looks like this:
<path_to_page>/<root-download-category>/<label-of-the-file>/
Any suggestions?
Marius Shekow
More information about the TYPO3-english
mailing list