Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to edit a template

Posted on 2006-07-03
16
Medium Priority
?
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
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 …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

596 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