Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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

Posted on 2013-01-04
Medium Priority
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 2000 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Open Page or Post…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

721 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