Feature #3082
Hooks for after importing/exporting
| Status: | Closed | Start date: | 2009-04-14 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assignee: | Andreas Otto | % Done: | 100% |
|
| Category: | Version 3 | |||
| Target version: | - | |||
| Has patch: | Yes | |||
| Votes: | 0 |
Description
Hi,
it would be great to have some hooks ínside the l10nmgr because I need to solve a task like this:
- If someone exports pages and content elements the elements should be in kind of a locked mode. So nobody can edit there (this could be easily done by using an extra checkbox and the tcemain hook which checks for updating the record and prohibits that.
- If the translated records are getting imported, the lock should be disabled again.
Or is there already a way to solve this? Any hints are highly welcome!
Thanks
Georg
Associated revisions
[~FEATURE] Fixes #3082. Hooks after importing/exporting. Credits go to Francois Suter for providing patches.
[~FEATURE] Fixes #3082. Hooks after importing/exporting. Credits go to Francois Suter for providing patches.
History
Updated by Schmidt Timo about 4 years ago
- Status changed from New to Accepted
Updated by Typoheads about 4 years ago
Hello, have a look at Locking Manager:
http://forge.typo3.org/projects/show/extension-lockadmin
TV Support is missing at the moment, will be supported soon.
I'm not sure if locking is an issue of the localization manager.
Greetings, Boris
Updated by Georg Ringer about 4 years ago
Hi,
@Boris: I know the ext from a presentation of the TUGA but I don't need the locking inside the l10nmgr but the hooks to do something like that. maybe i use your ext for that or maybe someone just wants to create statistics or wants to send mails or a page in the FE with the information what has been done,...
@Timo: can you tell me the place where I would need to look at if I would do that on my own?
Updated by Francois Suter over 1 year ago
- File issue3082.diff added
- File issue3082-nowhitespace.diff added
- before saving imported translations
- after saving imported translations
- before exporting either CAT XML or Excel XML
I guess covers many situations. I haven't tried every hook myself - since I don't need all of them in my current project - but I tried to think of possible use cases and what data would be needed inside each hook.
The patch also contains CGL cleanup, type hinting for IDEs and whitespace cleanup. I have attached a version without whitespace differences.
Updated by Francois Suter over 1 year ago
Can this patch also get in, please? Or are there any remarks?
Updated by Francois Suter over 1 year ago
Any news here? Any possibility to get this one in? Thanks.
Updated by Francois Suter over 1 year ago
Seems like this one was forgotten in the recent set of commits. Is it possible to get it in too, please? Thanks in advance.
Updated by Andreas Otto over 1 year ago
- Category changed from 346 to Version 3
- Assignee set to Andreas Otto
- Has patch set to Yes
Updated by Andreas Otto over 1 year ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r56570.
Updated by Andreas Otto about 1 year ago
- Status changed from Resolved to Closed