Adobe Contribute - How to selectively lock only particular code in a page from editing or configure to behave?

Posted on 2013-01-04
Last Modified: 2013-02-05
Hello Experts,

I created Classic ASP web pages using Dreamweaver but someone else is responsible for updating them using Contribute. I have a submenu in a div on each page that is not part of the template where the links in the aforementioned submenu can be updated.

The problem is whenever a link is minutely updated and the page saved, the div moves out of place- a line up or down. (No line spaces were added, just the name of the link changed and /or the URL.)
Is there a way to correct this? Or a configuration in Contribute made where the code behaves despite the update?

Thanks in advance.
Question by:colonelblue
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
  • 2
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38746151
The problem is whenever a link is minutely updated and the page saved, the div moves out of place- a line up or down. (No line spaces were added, just the name of the link changed and /or the URL.)

Can you examine a before and after version to see if Contribute is adding an extra line break or p tag to the HTML?
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 38746153
I think you have to have contribute too and make yourself the owner of the page and then only allow edits to editable areas.  

One thing you can try is to make your submenu a server side include.  The the others can just edit that and leave your div alone.


<div id="menu">
<!--#include virtual="/theSubMenu.asp"-->


Author Comment

ID: 38746284
Hello and thank you.
Trouble is I made the submenus unique for each page since they can have  relative links to them .

Is there a setting in Contribute where I can toggle to not add any extra code?

I will not be able to do a before and after until Monday when I am back at the office.

I would so appreciate your further assistance.

Thank you in advance.
LVL 53

Accepted Solution

Scott Fell,  EE MVE earned 500 total points
ID: 38749580
My experience is  if  you give somebody a chance to mess it up they will.  

One option is to convert your site to using dreamweaver templates where you make certain areas off limits to editing (locked regions) and certain areas open for edits (editable regions).  If you have contribute too, you can make it so you are the contribute site admin which will block contribute users from messing with your stuff.

If you don't have contribute, you can still make the templates but you just need to instruct your users not to mess with anything but editable regions.  Because they will be the contribute site admin, they can choose to stay within the lines or not.  

 If you have not used dreamweaver templates before I would suggest making a few practice pages first and notice how the links work on your hard drive vs live.  If you don't have the site set up correctly, sometimes you find the links seem fine off line but live they are broken. It is all based on how you have the "testing" server settings in dreamweaver.

As you can probably see, making a separate navigation for each page is time consuming.  Either way, you still have to touch each page.  I would consider using the suggestion of include files for your navigation.  It will make your life a lot easier.  If you place the include file in a new folder such as but the actual files are on and your relative links will still work if all pages on the same level.  The reason is the include file in a separate folder is being loaded into the page1.asp.  If you view source on page1.asp you will never see any sign of where the include file is, you will just see rendered html.

If your site is built on multiple levels like you can simply change your links from relative ../index.asp to absolute  /group1/index.asp  or you can use mod rewrite to change the lnks.

In any case, by using the include file, not only will you protect your code, you will make your life easier if you have to edit your navigation because it will be in just one place. Instead of updating each page, you update in one place.

You ca use multiple include files for your nav.  Maybe you have 20 page site with 5 different groups of navigation. Just make 5 different include files.  You can also use your asp/vb to dynamically generate the sub menues and just one include file like below.


Select case page
   case "page1.asp"
   response.write "Link A.1 | Link A.2 | Link A.3"
  case "page2.asp"
     response.write "Link B.1 | Link B.2 | Link B.3"

  case "page3.asp"
     response.write "Link C.1 | Link C.2 | Link C.3"
end select


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

615 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