Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » ItemType, mandatory images in list definitions

ItemType, mandatory images in list definitions

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I have played with the new interface for defining ItemTypes in DW9.

When defining any type of static lists (not tested for Dynamic Lists) in ItemType fields the image fields looks to be mandatory. If you don't fill them, the values are just gone and you have to start all over again. 

I don;t think it makes sense to define images everytime you want to define a list of elements. In some cases it doesn't even make sense to do that.

I am using DW 9.1.

Thanks,

Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

This is an error I get after setting all List items with an image:

http://screencast.com/t/kxSNoEZT

Everything was done from the interface. All selections, images etc.

Thanks,
Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Probably because the system does not know how to handle the paths.

This is how it looks on my item:

<options sourceType="Static">
          <Static>
            <option name="Left Half" value="left" icon="/System/Items/Icons/DW_posLeft.jpg" />
            <option name="Right Half" value="right" icon="/System/Items/Icons/DW_posRight.jpg" />
            <option name="Full Width" value="full" icon="/System/Items/Icons/DW_100.jpg" />
          </Static>
        </options>

This is how it looks on the standard paragraph:

<options sourceType="Static">
          <Static>
            <option name="Title above paragraph" value="title-first" icon="System/Items/Icons/DW_TitleFirst_v2.jpg" />
            <option name="Title above text" value="title-with-text" icon="System/Items/Icons/DW_ImageFirst_v2.jpg" />
          </Static>
        </options>

It looks like adding the image from the interface add an extra "/" at the beginning of the string.

I assume it should work from the interface right?

Thanks,

Adrian

 

You must be logged in to post in the forum