Solved

How to edit a template

Posted on 2006-07-03
16
161 Views
Last Modified: 2010-04-25
I'm working on a website at my job made by somebody else. The original files for the website no longer exists, only the files that are on the server. I'm trying to edit like 180 html files those before were based on a template. This site is a real estate site, which I need to edit adding and deleting houses and developments from it. There is a part on the template file that have like 20 developments names like this: development 1  development2  development3 , etc. (are like 3 rows of names and every name have a link to a file for the specific html for that development). I need to know how to add or delete a name on this paragraph and update automatically on all the other html files. (I did a find and replace, but dreamweaver convert the whole paragraph to a single line pointing only t one link).
I tried to use edit region, but no success. Also I copy that paragraph and converted to a template file (.dwt), but don´t know how to apply it to the other html files.

Thank's in advance for your help!
0
Comment
Question by:luigi382006
  • 6
  • 4
  • 3
16 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17038773
Hi Luigi,

If the original template is no longer available, you need to recreate it or detach all files from the template, which will allow normal editing.
0
 

Accepted Solution

by:
_SKIN_ earned 50 total points
ID: 17233692
You need to download all of the files from the server... Setup the site in dreamweaver... Then use find/replace to change all of the links you need to. Dreamweaver will update the whole site with the changes if you setup the site correctly.

Let us know.
0
 

Author Comment

by:luigi382006
ID: 17234848
Thank's SKIN, I'll try your option!
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17235568
Hi guys,

SKIN's advice will not work if the pages are based on a template.  The template code prevents all changes to the protected code from within Dreamweaver.

If the pages are detached from the template or are not based on a template, then it will work.
0
 

Expert Comment

by:_SKIN_
ID: 17235655
Jason1178 He says he has the files on the server but not the template, so it will work. All he has are the html files from the server, there is nothing keeping him from editing the files. Dreamweaver will do it no problem. Did you read his post?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17235976
Yes.  If the files have the template code and the links he wants to edit are protected by the template code, it will not work.  It is unclear to me if his links are in an editable region (in which case, your advice works) or part of the template (in which case your advice doesn't work).

0
 

Expert Comment

by:_SKIN_
ID: 17236102
jason1178 what exactly are you talking about. I have never seen an encrypted html file or any html file that you couldn't put in a text editor and change anything you want. I am not being cocky I just want to know what you are talking about.
0
 

Author Comment

by:luigi382006
ID: 17236212
Hi Guys,

Maybe I did not explain correctly my situation.

I can edit the links, but my problem is that I need right now to edit one by one on every page, because the template I suppose, no longer exists (like I said before, the original files are not anymore on a local computer) and also, the templates folder doesn't exist on the server.

I read a lot now about templates and I found that the best way to do what i need to do is ussing assets based on a library, I'm right?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17236274
SKIN,

Since we are in the Dreamweaver TA, I'm answering that way.  Dreamweaver locks the sections of template declared as protected from all editing by Dreamweaver.   Of course you can go outside of the program and edit that way, but it doesn't address the larger problem of how he can recreate his template file or use DW to fix the problem.

I'm not offended by being asked to clarify my responses :) ... at work, I tend to answer in shorthand and sometimes my answers need clarification!

-----------------------

Luigi,

If you can edit the links, then do as SKIN suggests and use the DW Find and Replace dialog to change things OR create a library item and F/R for that.  Personally, I find the Shared Assests interface cumbersome if I am the only person editing the site and prefer to use server side includes or scripting includes to get the same effect.  Shared Assests are good for sites that are going to be mangaled by people using Contribute...
0
 

Author Comment

by:luigi382006
ID: 17236348
jason1178 Good advice, but still needs to be done manually, is what I understood? Because I already used the F/R way, but not with the results I spected.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17236670
Can you post a sample page source code?  You should be able to do this with F/R...
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17409429
Hi mrichmon,

Points should probably go to _SKIN_ as my answer is incomplete.  His answer works independently of DW.
0
 

Expert Comment

by:_SKIN_
ID: 17411144
I am still interested in the final disposition.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dreamweaver - Spell check extension 4 484
FINDNOCASE 2 557
Regular Expressions find/replace needed 10 143
Element Positioning for Fluid Grid Layout 6 139
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question