Solved

How to edit a template

Posted on 2006-07-03
16
163 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 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