CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #3082

Hooks for after importing/exporting

Added by Georg Ringer about 4 years ago. Updated about 1 year ago.

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

issue3082.diff (21.9 kB) Francois Suter, 2011-10-03 10:40

issue3082-nowhitespace.diff (9.9 kB) Francois Suter, 2011-10-03 10:40

Associated revisions

Revision 56570
Added by Andreas Otto over 1 year ago

[~FEATURE] Fixes #3082. Hooks after importing/exporting. Credits go to Francois Suter for providing patches.

Revision 56570
Added by Andreas Otto over 1 year ago

[~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

Find attached a patch which implements a number of hooks:
  • 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

Also available in: Atom PDF