As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I am testing the website&blog feature (5.6). All the links on webpages or documents are ending with a "remove" link (ex: " Formations remove " -> https://...../nuxeo/site/sites/formations?url/@delete). How can I delete or hide these links ?
Thanks for your answers, Patrice
This comes from the file all_webpages.xml in the module nuxeo-webengine-sites, which is a WebEngine theme view named "All WebPages" registered through the theme-contrib.xml file. You can override it using:
all_webpages.xml
nuxeo-webengine-sites
theme-contrib.xml
<extension target="org.nuxeo.theme.services.ThemeService" point="views"> <view name="All WebPages" template-engine="freemarker"> <element-type>fragment</element-type> <format-type>widget</format-type> <model-type>webpage</model-type> <template>your/custom/all_webpages.xml</template> </view> </extension>
I understand that this way I can remove the "delete" link for all users, regardless their rights, even users with "delete" right ? Is that correct ?
Thanks for your answer.
Patrice
Hi , What should be the path for
I edit /usr/local/nuxeo-cap-5.6.0-HF06-tomcat/templates/custom/config/theme-contrib.xml with the model above and
<template>all_webpages.xml</template>
I delete the line with remove link remove
from /usr/local/nuxeo-cap-5.6.0-HF06-tomcat/templates/custom/config/all_webpages.xml which is a copy of /usr/local/nuxeo-cap-5.6.0-HF06-tomcat/nxserver/web/root.war/modules/org.nuxeo.ecm.platform.webengine.sites/widgets/sites/all_webpages.xml
then I restart nuxeo but the remove link is still here. thanks
I did the same operation as described above and the link "remove" is still displayed. There is something that I do not understand in the process...
Thanks for tour help,