cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete the "remove" link in websites ?

apx25_
Champ on-the-rise
Champ on-the-rise

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

4 REPLIES 4

Florent_Guillau
World-Class Innovator
World-Class Innovator

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>

apx25_
Champ on-the-rise
Champ on-the-rise

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

Not applicable

Hi , What should be the path for 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

apx25_
Champ on-the-rise
Champ on-the-rise

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

Getting started

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.