[TYPO3-english] Cooluri and calendar, listlinks wrong
Sigrid Gramlinger
sigrid at gramlinger.net
Tue Jan 27 10:12:32 CET 2009
Jan Bednarik schrieb:
> Hi,
>
>> At one point in cal-Extension, I have the link-marker where the links
> ...
>> "|". I am definitely no php-geek but understand some code.
>
> that's really strange way how to construct URLs. Could you just send me
> the piece of code.
I think this is one part of the code:
cal/controller/class.tx_cal_controller.php
function extendLastView(){
if(count($this->conf['view.']['allowedViews'])==1 &&
count($this->conf['view.']['allowedViewsToLinkTo'])==1){
$lastview = null;
$view = $this->conf['view.']['allowedViews'][0];
return null;
}
$views = explode('|',$this->conf['lastview']);
if(in_array($this->conf['view'].'-'.$GLOBALS['TSFE']->id,$views)){
return $this->conf['view'].'-'.$GLOBALS['TSFE']->id;
}
$params = array($this->conf['view'],$GLOBALS['TSFE']->id);
switch($this->conf['view']){
case 'event':
case 'organizer':
case 'location':
case 'edit_calendar':
case 'edit_category':
case 'edit_location':
case 'edit_organizer':
case 'edit_event':
$params[]=$this->conf['uid'];
$params[]=$this->conf['type'];
break;
default:
break;
}
return
($this->conf['lastview']!=null?$this->conf['lastview'].'|':'').t3lib_div::csvValues($params,$delim='-',$quote='');
}
Isn't there the case for 'list' missing?
> I'd like to know how the links look withou CoolUri enabled.
http://www.xyz.net/index.php?id=102&tx_cal_controller[getdate]=20090312&tx_cal_controller[lastview]=list-1|list-102&tx_cal_controller[view]=event&tx_cal_controller[type]=tx_cal_phpicalendar&tx_cal_controller[uid]=3&cHash=272f0ee007
(This is from my test-domain, I could give you access, if you want)
>
>> Then I tried to move
>> <part>
>> <parameter>tx_cal_controller[lastview]</parameter>
>> </part> from uriparts to predefinedparts and the list is
>> working. Just for the
>
> This would cause that the parameter is removed from URL completely,
> therefore doesn't cause any mess, but the extension then doesn't have
> the parameter, so it doesn't know where to go back.
>
Hm, yes, but I think, I could probably deal without it... I am just
using a small calendar part.
>> Good night.
>
> Good morning ;)
>
More information about the TYPO3-english
mailing list