[TYPO3] cooluri and cal (Calendar Base)

Frank Hüttner Frank.Huettner at web-me.org
Thu Sep 20 23:54:14 CEST 2007


Hello,

how to configure cooluri and cal? Here you can see my 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,title</title>
     <saveto>id</saveto>
     <default>0</default>
     <userfunc>tx_cooluri->getPageTitle</userfunc>
   </pagepath>

   <uriparts>
     <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_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>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>
   </uriparts>

   <predefinedparts>
     <part>
       <parameter>tx_ttnews[backPid]</parameter>
     </part>
     <part>
       <parameter>cHash</parameter>
     </part>
     <part>
       <parameter>tx_eeblog[pointer]</parameter>
     </part>
     <part>
       <parameter>tx_eeblog[backPID]</parameter>
     </part>
     <part>
       <parameter>no_cache</parameter>
     </part>
     <part>
       <parameter>tx_ablinklist_pi1[pointer]</parameter>
     </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>
   </predefinedparts>

   <valuemaps>
     <valuemap>
       <parameter>L</parameter>
       <value key="">0</value>
       <value key="en">1</value>
     </valuemap>
     <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>
   </valuemaps>

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

</cooluri>

The links are generated but it doesn't show anything...

- Frank


More information about the TYPO3-english mailing list