Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

srcset and dwt models [templates]

Community Beginner ,
Mar 22, 2019 Mar 22, 2019

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.]

495
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Mar 23, 2019 Mar 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

Translate
Community Beginner ,
Mar 22, 2019 Mar 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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2019 Mar 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 & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 23, 2019 Mar 23, 2019
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines