[Typo3-dev] Improvement for Frontend-editing
Rupert Germann
rupi at gmx.li
Thu Jan 27 21:22:01 CET 2005
hi,
this is a copied thread from the tt-news list. I think the change I
suggested to prevent the problem described below, should be somehow
integrated in the next TYPO3 release.
subject: [Typo3-project-tt-news] Frontend Editing
> H.Raudenkolb wrote:
> ....
>> However, that only works if you add a news item by clicking on a "new"
>> button in the admin panel of an existing newsitem.
>> If you insert new news items via the "independent" cObject EDITPANEL,
>> those new records are once again stored on the current page, with no way
>> of changing the target PID.
>> Any suggestions how that could be solved?
>
>
> I digged a bit in the class.t3lib_content and found this line:
>
> function editPanelLinkWrap()
> line 6668:
>
> $nPid = t3lib_div::testInt($rParts[1]) ? -$rParts[1] :
> $GLOBALS['TSFE']->id;
>
> $rParts[1] is the pid of the new item and in this case it has the value
> 'NEW' so the pid of the current page is used.
>
> I changed this line to this:
> $sPid = $GLOBALS['TSFE']->config['config']['FEeditStoragePid'];
> $nPid = t3lib_div::testInt($rParts[1]) ? -$rParts[1] : ($sPid ? $sPid
> $GLOBALS['TSFE']->id);
>
> with this change you can configure the storagePid with an ext-template:
> config.FEeditStoragePid = myPid
what do you think ?
greets
rupi
More information about the TYPO3-dev
mailing list