01-09-2013 10:37 AM
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
01-15-2013 10:13 AM
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:
<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>
01-15-2013 11:33 AM
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
01-28-2013 09:06 AM
Hi , What should be the path for your/custom/all_webpages.xml or where should I put my customed theme-contrib.xml in custom directory ? because if I put the files in custom/config , it won't work
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
01-29-2013 04:41 AM
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,
Patrice
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.