Skip to main content
Participating Frequently
July 3, 2018
Answered

Importing content into pages created from a .dwt

  • July 3, 2018
  • 1 reply
  • 433 views

Is there a way to import my content, (text, images, videos and links) that will all be styled the same way on every page, into new pages that I create from a single .dwt?

For example say I have a site about animals and I have all of the above content about different animals it is similar in format but the words and pictures are different and they link to different things. I have lots of text and several different pictures with captions that would take a long time to manually enter page by page. Does DW have an import function that would help me do this?

Using DW CC in Windows 10

Thank you,

Amy

This topic has been closed for replies.
Correct answer BenPleysier

A web page is an HTML document which in turn is interpreted by the browser to render the page. Word and Excel do not contain HTML elements unless they have been saved as an HTML document. Even then, the thus created document will contain many elements that are not required for a web page and that cannot be interpreted by the browser.

Conclusion, the cumbersome method is the most trusty way.

1 reply

Nancy OShea
Community Expert
Community Expert
July 3, 2018

No.  Creating a DWTemplate is the 1st phase of your project, not the last one.   In other words, you create a dummy page with regions for sitewide content (common header, footer, navigation, etc...) then save as a Template.dwt file.  You add Editable Regions for content that will change from page to page and save it.

Close Template.

Go to File > New > Site Templates.  Select your template.dwt and hit Create button to spawn a child page.   From there you can copy & paste content into the Editable Regions.  Save child page.  Repeat for other site pages.

Nancy O'Shea— Product User & Community Expert
Participating Frequently
July 4, 2018

I must have been unclear. I understand how to create my template. Now that I have it. My question is can I somehow other than copy and pasting or typing in the code, get the content into the editable regions? Maybe like using a spreadsheet or a table in a word document to import the image paths into the image regions and all the text into the paragraphs and all the headings into the .<h> tags and so on.

Each page will have the same layout, hence the template, but each one will have different text and images. I have several pages to create and it will be cumbersome to copy and paste every page. I want to know if these items can some how be imported into the pages I create from the template.

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
July 4, 2018

A web page is an HTML document which in turn is interpreted by the browser to render the page. Word and Excel do not contain HTML elements unless they have been saved as an HTML document. Even then, the thus created document will contain many elements that are not required for a web page and that cannot be interpreted by the browser.

Conclusion, the cumbersome method is the most trusty way.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!