Solved

How to edit a template

Posted on 2006-07-03
16
158 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
 
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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 …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now