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-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