Typo3 and Joomla in china

typo3,joomla,drupal,php

 

Realurl configuration

Sometimes we need friendly reading url  which realurl can support it powerfully.But when we built our own extension ,What should we pay attension to ?

At first .Note that make the link with plugin class method.

$this->pi_getPageLink($pageId,”,$param).

Here $pageId is the Id of page ,$param is like this

$param    = array(‘tx_bookonline_pi1[cID]‘=>$cat_uid);

Then we just need change the configuration file  of realurl to let it know how to translate our parameter tx_bookonline_pi1[cID].

add this code

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['postVarSets'] = array(

‘_DEFAULT’ => array (

‘category’ => array(
array(

‘GETvar’ => ‘tx_bookonline_pi1[cID]‘,
‘lookUpTable’ => array(

‘table’ => ‘tx_bookonline_category’,

‘id_field’ => ‘uid’,

‘alias_field’ => ‘name’,

‘addWhereClause’ => ‘ AND NOT deleted’

)

),

),

);

So realurl can work and translate the url to /category/name.Good luck!

Typo3 step one

Though i have been devodted to typo3 for just half and one year.But i must say thank you to typo3.It lets me know what is cms , how to build one site quickly , how  powerful typo3 is , what typo3 can do but others not.

As a cms , typo3 is complicated , at the same time , typo3 is excellent。Like a tool such as a computer , you can use computer to do more flexible work, but at the beginning , learning computer is not so easy as you thought,especially code program。From now on , i will share my experience on typo3 with people who want to know typo3.Hope it is useful for you , my friend.

Regular expression