Skip to main content
Participant
March 22, 2019
Answered

srcset and dwt models [templates]

  • March 22, 2019
  • 1 reply
  • 484 views

Hi, i'm working with my own dreamweaver template (.dwt), so i have a lot of html pages located in nultiple levels (folders and subfolders i mean) depending by this unique template. Now i need to use the attribute srcset in my template, but it is not given a relative url in pages dependent on it. How to fix it?

Regards

[Moderator edited title for clarity.]

This topic has been closed for replies.
Correct answer alessandros5227034

Yes, i'm placing this code inside the main template.dwt file. Ok, i will submit this issue from my help menu, thanks a lot. Actually, i temporary solved this issue using root path like / instead of relative path, it seems work fine with my linux server.

Best regards

1 reply

Participant
March 22, 2019

Forgot... i use Adobe Dreamweaver CC

And here an example of code:

<source media="(max-width: 320px)" srcset="../assets/img/myimage200x41.png">

if i put this code into my model, the src remain the same in all the pages (ex. ../assets/img/myimage200x41.png)

Nancy OShea
Community Expert
Community Expert
March 22, 2019

Are you placing this code inside the main template.dwt file?  If yes, then DW isn't able to update the file path in SRCSET tags for you.  This has been a pain point for many of us for quite some time.

Please submit a Bug/Feature request from your Help Menu.

Nancy O'Shea— Product User & Community Expert
alessandros5227034AuthorCorrect answer
Participant
March 23, 2019

Yes, i'm placing this code inside the main template.dwt file. Ok, i will submit this issue from my help menu, thanks a lot. Actually, i temporary solved this issue using root path like / instead of relative path, it seems work fine with my linux server.

Best regards