Solved

How to edit a template

Posted on 2006-07-03
16
159 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
background image shifts depending on browser 17 364
Summary to Detail Page using a Button 3 387
Lock Form Controls 3 307
Multiple HTML5 Videos – One player – Dreamweaver CS6 10 240
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

18 Experts available now in Live!

Get 1:1 Help Now