[Hippo-cms7-user] Removing content using delta XMLs

Leeuwis, Laurens laurens.leeuwis at capgemini.com
Mon Jun 25 12:13:24 CEST 2012


Dear Hippo dev's,

In /hippo:configuration/hippo:frontend/cms/cms-services/htmlCleanerService/cleaner.config/hippohtmlcleaner:cleanup/ there is an hippohtmlcleaner:cleanupElement (the 26th) which allows some attributes for the table element. I would like to change these attributes, from {class, border, cellspacing, cellpadding, width, align, style} to {class, cellspacing, cellpadding, width, align} (without border or style)

I tried this:

<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="htmlCleanerService" xmlns:h="http://www.onehippo.org/jcr/xmlimport" h:merge="combine">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>frontend:plugin</sv:value>
    </sv:property>
    <sv:node sv:name="cleaner.config" h:merge="combine">
        <sv:property sv:name="jcr:primaryType" sv:type="Name">
            <sv:value>hippohtmlcleaner:config</sv:value>
        </sv:property>
        <sv:node sv:name="hippohtmlcleaner:cleanup" h:merge="combine">
            <sv:property sv:name="jcr:primaryType" sv:type="Name">
                <sv:value>hippohtmlcleaner:cleanup</sv:value>
            </sv:property>
            <!-- border and style are removed from the table element when compared to bootstrap content -->
            <sv:node sv:name="hippohtmlcleaner:cleanupElement" h:merge="combine" h:location="child[26]">
                <sv:property sv:name="hippohtmlcleaner:attributes" sv:type="String" sv:multiple="true" h:merge="override">
                    <sv:value>class</sv:value>
                    <sv:value>cellspacing</sv:value>
                    <sv:value>cellpadding</sv:value>
                    <sv:value>width</sv:value>
                    <sv:value>align</sv:value>
                </sv:property>
            </sv:node>
        </sv:node>
    </sv:node>
</sv:node>

with in the ecm-extension:

 <sv:node sv:name="update-htmlCleaner">
        <sv:property sv:name="jcr:primaryType" sv:type="Name">
            <sv:value>hippo:initializeitem</sv:value>
        </sv:property>
        <sv:property sv:name="hippo:sequence" sv:type="Double">
            <sv:value>11048</sv:value>
        </sv:property>
        <sv:property sv:name="hippo:contentresource" sv:type="String">
            <sv:value>configuration/xinha/updateHtmlCleaner.xml</sv:value>
        </sv:property>
        <sv:property sv:name="hippo:contentroot" sv:type="String">
            <sv:value>/hippo:configuration/hippo:frontend/cms/cms-services</sv:value>
        </sv:property>
    </sv:node>

Furthermore, the 29th element contains the table htmlcleaner content as well. How do we remove this entire node using the delta XML's?


What to do?

Thanks,
Laurens






This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this message.




More information about the Hippo-cms7-user mailing list