Developer forum

Forum » CMS - Standard features » Inconsistent path for FileManager product fields

Inconsistent path for FileManager product fields

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a solution running DW 9.6.3 with Rapido 3.1.

I have the Document field set on the product. Field type is FileManager.

I also have another custom field on the product, Icon1, also of type FileManager.

When I try to output them in the template, I get inconsistent behavior for them, depending on the type of field.

If I use product.GetString("Ecom:Product:Field.Document.Value") I get nothing.

If I use product.GetString("Ecom:Product:Field.Document.Clean") I get "../DigitalAssets/PDF/B2B Ecommerce UK.pdf".

If I use product.GetString("Ecom:Product:Field.Icon1.Value") I get "<img src="/Files/Images/Elbi/website/img/42_Factor%20de%20protectie%20IP44.png" border="0" alt="" width="58" height="58" class="Icon1" />"

If I use product.GetString("Ecom:Product:Field.Icon1.Clean") I get "/Files/Images/Elbi/website/img/42_Factor de protectie IP44.png".

I see 2 issues here:

1. The path returned for both fields (.Clean) is different depending on the file type. I don't think it is useful to have it rendered inconsistently.

2. The output for the value is also inconsistent. Image is rendered while File it is not. Moreover, for the Image, I don't see any way to control the output. I assume the width and height are based on the file properties.

Please let me know if I miss anything in the setup.

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply

Ok, thank you for the input. We will look into this for a future major version of Dynamicweb.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you.

You should also be aware that this problem affects ProductAssets downloads as the path is rendered incorrectly and the archive is broken.

Adjusting the path in the template seems to solve the issue but it's not ideal.

Thank you,
Adrian

 

You must be logged in to post in the forum