• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

can't update pages with edited template

Explorer ,
May 22, 2023 May 22, 2023

Copy link to clipboard

Copied

I am unable to update the pages that use a particular template after I edit it. I select Tools>Templates>Update pages first. Then I select Look in>Files that use and choose the name of the template that I just updated that needs to be applied to those pages and select Update>Templates. After I click Start, the log shows that it went through every file that SHOULD have been updated and for every one, there is an error Error accessing the file with the file name listed (see below).

 

Screen Shot 2023-05-22 at 3.17.07 PM.png

 

The only thing that doesn't look right is the path to the file. It appears that it's looking for the template in a folder named public_html:templates on my hard drive. The templates ARE in that folder on the remote site, but on the local site, they are not. The path to the folder on the local site is Samsung SSD>Documents_SSD>Boone RTA>WEB SITE>templates>basic_template_2022.dwt. I was expecting this update process to update all the pages on the local site that use this template. I would then upload all the updated pages to the hosting site. Now, I'm not sure what needs to be done to update all the pages that use this template. Ideas? Thanks.

TOPICS
Error

Views

389

Translate

Translate

Report

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 ,
May 22, 2023 May 22, 2023

Copy link to clipboard

Copied

public_html is a server root directory only.  It should NEVER be listed in your local site folder.  

 

Something is wrong with your local site's file structure.  You would need to move Templates folder down to your local site's root level where it belongs.  As an example, C:\MyTestSite\Templates\

See screenshot.

CC-StarterPageAssets.jpg

 

Hope that helps. Post back if have more questions.

 

Nancy O'Sheaā€” Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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
Explorer ,
May 22, 2023 May 22, 2023

Copy link to clipboard

Copied

Can there be a Templates folder at the root level with the various templates in it or must all the separate templates be at the site's root level?

 

Also, just a curious question. In the Mac version of DM from Creative Cloud, what do the two different folder icons in the Local Files mean? One is fully shaded and the other is half-shaded.

Votes

Translate

Translate

Report

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 ,
May 22, 2023 May 22, 2023

Copy link to clipboard

Copied

To work, all .dwt files must be in the local site's Templates folder. 

 

Nancy O'Sheaā€” Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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
Explorer ,
May 22, 2023 May 22, 2023

Copy link to clipboard

Copied

I didn't see a Templates folder in your screenshot of the local site. That's why I asked.

Votes

Translate

Translate

Report

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 ,
May 23, 2023 May 23, 2023

Copy link to clipboard

Copied

quote

I didn't see a Templates folder in your screenshot


By @TigerMO

=========

And you won't either.  I haven't used those proprietary Templates in decades.  I prefer Server-Side Includes.

https://alt-web.blogspot.com/2015/07/server-side-includes-with-php.html

 

SSIs are faster, more efficient & don't rely on software to work.  SSIs can be transported to any code editor because all the magic happens on the server.  šŸ™‚

 

 

 

 

Nancy O'Sheaā€” Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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 ,
May 23, 2023 May 23, 2023

Copy link to clipboard

Copied

The half-shaded folder is "open" (chevron pointing down) while the fully colored in ones are "closed" (chevron pointing right).

FWIW, there is typically no need to upload the Templates folder or .dwt files to your server. They are not used by the remote site, only within DW to create/update child pages. The only time I can think of to upload the Templates folder is to share the .dwt files with another developer.

Votes

Translate

Translate

Report

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
Explorer ,
May 23, 2023 May 23, 2023

Copy link to clipboard

Copied

Thanks for the information about the folder icons. I'd never noticed the difference until recently.

 

So, it sounds like I can move the Templates folder outside of the local site folder? Or leave that folder in the Site folder and just don't upload them?

Votes

Translate

Translate

Report

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 ,
May 23, 2023 May 23, 2023

Copy link to clipboard

Copied

LATEST

DO not move Templates folder. Leave it alone.

 

Templates have no effect on server files.

Use Cloaking to exclude folders/files from uploading.

https://helpx.adobe.com/dreamweaver/using/cloaking-files-folders-dreamweaver-site.html

 

Nancy O'Sheaā€” Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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