Feature #36669

Add Hook to manipulate BE login form

Added by Sebastian Michaelsen over 7 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
Start date:
2012-04-27
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

With TYPO3 4.7 the old deprecated way of defining Login News ($TYPO3_CONF_VARS['BE']['loginNews']) was removed and the sys_news database table is the only source for login news now.
But you may want to add items from another source (e.g. RSS-Feed).

This is why I want to implement a hook to manipulate the Login News Records.

Associated revisions

Revision f2673678 (diff)
Added by Jigal van Hemert over 7 years ago

[FEATURE] Add Hook to manipulate BE login form

To fully customize the backend login form a hook (signal/slot) is
added which allows manipulation of the markers array.

Change-Id: Idb1b62472e82cfca9575bfbd5514bb930771b723
Resolves: #36669
Releases: 6.0
Reviewed-on: http://review.typo3.org/12417
Reviewed-by: Georg Ringer
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

Revision 863d59dd (diff)
Added by Jigal van Hemert over 7 years ago

[FEATURE] Add Hook to manipulate BE login form

To fully customize the backend login form a hook (signal/slot) is
added which allows manipulation of the markers array.

Change-Id: Idb1b62472e82cfca9575bfbd5514bb930771b723
Resolves: #36669
Releases: 6.0
Reviewed-on: http://review.typo3.org/12417
Reviewed-by: Georg Ringer
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

Revision c0c30293 (diff)
Added by Jigal van Hemert over 7 years ago

[FEATURE] Add Hook to manipulate BE login form

To fully customize the backend login form a hook (signal/slot) is
added which allows manipulation of the markers array.

Change-Id: Idb1b62472e82cfca9575bfbd5514bb930771b723
Resolves: #36669
Releases: 6.0
Reviewed-on: http://review.typo3.org/12417
Reviewed-by: Georg Ringer
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

History

#2 Updated by Sebastian Michaelsen over 7 years ago

Yes, I will (probably today). But I have to add the issue here first, right?

#3 Updated by Jigal van Hemert over 7 years ago

  • Status changed from New to Needs Feedback

It would be very easy to add items from that other source to the sys_news records (I've already made an extension which imports RSS data into sys_news).
What is the use case for a hook here?

#4 Updated by Ingo Renner over 7 years ago

I remember Sebastian tried/tries to "abuse" the login news for his oneclicklogin extension http://typo3.org/extensions/repository/view/oneclicklogin ... If this is the real purpose for this request, why not ask for it instead of trying to sneak something in? As Jigal said, providing news coming from an RSS source would be ease by creating a scheduler task that imports a feed into sys_news.

#5 Updated by Mario Rimann over 7 years ago

Jigal van Hemert wrote:

What is the use case for a hook here?

I'd be happy to see a hook that let's one post-process the generated login-news output. In our case I'd throw it away and instead show some other stuff that we're showing on the login page of our customer's installations (e.g. some news about us, recent projects, ...). Of course I could import them into the database - but then I'd have to trick around to get it displayed as we have it right now (two columns).

#6 Updated by Ingo Renner over 7 years ago

well, then import it into the regular backend news records o_0

#7 Updated by Mario Rimann over 7 years ago

Ingo Renner wrote:

well, then import it into the regular backend news records o_0

That would be a solution, if I'd like to show just one list of things that could be represented with the now used mechanism. But that's not what I'd need.

The point is that we have a working solution in place, that now doesn't run with 4.7 (which is not the problem so far), but there is no hook available so that we could go on using what we had in place.

#8 Updated by Jigal van Hemert over 7 years ago

From the reactions I see that the request is actually not a hook to manipulate the specific BE news items, but a way to modify the BE login form.

The template can already be modified by setting $GLOBALS['TBE_STYLES']['htmlTemplates']['templates/login.html'] (it even supports EXT: prefix, etc.)

If we add a signal/slot mechanism in SC_index::wrapLoginForm() which can modify the $markers array it would be fairly easy to add/modify/remove stuff from the BE login form.

IIRC there were plans to change the BE login a bit, so I'll start a thread in the core list to discuss this and the plans for a modified BE login form.

#9 Updated by Jigal van Hemert over 7 years ago

  • Subject changed from Add Hook to manipulate the Login News Records to Add Hook to manipulate BE login form
  • Category set to Backend User Interface
  • Status changed from Needs Feedback to Accepted
  • Assignee set to Jigal van Hemert

#10 Updated by Gerrit Code Review over 7 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12417

#11 Updated by Gerrit Code Review over 7 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12417

#12 Updated by Jigal van Hemert over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#13 Updated by Riccardo De Contardi about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF