[TYPO3] CoolUriConf.xml - CALL FOR ALL to build a global XML

Frank Hüttner Frank.Huettner at web-me.org
Mon Feb 4 10:49:19 CET 2008


Andreas Becker schrieb:
> Hi Folks
> 
> On an on I read threads about CoolUri and people looking for xml parts.
> I start this Thread in the hope to help all those COOL people.
> If you are already using cooluri please join in and add your xml parts to
> the longest working CoolUriConf.xml.
> Then everyone can pick out the working parts he needs for his side or simply
> use it as it is - complete ;-)
> 
> ALL Parts should stay inside the Parts in an ALPHABETICAL ORDER! This will
> help us to avoid duplications.
> If you have improvements or find an error please document it at the end to
> keep the XML between ----------- and ------------- clean. Thanks. Andi
> 
> Meanwhile added are.
> Languages - (showing the languages after the domain Name)
> ab_linklist
> cal
> commerce
> ee_blog
> mm_forum
> tt_news
> 
> 
> Here is the start CoolUriConf.xml
> --------------------------------------------------------------------------------------------------------------
> =======================================================
> 
> <?xml version="1.0" encoding="utf-8"?>
> <cooluri>
>   <cooluris>1</cooluris>
> 
>   <urlsuffix>.html</urlsuffix>
> 
>   <removetrailingslash>1</removetrailingslash>
> 
>   <cache>
> 
>     <usecache>1</usecache>
> 
>     <params2cool>
>       <checkforchangeevery>1</checkforchangeevery>
>     </params2cool>
> 
>     <cool2params>
>       <translateifnotfound>0</translateifnotfound>
>       <oldlinksvalidfor>365</oldlinksvalidfor>
>     </cool2params>
> 
>     <cacheparams>0</cacheparams>
> 
>     <pagenotfound>
>       <status>HTTP/1.0 404 Not Found</status>
>       <behavior type="message"><![CDATA[ <h1>Page not found!</h1>
> ]]></behavior>
>     </pagenotfound>
> 
>   </cache>
> 
>   <pagepath>
> 
>     <title>tx_realurl_pathsegment,alias,subtitle,title</title>
> 
>     <saveto>id</saveto>
> 
>     <default>0</default>
> 
>     <userfunc>tx_cooluri->getPageTitle</userfunc>
> 
>     <t3conv>1</t3conv>
> 
>   </pagepath>
> 
>   <uriparts>
> 
>     <part>
>       <parameter>tx_ablinklist_pi1[category_uid]</parameter>
>       <lookindb>
>         <to>SELECT label FROM tx_ablinklist_category WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_ablinklist_pi1[uid]</parameter>
>       <lookindb>
>         <to>SELECT label FROM tx_ablinklist_link WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[category]</parameter>
>       <lookindb>
>         <to>SELECT title FROM tx_cal_category WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[uid]</parameter>
>       <lookindb>
>         <to>SELECT title FROM tx_cal_event WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[view]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[getdate]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[lastview]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[type]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[gettime]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[preview]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_cal_controller[page_id]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_commerce_pi1[commerce]</parameter>
>       <lookindb>
>         <to>SELECT cat FROM tx_commerce_pi1 WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_commerce_pi1[commerce]</parameter>
>       <lookindb>
>         <to>SELECT pr FROM tx_commerce_pi1 WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_eeblog[showUid]</parameter>
>       <lookindb>
>         <to>SELECT subject FROM tx_eeblog_maintable WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>mm_forum_pi1[mm_forum]</parameter>
>       <lookindb>
>         <to>SELECT PI1_PID FROM mm_forum_pi1 WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>mm_forum_pi3[mm_forum]</parameter>
>       <lookindb>
>         <to>SELECT PI3_PID FROM mm_forum_pi3 WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_ttnews[tt_news]</parameter>
>       <lookindb>
>         <to>SELECT title FROM tt_news WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_ttnews[pointer]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_ttnews[calendarYear]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_ttnews[calendarMonth]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_ttnews[cat]</parameter>
>     </part>
> 
>   </uriparts>
> 
>   <predefinedparts>
> 
>     <part>
>       <parameter>tx_ablinklist_pi1[pointer]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_commerce_pi1[catUid]</parameter>
>       <lookindb>
>         <to>SELECT title FROM tx_commerce_categories WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_commerce_pi1[showUid]</parameter>
>       <lookindb>
>         <to>SELECT title FROM tx_commerce_products WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_eeblog[pointer]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_eeblog[backPID]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi3[folder]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi3[action]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi3[messid]</parameter>
>       <lookindb>
>         <to>SELECT subject FROM tx_mmforum_pminbox WHERE uid=$1</to>
>         <translatetoif>
>           <match>^[0-9]+$</match>
>         </translatetoif>
>         <urlize>1</urlize>
>       </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi3[userid]</parameter>
>         <lookindb>
>           <to>SELECT username FROM fe_users WHERE uid=$1</to>
>           <translatetoif>
>             <match>^[0-9]+$</match>
>           </translatetoif>
>           <urlize>1</urlize>
>         </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[action]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[fid]</parameter>
>         <lookindb>
>           <to>SELECT forum_name FROM tx_mmforum_forums WHERE uid=$1</to>
>           <translatetoif>
>             <match>^[0-9]+$</match>
>           </translatetoif>
>           <urlize>1</urlize>
>         </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[tid]</parameter>
>         <lookindb>
>           <to>SELECT topic_title FROM tx_mmforum_topics WHERE uid=$1</to>
>           <translatetoif>
>             <match>^[0-9]+$</match>
>           </translatetoif>
>           <urlize>1</urlize>
>         </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[pid]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[page]</parameter>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[user_id]</parameter>
>         <lookindb>
>           <to>SELECT username FROM fe_users WHERE uid=$1</to>
>           <translatetoif>
>             <match>^[0-9]+$</match>
>           </translatetoif>
>           <urlize>1</urlize>
>         </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_mmforum_pi1[user_id]</parameter>
>         <lookindb>
>           <to>SELECT username FROM fe_users WHERE uid=$1</to>
>           <translatetoif>
>             <match>^[0-9]+$</match>
>           </translatetoif>
>           <urlize>1</urlize>
>         </lookindb>
>     </part>
> 
>     <part>
>       <parameter>tx_ttnews[backPid]</parameter>
>     </part>
> 
>     <part>
>       <parameter>cHash</parameter>
>     </part>
> 
>     <part>
>       <parameter>no_cache</parameter>
>     </part>
> 
>   </predefinedparts>
> 
>   <valuemaps>
> 
>     <valuemap>
>       <parameter>tx_ablinklist_pi1[category_uid]</parameter>
>       <value key="home">0</value>
>     </valuemap>
> 
>     <valuemap>
>       <parameter>tx_ablinklist_pi1[action]</parameter>
>       <value key="show-category">getviewcategory</value>
>       <value key="propose-a-new-link">getviewaddnewlink</value>
>       <value key="open-link">getviewclickedlink</value>
>       <value key="show-details-for-link">getviewdetailsforlink</value>
>       <value key="report-broken-link">getviewreportbrokenlink</value>
>       <value key="rate-link">getviewratelink</value>
>     </valuemap>
> 
>     <valuemap>
>       <parameter>tx_mmforum_pi3[folder]</parameter>
>       <value key="inbox">inbox</value>
>       <value key="outbox">outbox</value>
>       <value key="archive">archiv</value>
>     </valuemap>
> 
>     <valuemap>
>       <parameter>tx_mmforum_pi3[folder]</parameter>
>       <value key="read">message_read</value>
>       <value key="write">message_write</value>
>       <value key="delete">message_del</value>
>     </valuemap>
> 
>     <valuemap>
>       <parameter>tx_mmforum_pi1[action]</parameter>
>       <value key="topics">list_topic</value>
>       <value key="posts">list_post</value>
>       <value key="user">forum_view_profil</value>
>       <value key="reply">new_post</value>
>       <value key="open">new_topic</value>
>       <value key="report">post_alert</value>
>       <value key="edit">post_edit</value>
>       <value key="delete">post_del</value>
>       <value key="all_posts">post_history</value>
>       <value key="unanswered">list_unans</value>
>       <value key="unread">list_unread</value>
>       <value key="all_read">reset_read</value>
>       <value key="user">forum_view_profil</value>
>       <value key="subscribe">set_havealook</value>
>       <value key="unsubscribe">del_havealook</value>
>       <value key="favorite">set_favorite</value>
>       <value key="no_favorite">del_favorite</value>
>       <value key="delete">post_del</value>
>       <value key="prefix">list_prefix</value>
>       <value key="attachments">get_attachment</value>
>     </valuemap>
> 
>     <valuemap>
>       <parameter>L</parameter>
>       <value key="">0</value>
>       <value key="english">1</value>
>       <value key="deutsch">2</value>
>       <value key="thai">3</value>
>       <value key="chinese">4</value>
>       <value key="arabic">5</value>
>       <value key="hebrew">6</value>
>       <value key="greek">7</value>
>       <value key="russian">8</value>
>       <value key="hinti">9</value>
>       <value key="japanese">10</value>
>     </valuemap>
> 
>   </valuemaps>
> 
>   <paramorder>
>     <param>L</param>
>   </paramorder>
> 
>   <partorder>
>      <part>pagepath</part>
>      <part>uriparts</part>
>      <part>predefinedparts</part>
>      <part>valuemaps</part>
>   </partorder>
> 
> </cooluri>
> 
> ============================================================
> ------------------------------------------------------------------------------------------------------------------------
> 
> Documentation and Comments: (please start them here below)
Hi,

after some chat with Andreas you can download the XML-File 
(http://web-me.org/CoolUriConf.xml). Also you can have some information 
for cooluri on my site (http://web-me.org/attainment_cooluri.html) - at 
the moment only in german ;-)

Frank Hüttner


More information about the TYPO3-english mailing list