[TYPO3-mvc] Strange link generation including all object params?

Henjo Hoeksma me at henjohoeksma.nl
Fri Sep 23 23:10:17 CEST 2011


On 2011-09-23 13:13:06 +0000, Oliver Wand said:

> Hi Claus,
> 
> still confused about that link behaviour but your hint helped. Thanks!
> 
> Cheers,
> 
> Oliver
> 
> 
> Am 23.09.11 13:05, schrieb Claus Due:
>> Hi Oliver,
>> 
>> Not sure why this is not done automatically (it should be, as far as I 
>> remember). But, try using:
>> 
>>> arguments="{projectToShow: projectToShow.uid}
>> 
>> 
>> This should work.
>> 
>> Cheers,
>> Claus
>> 
>> On Sep 23, 2011, at 12:56 PM, Oliver Wand wrote:
>> 
>>> Dear all,
>>> 
>>> while working on a new Extbase extension I just ran into a rather stange
>>> link generation behaviour that never occured before.
>>> 
>>> The link is set in Fluid as:
>>> 
>>> <f:link.action action="show" controller="Projects"
>>> arguments="{projectToShow:
>>> projectToShow}">{projectToShow.linktext}</f:link.action>
>>> 
>>> and rendered within the sourcecode like this:
>>> 
>>> index.php?id=5&amp;tx_myext_pi1%5BprojectToShow%5D%5Buid%5D=1&amp;tx_myext_pi1%5BprojectToShow%5D%5Bpid%5D=18&amp;tx_myext_pi1%5BprojectToShow%5D%5Btitle%5D=project%201&amp;tx_myext_pi1%5BprojectToShow%5D%5Blinktext%5D=i%20am%20the%20super%20duper%20linktext&amp;tx_myext_pi1%5BprojectToShow%5D%5Bdescription%5D=%3Cb%3EProjektbeschreibung%3C%2Fb%3E%0D%0ALorem%20ipsum%20dolor%20sit%20amet%2C%20consetetur%20sadipscing%20elitr%2C%20sed%20diam%20nonumy%20eirmod%20tempor%20invidunt%20ut%20labore%20et%20dolore%20magna%20aliquyam%20erat%2C%20sed%20diam%20voluptua.%20At%20vero%20eos%20et%20accusam%20et%20justo%20duo%20dolores%20et%20ea%20rebum.%20Stet%20clita%20kasd%20gubergren%2C%20no%20sea%20takimata%20sanctus%20est%20Lorem%20ipsum%20dolor%20sit%20amet.%20Lorem%20ipsum%20dolor%20sit%20amet%2C%20consetetur%20sadipscing%20elitr%2C%20sed%20diam%20nonumy%20eirmod%20tempor%20invidunt%20ut%20labore%20et%20dolore%20magna%20aliquyam%20erat%2C%20sed%20diam%20voluptua.%20At%20vero%20eos%20e 
>>> 
> t%2
>>> 0accusam%20et%20justo%20duo%20dolores%20et%20ea%20rebum.%20Stet%20clita%20kasd%20gubergren%2C%20no%20sea%20takimata%20sanctus%20est%20Lorem%20ipsum%20dolor%20sit%20amet.&amp;tx_myext_pi1%5BprojectToShow%5D%5Bfacts%5D=%3Cb%3EFacts%3C%2Fb%3E%0D%0ALorem%20ipsum%20dolor%20sit%20amet%2C%20consetetur%20sadipscing%20elitr%2C%20sed%20diam%20nonumy%20eirmod%20tempor%20invidunt%20ut%20labore%20et%20dolore%20magna%20aliquyam%20erat%2C%20sed%20diam%20voluptua.%20At%20vero%20eos%20et%20accusam%20et%20justo%20duo%20dolores%20et%20ea%20rebum.%20Stet%20clita%20kasd%20gubergren%2C%20no%20sea%20takimata%20sanctus%20est%20Lorem%20ipsum%20dolor%20sit%20amet.%20Lorem%20ipsum%20dolor%20sit%20amet%2C%20consetetur%20sadipscing%20elitr%2C%20sed%20diam%20nonumy%20eirmod%20tempor%20invidunt%20ut%20labore%20et%20dolore%20magna%20aliquyam%20erat%2C%20sed%20diam%20voluptua.%20At%20vero%20eos%20et%20accusam%20et%20justo%20duo%20dolores%20et%20ea%20rebum.%20Stet%20clita%20kasd%20gubergren%2C%20no%20sea%2 
>>> 
> 0ta
>>> kimata%20sanctus%20est%20Lorem%20ipsum%20dolor%20sit%20amet.&amp;tx_myext_pi1%5BprojectToShow%5D%5Bdownloadinfo%5D=Downloadinfo%20here...&amp;tx_myext_pi1%5BprojectToShow%5D%5Bimages%5D=1&amp;tx_myext_pi1%5BprojectToShow%5D%5Bvideos%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bdownloads%5D=1&amp;tx_myext_pi1%5BprojectToShow%5D%5Btstamp%5D=1316613939&amp;tx_myext_pi1%5BprojectToShow%5D%5Bcrdate%5D=1316612764&amp;tx_myext_pi1%5BprojectToShow%5D%5Bcruser_id%5D=1&amp;tx_myext_pi1%5BprojectToShow%5D%5Bdeleted%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bhidden%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bstarttime%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bendtime%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_oid%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_id%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_wsid%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_label%5D=&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_state%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_stage%5D 
>>> 
> =0&
>>> amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_count%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_tstamp%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3ver_move_id%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bt3_origuid%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bsys_language_uid%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bl10n_parent%5D=0&amp;tx_myext_pi1%5BprojectToShow%5D%5Bl10n_diffsource%5D=a%3A14%3A%7Bs%3A16%3A%22sys_language_uid%22%3BN%3Bs%3A6%3A%22hidden%22%3BN%3Bs%3A5%3A%22title%22%3BN%3Bs%3A11%3A%22teaserimage%22%3BN%3Bs%3A7%3A%22caption%22%3BN%3Bs%3A8%3A%22linktext%22%3BN%3Bs%3A11%3A%22description%22%3BN%3Bs%3A5%3A%22facts%22%3BN%3Bs%3A12%3A%22downloadinfo%22%3BN%3Bs%3A6%3A%22images%22%3BN%3Bs%3A6%3A%22videos%22%3BN%3Bs%3A9%3A%22downloads%22%3BN%3Bs%3A9%3A%22starttime%22%3BN%3Bs%3A7%3A%22endtime%22%3BN%3B%7D&amp;tx_myext_pi1%5BprojectToShow%5D%5Bteaserimage%5D=slideImage1_02.jpg&amp;tx_myext_pi1%5BprojectToShow%5D%5Bcaption%5D=teaserimage&amp;tx_myext_pi1%5Baction%5D 
>>> 
> =sh
>>> ow&amp;tx_myext_pi1%5Bcontroller%5D=Projects&amp;cHash=572849e5ef43a513784525d0890a3ce5 
>>> 
>>> 
>>> Obviously clicking the link leads to an error:
>>> 
>>> Property 'uid' could not be set. (#1236783102)
>>> Property 'tstamp' could not be set. (#1236783102)
>>> Property 'crdate' could not be set. (#1236783102)
>>> Property 'cruser_id' could not be set. (#1236783102)
>>> Property 'deleted' could not be set. (#1236783102)
>>> Property 'hidden' could not be set. (#1236783102)
>>> Property 'starttime' could not be set. (#1236783102)
>>> Property 'endtime' could not be set. (#1236783102)
>>> Property 't3ver_oid' could not be set. (#1236783102)
>>> Property 't3ver_id' could not be set. (#1236783102)
>>> Property 't3ver_wsid' could not be set. (#1236783102)
>>> Property 't3ver_label' could not be set. (#1236783102)
>>> Property 't3ver_state' could not be set. (#1236783102)
>>> Property 't3ver_stage' could not be set. (#1236783102)
>>> Property 't3ver_count' could not be set. (#1236783102)
>>> Property 't3ver_tstamp' could not be set. (#1236783102)
>>> Property 't3ver_move_id' could not be set. (#1236783102)
>>> Property 't3_origuid' could not be set. (#1236783102)
>>> Property 'sys_language_uid' could not be set. (#1236783102)
>>> Property 'l10n_parent' could not be set. (#1236783102)
>>> Property 'l10n_diffsource' could not be set. (#1236783102)
>>> 
>>> 
>>> I am really confused.
>>> 
>>> Why is the link generated like this?
>>> 
>>> Any hints are highly appreciated :-)
>>> 
>>> Thanks,
>>> 
>>> Oliver
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc

Hi Oliver,

did you return the projectToShow as an object or as an array?
In case of the latter I could image this could be happening.

Henjo



More information about the TYPO3-project-typo3v4mvc mailing list