Skip to main content
Participant
Mar 22, 2019 9:01 PM UTC
Answered

srcset and dwt models [templates]

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 is closed to new replies. Start a new post to keep the conversation going.
alessandros5227034Correct answer
Participant
Mar 23, 2019 12:03 PM UTC

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

3 replies

Participant
Mar 22, 2019 9:08 PM UTC

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)

Translate
Nancy OShea
Community Expert
Community Expert
Mar 22, 2019 9:34 PM UTC

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.

Translate
Nancy O'Shea— Product User & Community Expert
alessandros5227034AuthorCorrect answer
Participant
Mar 23, 2019 12:03 PM UTC

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

Translate