Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

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

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.
  • 2
1 Solution
Jason C. LevineNo oneCommented:
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?
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
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"-->

colonelblueAuthor Commented:
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.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now