简体   繁体   English

TYPO3 将复制和粘贴图标添加到内容元素

[英]TYPO3 Add Copy and Paste icons to Content Elements

Is it possible to add icons to the left or right side for Content Elements?是否可以在内容元素的左侧或右侧添加图标? I would like to move some of the functionality from the contextMenu to the icon bar, is that possible?我想将一些功能从 contextMenu 移到图标栏,这可能吗? Perhaps by TSConfig?也许通过 TSConfig? See attachment.详见附件。

内容元素

Several options exist for multiple TYPO3 versions and depending on where you would prefer to add the copy/cut icon, or indeed, any other icon you might wish:多个 TYPO3 版本存在多个选项,具体取决于您希望添加复制/剪切图标的位置,或者实际上,您可能希望添加的任何其他图标:

  • Before 10.3 and without fluid-based page layout module:在 10.3 之前且没有基于流体的页面布局模块:
    • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks']
    • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawFooter']
    • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'] through $outHeader variable. $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']通过$outHeader变量。
  • After 10.3 with fluid-based page layout module: 10.3 之后带有基于流体的页面布局模块:
    • All of the above, plus以上所有,加上
    • Overlay of template EXT:backend/Resources/Private/Partials/PageLayout/Record/Header.html , or模板EXT:backend/Resources/Private/Partials/PageLayout/Record/Header.html
    • Overlay of template EXT:backend/Resources/Private/Partials/PageLayout/Record/Footer.html , or模板EXT:backend/Resources/Private/Partials/PageLayout/Record/Footer.html的覆盖,或
    • Overlay of template EXT:backend/Resources/Private/Partials/PageLayout/Record.html depending on where you want the icon to be placed模板EXT:backend/Resources/Private/Partials/PageLayout/Record.html的覆盖取决于您希望放置图标的位置

These should provide you with every conceivable option for adding the icon precisely where you wish it to be added.这些应该为您提供所有可以想到的选项,以便将图标精确地添加到您希望添加的位置。 TYPO3 10.3 with fluid based page module enabled provides you with the createst flexibility. TYPO3 10.3 启用了基于流体的页面模块,为您提供了最大的灵活性。 Earlier versions or with fluid based page module disabled should probably use $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks'] .早期版本或禁用基于流体的页面模块可能应该使用$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks']

I personaly wouldn't add too many button visible by default on the top right of each content, because it will unnecessarily overloads the amount of information on the page module with action buttons that are not the most often used.我个人不会在每个内容的右上角添加太多默认可见的按钮,因为它会不必要地使用不常用的操作按钮使页面模块上的信息量超载。

In particular, the "paste" button should only appears when there is something in the clipboard, and it now appears everywhere you can paste (you can see one above the content in your screenshot).特别是,“粘贴”按钮应该只在剪贴板中有内容时出现,现在它出现在您可以粘贴的任何地方(您可以在屏幕截图中的内容上方看到一个)。

Cheers, Rachel干杯,雷切尔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM