[TYPO3-mvc] Link viewhelper and 'back pid'

Henjo Hoeksma me at henjohoeksma.nl
Thu Sep 30 11:13:25 CEST 2010


On 2010-09-30 11:03:06 +0200, Christian Zenker said:

> On Thu, 30 Sep 2010 09:43:10 +0200, Henjo Hoeksma <me at henjohoeksma.nl> wrote:
>> is it an idea to extend the link view helper with an optional 
>> 'returnPageUid' parameter?
>> What are your 2 cnts ?
> 
> Hi.
> 
> Having this in an official view helper would induce people to a bad 
> programming style IMHO.
> Actually such information should be stored in a Session (or you use 
> javascript:history.back();).
> 
> Don't get me wrong: There is nothing wrong if you'd like to use the url 
> for that - that's ok - and fluid (and extbase) should actually support 
> that. Using a backPid in the url is actually a very simple way to 
> achieve your goal. But I don't think fluid should propagate such style 
> of programming. Additionally I don't see why a fluid ViewHelper should 
> support yet another parameter just to achieve something you could as 
> well do by adding a value in the parameters array.
> 
> Christian.

Hi Christian,

thanks for your reply. Would you care to elaborate on why you would 
call it bad programming?

Relying on JS is possible in most cases, but not always. Adding an 
extra argument manually is less clean than using a supported argument - 
?

H.



More information about the TYPO3-project-typo3v4mvc mailing list