[TYPO3-mvc] How to properly set view
Dawid Pacholczyk
dpacholczyk at gmail.com
Thu Oct 21 14:53:02 CEST 2010
Ok i have in my flexform something like that
<settings.view>
<TCEforms>
<label>View</label>
<config>
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">LIST</numIndex>
<numIndex index="1">Artile->list</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">SINGLE</numIndex>
<numIndex
index="1">Article->single</numIndex>
</numIndex>
</items>
<maxitems>1</maxitems>
<size>1</size>
</config>
</TCEforms>
</settings.view>
ANd it`s not working :( My ext always invoke default action
2010/10/21 Christine Gerpheide <cgerpheide at gmail.com>
> 2010/10/21 Dawid Pacholczyk <dpacholczyk at gmail.com>
>
> > Hello List, again :)
> >
> > Damn I have a lot of questions. But at the moment I`m wondering about one
> > thing.
> >
> > In old school programming I was getting the view from flexform, than
> > checked
> > it with switch and use the proper function
> >
> > How to use/set properly view ?
> >
> > In ext_localconf I`ve set default controller and action for example ->
> > array(
> > // An array holding the controller-action-combinations that are
> > accessible
> > 'Article' => 'index,show,new,create,delet';
> >
> > And now. I want to make LIST, SINGLE, LATEST view
> >
> > Should I make in indexAction of articleController something like that: ??
> >
> > switch($this->settings['view']) {
> > case 'LIST':
> > $this->listAction();
> > ....
> > ...
> >
> >
> > Or maybe it works diffrent way now ?
> >
> > Best regards,
> > Dawid "Fixus" Pacholczyk
> >
> > --
> > Dawid Pacholczyk
> > tel: 502-054-334
> > gg: 5564051
> > skype: dpacholczyk
> > http://typo3blog.pl (only polish version at the moment)
> > _______________________________________________
> > TYPO3-project-typo3v4mvc mailing list
> > TYPO3-project-typo3v4mvc at lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
> >
>
>
> Hi again :)
>
> Try looking up "switchableControllerActions", which can be defined from a
> flexform or TS. This will dictate which action is run, which as a result
> will render the corresponding action.
>
> Christine
>
> --
> Christine Gerpheide ✈ larissa, greece @ www.pheide.com
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Dawid Pacholczyk
tel: 502-054-334
gg: 5564051
skype: dpacholczyk
http://typo3blog.pl (only polish version at the moment)
More information about the TYPO3-project-typo3v4mvc
mailing list