[TYPO3-team-templavoila] Delete Button within Page-Module...
Tolleiv Nietsch
info at tolleiv.de
Sun Jul 12 21:36:09 CEST 2009
Hi,
I've just created a patch which also takes your concerns into account.
The "delete" icons can be enabled in with two "modes" in User- or
PageTSConfig:
mod.web_txtemplavoilaM1.enableDeleteIconForLocalElements = 1
will show unlink and delete icons for local elements side-by-side
mod.web_txtemplavoilaM1.enableDeleteIconForLocalElements = 2
will show the delete icon and hide the unlink icon whenever possible
With the last setting the unlink icon will still appear for local
elements if they're used more than once on the current page - otherwise
you wouldn't be able to remove a single reference to the element.
If a element is referenced from other locations the confirm-dialog also
shows a different message. The Refindex is used for this lookup.
As soon as bugs.typo3.org is available again I'll report a issue for
that and send a "official" RFC to this list.
Let me know if you have feedback or questions.
Best regards,
Tolleiv
Dmitry Dulepov schrieb:
> Hi!
>
> Tolleiv Nietsch wrote:
>> I just saw that there's already some code which seems to enable to
>> delete content elements within the Page-Module (instead of just
>> unlinking them).
>>
>> I'm not sure if you had a discussion on that earlier, I just wanted get
>> some comments on the idea before I start to write a patch for that. So
>> would you also like to have a "delete" icon within the page-module?
>> Maybe this should be configurable and the default behavior would only
>> change if configuration exists (User-TSConfig or Page-TSConfig).
>
> I neve rliked the "unlink" idea but by default we should stay compatible with existing version. So User or Page TSConfig is a good idea.
>
> One think that you have to take into account is references. If you delete an element without checking references, you may destroy content on other pages.
>
--
www.tolleiv.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0000-deleteRecordsInPageModule.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-templavoila/attachments/20090712/97b3fedd/attachment.txt
More information about the TYPO3-team-templavoila
mailing list