Nested overrides in portal_skins folder

匆匆过客 提交于 2019-12-10 04:05:18

问题


How one could override files in nested portal_skins folder?

The default behavior seems to be that you need to copy whole folder structures if you want to override a single file. This is a maintenance nightmare.

E.g. how to override file:

Producs.TinyMCE/skins/tinymce/plugins/table/js/table.js

... without needing to create a duplicate for the whole Products.TinyMCE skins codebase?


回答1:


Use z3c.jbot, and put a file in your jbot template directory called Products.TinyMCE.skins.tinymce.plugins.table.js.table.js




回答2:


You cannot override parts of a nested skins folder structure. If you want to customize things, best to create a new tinymce plugin (like mytables) and copy only the files for that plugin.



来源:https://stackoverflow.com/questions/6161802/nested-overrides-in-portal-skins-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!