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

Alexander Dick alex at dick.at
Thu Sep 30 11:19:23 CEST 2010


Javascript history.back() is a bit problematic - for example if you come from an external site (like google) and then click on "back to overview" or "back to list" you get back to the page where you came from - google. 

Currently I use <f:uri.action pageUid="{backPid}" action="index" /> and assign that backPid manually.


On Thu, 30 Sep 2010 11:13:25 +0200, Henjo Hoeksma <me at henjohoeksma.nl> wrote:
> 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.
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list