Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking: #33805 - ClickMenu Rewrite #27

Closed
sabbelasichon opened this issue Nov 4, 2019 · 0 comments
Closed

Breaking: #33805 - ClickMenu Rewrite #27

sabbelasichon opened this issue Nov 4, 2019 · 0 comments

Comments

@sabbelasichon
Copy link
Owner

Breaking: #33805 - ClickMenu Rewrite

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/7.0/Breaking-33805-ClickMenuRewrite.html

.. include:: ../../Includes.txt

====================================

Breaking: #33805 - ClickMenu Rewrite

====================================

See :issue:33805

Description

===========

The ClickMenu has seen some major changes under the hood. This implies some refactoring within JavaScript where existing

functionality is replaced by a AMD Module based on jQuery. The following JS methods are now replaced by respective

methods:

  • showClickmenu_raw()

  • Clickmenu.show()

  • Clickmenu.populateData()

The new functionality is available via a global JavaScript object called TYPO3.ClickMenu which has equal

functions.

Additionally the ClickMenu is now used via AJAX completely, all non-AJAX calls are not supported anymore.

Impact

======

All third-party extensions using alt_clickmenu.php directly in the backend, or using the above JavaScript calls directly.

Affected installations

======================

Any installation using extensions having Backend modules using JavaScript functions for the ClickMenu inline

and installations using extensions using alt_clickmenu.php directly.

Migration

=========

Any use of "Clickmenu.show()" etc should be avoided and channelled through the according DocumentTemplate methods.

  • BackendUtility::wrapClickMenuOnIcon()

  • DocumentTemplate->getContextMenuCode()

If a backend module without a DocumentTemplate (with e.g. Extbase/Fluid) is used, this is done with a separate class

and related data attribute:

.. code-block:: html

<a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{record.uid}" data-listframe="1">

.. index:: PHP-API, Backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant