Forums de discussion

Document and Media like Image

thumbnail
Alessandro Nizzo, modifié il y a 9 années.

Document and Media like Image

Junior Member Publications: 26 Date d'inscription: 13/02/14 Publications récentes
Hi all,
image you have this stucture

<root available-locales="en_US" default-locale="en_US">
     <dynamic-element datatype="document-library" fieldnamespace="ddm" indextype="keyword" name="Documents_and_Media1703" readonly="false" repeatable="false" required="false" showlabel="true" type="ddm-documentlibrary" width="">
         <meta-data locale="en_US">
             <entry name="label">
                 Documents and Media
             </entry>
             <entry name="predefinedValue">
                 
             </entry>
            <entry name="tip">
                
            </entry>
        </meta-data>
    </dynamic-element>
    <dynamic-element datatype="image" fieldnamespace="wcm" indextype="keyword" name="Image1922" readonly="false" repeatable="false" required="false" showlabel="true" type="wcm-image" width="">
        <meta-data locale="en_US">
            <entry name="label">
                Image
            </entry>
            <entry name="predefinedValue">
                
            </entry>
            <entry name="tip">
                
            </entry>
        </meta-data>
    </dynamic-element>
</root>


I wish that when you click on the attachment, the mechanism is the same of the image (search from local - my pc - resource, NO open Document and Media)

Is it possible?

Alternatively, can I expand the file extensions of Image widget that can be loaded?

Thanks in advance for your attention.

Regards

Alessandro
thumbnail
Vitaliy Koshelenko, modifié il y a 9 années.

RE: Document and Media like Image

Expert Publications: 319 Date d'inscription: 25/03/11 Publications récentes
Hi, Alessandro.

The supported file extensions for image are defined in portal.properties:

dl.file.generic.extensions[image]=bmp,gif,jpeg,jpg,odg,png,svg


You can overwrite them in portal-ext.properties file.

Vitaliy
thumbnail
Alessandro Nizzo, modifié il y a 9 années.

RE: Document and Media like Image

Junior Member Publications: 26 Date d'inscription: 13/02/14 Publications récentes
Hi Vitaliy,
thanks for the reply.

I tried to overwrite in portal-ext.properties

dynamic.data.mapping.image.extensions=*
dl.file.generic.extensions[image]=*


but I always get the same result (see attached).

Any other ideas?

Regards
Alessandro
thumbnail
Vitaliy Koshelenko, modifié il y a 9 années.

RE: Document and Media like Image

Expert Publications: 319 Date d'inscription: 25/03/11 Publications récentes
Hi!

If you're adding new WebContent, you need to overwrite:

journal.image.extensions=.gif,.jpeg,.jpg,.png


Vitaliy
thumbnail
Alessandro Nizzo, modifié il y a 9 années.

RE: Document and Media like Image

Junior Member Publications: 26 Date d'inscription: 13/02/14 Publications récentes
Unfortunately this does not work.

It looks like a client side control

Here part of my portal-ext.properties

journal.article.form.add=content,categorization,schedule
journal.image.extensions=*
dynamic.data.mapping.image.extensions=*
dl.file.generic.extensions[image]=*


Are there other proprierties for image extensions?
thumbnail
Alessandro Nizzo, modifié il y a 9 années.

RE: Document and Media like Image

Junior Member Publications: 26 Date d'inscription: 13/02/14 Publications récentes
Any other ideas to get around?

Thanks in advance for sharing