Models, links and 'here '...

Hi all

I understand the benefits of the use of site templates to help improve maintainability so you only define the header, menu, and footer only once, but change the 'content' on each page.  My question is, if I use a template with my menu of links to other pages, is there a way to change an aspect of links depends on what page I look but always use a template for the menu.  To be clear, I know how to do HTML/CSS coding every page individually, but not if I use a Dreamweaver template.

Thank you

Jon

There are several ways to do so. Here are two.

1. If your menu html code does not change, only the styles that affect its appearance:

  • put your menu inside another container (this could even be the body tag, but I use a bowl for just the menu for this example)


      
  • According to the code model, place your cursor inside the div topmenu opening tag (in the tag itself, not only in the div).
    • go to modify > templates > make attribute editable... (This is a different menu than insertion > models >)
    • In the pop up dialog box choose "class" (or add if not one there already)
    • check the 'editable attribute brand '.
    • Enter a name "makes sense to you... for failure, menuClass.
    • Let the type in "text".
    • Enter a default value for the class. (in this case 'by default' can be a good choice.)
    • Your external menu div will now have a 'topmenu' id and class that is editable in any page based on the template.
  • Make the menu styles by default in your stylesheet.
  • For the other sections, define styles with a more specific rule.
  • In the model itself, it's a good idea to add comments after the div that remind you what are the possible classes:
  • Now, when you create a page based on this template, you can go to:
    Edit > properties of the model
    and change the value of 'topmenuclass' to what is appropriate.

Example of

/ * default menu styles * /.

#topmenu ul {background: #300 ;}}

#topmenu ul li {float: left ;}}

#topmenu ul li a {color: #fff ;)}

/ * section menu styles 1 * /.

#topmenu.mySpecialClass ul {background: #030 ;}}

/ * because I don't want to change anything for the topmenu

  • tag I don't need to add it here * /.

    #topmenu.mySpecialClass ul li a {color: #09 c ;)}

    / * section 2 menu styles * /.

    #topmenu.section2class ul {background: #003 ;}}

    #topmenu.section2class ul li a {color: #c90 ;)}

    2. If your menu HTML code must be different for each section of your site:

    • In your template, create your menu in the optional region (do NOT use an editable optional region)

      • Insert > template objects > optional region
      • Give it a name that makes sense, like defaultTopMenu
      • Let the 'default' checked.
    • Create the menu of each section within another sector in option
      • Give it a name that makes sense, like sectionOneTopMenu
      • Uncheck the box 'by default'.
    • Now, when you create a page based on this template, you can go to:
      Edit > properties of the model
      and chose what optional region you want to have displayed on this page.
      Simply change the vale to the default menu optional region that you want to see the value 'true' and 'false' (there is a checkbox for this)
  • Tags: Dreamweaver

    Similar Questions

    • I'm trying to reinstall Illustrator CS4, Photoshop, and InDesign on my new Mac.  It does not accept my serial number.  Adobe called they told me that they do not provide support for older programs and has sent me a link to here.  Can someone guide me?

      I'm trying to reinstall Illustrator CS4, Photoshop, and InDesign on my new Mac.  It does not accept my serial number.  Adobe called they told me that they do not provide support for older programs and has sent me a link to here.  Can someone guide me?

      If this is an upgrade, you must the cs4 and the serial number of versions eligible.

      Make sure you use the correct installation file that corresponds to your serial number, error: "serial number is not valid for this product". Adobe Creative Suite

      In addition, How to open third-party developers not identified in Mac OS X applications ' Mac Tips .

    • When right-clicking on a link and a window opens, I want it ask me "Open Link in New Window" first of all, not the second. This has changed in the last update.

      So I got allows you to right-click on a link and go the first option and open this link in a new window.
      I don't not like tabs, or use them.
      The latest update or version of Firefox has changed this and now
      Open the link in a new tab first, then
      Open the link in a new window.
      My question is, how can I change this back to the way it was.
      Thank you very much
      TREV

      My problem is the opposite of the OP, but the result is the same. Years of the use of previous versions of Firefox have conditioned me to open links in a new tab by selecting the second choice of right click menu without looking. After a week of trying to readjust in places reversed 'Open link in a new window' and "Open link in a new tab", I'm always unintentionally opening new windows instead of tabs every time after time. The point is, why should I have to adjust (or need a plugin external to solve your problem). YOU TEACHES ME HOW to DO THIS WAY, then why you changed it? Do you think that the reversal is most effective? A task force of new users select the new range? Do you have a taste of trial with Pepsi? Have you adopted Microsoft 'we know what you want better than you' policy? People in the drive of England on the left side of the road with the steering wheel on the right. Maybe it's actually a better way to do it. Maybe we should just rethink all cars new American model in this way and reverse all the signs from one day to the next without any warning - no ads, no choice, do it just because the engineers decided that it is better. While we're here, maybe you should adopt menu 'Ribbon' of MS then. I do sound a little angry or like if I have too much time on my hands? If so, it is because I am and I do not have enough to relearn the same tasks whenever you think of a better way to perform a basic operation. I'm sick of being 'improved' perfectly feasible programs to offers no improvement, only the need for a conversion.

    • Open a Telnet with Firefox link and bad things can happen

      I happened to come across a site with a number of links, and I chose the one who happened to be a telnet link. This is my experience, and I had to put myself in the shoes of the average user who knows nothing about programming.

      The link that has caused problems of Firefox where Firefox was chosen to run it is:
      Telnet://DXC.nc7j.com:7300

      Click on the link and Firefox tells you you have to select a program to open the Internet shortcut Shell extension DLL. I've never heard of this, and I have no idea what to do here.

      Choose to open with Firefox.

      Now, if an error handling routine had taken that Firefox, which is not able to Telnet, was chosen by the unconscious person behind the keyboard to move forward and do Telnet, the error handler advises the user on the fact that this Protocol is not taken in charge and kill the process that is going to run out of control if not. Or to open the program which will run the Telnet session.

      Better yet, I clicked on the link Telnet and offer a better description of the choices.

      After all what happened, that I have installed a browser based on Chromium, iron and he opened a Telnet session window immediately.

      This did happen, clicked on Firefox to do this chore and was welcomed by an opening endless empty tabs and the browser is closed, he raised and I was off to the races again. And once again.

      OK, so this isn't getting us anywhere.

      Firefox opens once more, this time hitting the big red X to close it and leave asked it to close but many tabs invites when even sitting there.

      I chose to run CCleaner and I put that to blow the Firefox Cache and session. Run CCleaner and tell him to force Firefox closed when he asks that Firefox is open.

      If by chance, Firefox launches once again, the timing was perfect as the file that was the origin of Firefox open wasn't cleaned yet, then run the CCleaner a few times. When Firefox is the opening is no longer, we are in the world of mental health.

      Now, I could go to reset the Tools Options Applications tab and search for Telnet and replace the use of Firefox with 'ask me '.

      Fortunately, I know a little bit more than some about the computer, and I knew I had to use a utility to clear the Firefox cache.

      You have a description of the problem in your knowledge base, but he has Firefox open the empty tabs without end, but Firefox was closed and the situation is under control... Restart Firefox manually, start a new session, and then enter the menu Tools and difficulty setting.

      There is an article in the knowledge base on this theme, but there the user to close Firefox, and then everything is back to normal. You can open Firefox and enter the menu to resolve the problem. There was a mention in there any malware as a possible cause of the constant reopening that I lived, but Malwarebytes scans were clean.

      "Well, this is awkward!" I have seen that nice touch to Firefox for many years and may I want to congratulate those who thought of that one.

      There are a couple of settings related to resume your previous session after a crash:

      (A) resume automatically, but if Firefox crashes twice in a row, displays a list of windows and tabs and let me choose. (default)

      (B) does not resume automatically, always show the list of windows and tabs and let me choose; (I recommend this approach) or

      (C) never automatically resume and do not display the list.

      Switching to B or C requires a visit to Firefox about: config preferences editor.

      (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

      (2) in the search above the list box, type or paste sess and make a pause so that the list is filtered

      For "B":

      Double-click the browser.sessionstore.max_resumed_crashes preference from 1 to 0 (that's a zero).

      For "C":

      Double-click on browser.sessionstore.resume_from_crash preference to change its value from true to false.

    • Cannot open new tab by going to the file/new tab (or CTRL + T or by clicking on the new field of the tab). One is to right-click on a link and choose open in a new tab.

      Cannot open new tab by going to the file/new tab (or CTRL + T or by clicking on the new field of the tab). One is to right-click on a link and choose open in a new tab.

      I found that the ASK toolbar is the culprit. I have no recollection of ever install Ask and wanted not just her in any case. Withdrawal fixed the problem.

    • How can I get my old Firefox home pages of my back links and all my favorites?

      I have a new computer with Win 7 64 bit and started using the mine field, but I decided to go back to Firefox. Now have Firefox 4, but the need for all my links and bookmarks I have on my other system. Should what files I look for else my old drive to get my addition of links and bookmarks for my Google home page in Firefox. ?

      Your old profile is located here in Win XP and W2K:

      drive: \Documents and Settings\username Windows login\Application Data\Mozilla\Firefox\Profiles\profile_name

      Thunderbird support is here. (I don't use it myself.)

      http://forums.mozillazine.org/viewforum.php?f=39

    • HP laptop: enter the model number and get a "game too many results.

      My HP laptop dies after 6 weeks. When I contact support, he asks the model number. I enter: say "15-ay041wm" is what the box and laptop. I get a reply that says.

      "Sorry, too many results match your search for 15-1y041wm.

      "So I try HP Notebook, I get the same mesaage above, except with the HP laptop ' instead of '15-ay041wm.

      Because no matter where I'm going, he wants the model number and I give, I can't help. No cat, no nothing.

      So someone can tell me how to get support?

      If HP is unable to handle the number of model of it's own computers, so I'm not very confident.

      Here are the free support number to call in the USA/Canada... 1 800-474-6836.

      Now here's another question, you can report to HP on if you want...

      You must stay online and listen to the automated assistant trying to talk to you to talk to a representative... visit the HP website... go to this support forum (which has no official presence in HP), etc.

      After a minute or two, the Assistant to say, if you can't get online, will stay on the line to speak to a customer services representative.

      This is when you will have the opportunity to speak with a support person and report the problem to open a pension case.

    • Setting IE/Live Hotmail as default mail client, so it responds to a click on a mailto link: link and not Outlook Express

      It is actually in two parts/problems; Maybe (probably) closely related.
      ... And it's weird because it used to work (weird especially when it comes to problem no. 1 b).

      Problem # 1
      When I click on an e-mail address embedded (a mailto link :) in some (.doc .rtf, .html, etc.) I opened, I want to have the system open IE, connect me to my Windows Live Hotmail (http://mail.live.com/...) account and open the new page/screen e-mail message.) He used to do this. I have somehow messed up things upwards; How I know not (duh). Instead, it will now fire a new Message Outlook Express 6.0 dialog box.

      (1) I'm under Win XP Pro SP3 with all the critical updates installed.

      (2) I have a hotmail.com account and the system has my saved credentials.

      (3) I have Windows Live Messenger and Windows Live Mail is installed.

      (4) I have Windows Live Messenger is set up (under the menu item Tools/Options/Connection tab) with:
      a. "automatically run Windows Live Messenger when I connect Windows' checked
      b. "'Main window open Windows Live Messenger to Windows Live Messenger startup' UNchecked '.
      c. "automatically open a session when connected to the Internet" checked

      (5) I have Windows Live Mail set up (the tab Tools/Options/connections point menu - sign in to Windows Live services section) to "Stop signing In" - i.e. the "Sign In" button is enabled and the 'Stop Signing In' button is disabled (because it is already selected)

      This configuration (4 & 5) is so when I right click on the Windows Live Messenger icon in the system Notification bar and select 'Mail box' in the menu contextual, Messenger opens IE to my Hotmail Live (http://mail.live.com/...) account, sign me and puts me in my Inbox as opposed to the opening of the Live Mail client. No problem, it's what I want. The only time where I use the client Live Mail is when I have to compose an e-mail with pictures incorporated into the body of the message (which is rare), and then I manually start it (Live Mail). This can be done using IE/Live Hotmail; I can only attach photos there, not incorporated the. That's how my system was config support when you click on a mailto link: link would open up IE/Live Hotmail and not Outlook Express.

      In addition,
         
      (6) I have:
      a. under the radio button "Use my current e-mail program" Set Program Access and Defaults/Custom is selected and have the box "enable access to this program" UNchecked for Outlook Express (I also tried uncheck the 'enable...) "for Windows Live Mail - no change.

      I then tried...
      (b) in "Add/Remove Windows components" untick the Outlook Express check box. I then let XP run installation and rebooted.

      The reason why I did 6 b is to see what tracks if Outlook Express is not installed.
      Now, where is start to get weird and brings me to...

      Problem no. 1 b
      Outlook Express 6.0 (OE6.0) be uninstall under XP Pro/SP3 and if so, how?

      After step 6 b restarts, I open a file with a link to e-mail built in, clicked on it and now it opens nevertheless OE6.0
      So I open Win Explorer and of course the folder as c:\programs\outlook Express is still there and complete with all files .dll, .exe, etc..
      Now I'm really scratching my head! I know I said XP installation does not install Outlook Express.

      So now I decide to play with fire...
      I open the upward Task Manager to see which runs when the new Message of OE6.0 dialog box is in place (this is msimn.exe)
      So just to smile and laugh, I msimn.exe and rename it to Xmsimn.exe, go back in the file with the link, click on it and what's going on, you guessed it, OE6.0 is running! I switch back to Win Explorer, and the renamed file is still there, but now IS msimn.exe BAAAACK!
       
      Now, here's where it comes down right spoooooky. I created a new folder in C:\Programs\Outlook Express, all of the files selected in the C:\Programs\Outlook Express and drop them in the new folder. And then looking at the contents of the Outlook Express folder in the right pane (which is now empty other than the new folder), one by one, all the files OE re - APPEAR in the OE folder.
      WHAT IS PAST WITH IT!

      All the files that I moved to the new folder are still there, including the renowned Xmsimn.exe.
      It is as if the system will not let you remove the OE components and withdrew them a .cab file, somewhere, even if I said do not install Outlook Express!

      Now, this problem is really secondary to # 1 has. I don't really need the answer, he just freaks me the system is something like this and I would like to know how and why of it. I use any OE 6.0, it's just take disk space.
      (I even uninstalled my installation of MS Office Outlook)

      And I don't like how # 1a is resolved. I am quite able to pull the top of RegEdt32 or what is needed to fix it (after backup the registry and/or a restore point first, of course.)

      Any ideas?

      Thanks in advance,
      Paul

      Well, I found the answer to problem # 1 to myself.
      Somehow the IE Tools/Internet Options/programs Internet/tab setting programs section e-mail field has NOT been defined. It was empty.
      I put it to "Windows Live Hotmail" and BINGO! Click on an embedded mailto: link and pops up a new IE window connected to my Hotmail account, open electronic 'Composer the Message' page with the To: field with the link I clicked on.

      Now if only one of you gurus out there can answer problem # 1 b (can Outlook Express 6.0 (OE6.0) be uninstall under XP Pro/SP3 and if so, how? -see my OP) I'll be in sleep with nightmares of moved files reappear magically in an empty folder!

    • "lcwipx.exe of shortcut that you refer to is not available" and her does not open. He also asked delete me the shortcut. What is the problem and how to solve this?

      When connect my external hard drive and opening not wanting my my files, I get this message "shortened lcwipx.exe you make reference to is not available"and her does not open. He also asked delete me the shortcut. What is the problem and how to solve this?

      Hi Pascal,.

      I see that you get an error trying to access files on an external drive. I'll help you with this problem.

      1. What is the brand and model of the computer?

      2. What is the brand and model of the external drive?

      3. what security software is installed on the computer?

      4. have you made changes on the computer recently?

      5A external drive earlier good work?

      6. have you updated to Service Pack 2 installed?

      Method 1.

      Connect a different drive to the computer and check.

      Method 2.

      Plug this external drive on another computer and check the status.

      Method 3.

      Start the computer in safe mode and check.

      Start your computer in safe mode: http://windows.microsoft.com/en-SG/windows-vista/Start-your-computer-in-safe-mode

      Method 4.

      Run a full scan of the computer with the Microsoft Safety Scanner to make sure that the computer is virus-free.

      Microsoft safety scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx

      Warning of Security Scanner: there could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

      Let us know if you need assistance with any windows problem. We will be happy to help you.

    • Download picture of URL link and store the Image in a Local folder in BB10 Webworks

      Hello

      I want to download the image of URL link and store the image in a local folder in Webworks BB10.
      But I did not get the code for this.

      If such knowledge code or have any solution then please help me...

      Thank you best regards &,.

      Laurent Subudhi

      NitishSubudhi wrote:
      I go through this code... but it is throwing the exception. That is to say "ReferenceError: Webworks is undefined '." "

      According to the device/operating system, you need to add the extension of your installation of WebWorks as explained here for OS SmartPhone BB or PlayBook OS.

      To use read the samples provided, they must work somehow. When I worked with the extension on PlayBook I only copy + pasted the provided source code and changed the attributes for the function call:

      // You need to define "remotePath", "localPath", "onProgress", "onError", "options" like shown in documentationblackberry.io.fileTransfer.downloadFile(remotePath, localPath, onProgress, onError, options);
      

      For OS SmartPhone BB the function call looks like this:

      // You need to define "options" like shown in documentationwebworks.io.FileDownloader.download(options);
      

      All think that all information provide here, try to follow and cela should operate.

    • Textoverset and the missing links and fonts

      Hello

      OBS: this is for the use of InDesign CS3

      I have this script that checks the overset text:

      if (app.documents.length != 0){ 
       
         var myFrames = app.activeDocument.textFrames; 
       
         var thePageNames = new Array(); 
       
         for (var j = 0 ; j <= (myFrames.length - 1); j++) { 
       
           if(myFrames[j].overflows == true){ 
       
             try {
       
               thePageName = myFrames[j].parent.documentOffset;
       
             } catch (e) { 
       
               continue; // must be on Pasteboard so ignore
       
             }
       
             thePageNames[thePageName] = 1 
       
           } 
       
         } 
       
         if (thePageNames.length == 0) { 
       
           alert("No oversets found on pages."); 
       
         } else{ 
       
           var s = ""; 
       
           for (i in thePageNames) {  
       
             s = s + app.documents[0].pages[Number(i) - 1].name + ", "; 
       
           } 
       
           s = s.substring(0,s.length - 2); 
       
           alert("Check for oversets on page(s): " + "\n" + s); 
       
         }
       
       } else { 
       
         alert("No documents are open."); 
       
       }
      


      I need to adapt to this script:


      var doc = app.activeDocument; 
      var _PDFExportPreset = app.pdfExportPresets.item('MyPDFSetting');
      if (_PDFExportPreset == null){  
         alert('Preset is missing');  
         exit();  
      }  
      var _DocName = doc.name.replace(/\.indd/, "");  
      var _EndNumber = parseInt(_DocName.match(/\d{3}$/),10); /* extract end number */  
      /* test if is a number */  
      if (isNaN(_EndNumber)){  
          alert('End document name is not a number');  
          exit();  
      }  
        
      for(i = 0; i < doc.pages.length; i++){  
          _PageName = doc.pages.item(i).name;  
          app.pdfExportPreferences.pageRange = _PageName;  
          _NewNumber = _EndNumber + i; /* incresase number */  
          _NewNumber = ("00"+_NewNumber).slice(-3); /* padding */  
          _DocName = _DocName.replace(/\d{3}$/,_NewNumber); /* replace number in doc name */  
          _PDFfile = new File('\\\\Testserver\\Test\\'.concat(_DocName,'.pdf'));  
          doc.exportFile(ExportFormat.pdfType, _PDFfile, false, _PDFExportPreset);  
      }
      
      //If the active document has been changed since it was last saved, save it.
      if(app.activeDocument.modified == true){
       app.activeDocument.save();
      }
      //Closes the active document.
      app.activeDocument.close()
      ;
      

      So if there is NO excess of text I need the script to continue the race and that he there IS in excess of text inside the structure of the document and the active layer I need to alert and stop. It's possilble that I would also like this, it is possible for the user to ignore the overset text and continue to make the script run.

      AND I would also check the missing or outdated links AND missing fonts in princip as well as overset text.

      Hi runew73276507,

      Modify the code as shown below,

      If (app.documents.length! = 0) {}

      var myFrames = app.activeDocument.textFrames;

      var thePageNames = new Array();

      for (var j = 0; j)<= (myframes.length="" -="" 1);="" j++)="">

      If (myFrames [j] .overflows == true) {}

      try {}

      thePageName =. parent.documentOffset myFrames [j];

      } catch (e) {}

      continue; should be on the editing table so ignore

      }

      thePageNames [thePageName] = 1

      }

      }

      If (thePageNames.length == 0) {}

      Alert ("no oversets found on the pages.");

      } else {}

      var s = "";

      for {(i in thePageNames)

      s = s + app.documents [0] .pages [Number (i) - 1] .name + ",";

      }

      s = s.substring (0, s.length - 2);

      If (! confirm ("check the oversets on the page (s):" + "\n" + s + "\nDo you want to continue...)) »))

      Exit();

      }

      } else {}

      Alert ("no documents are open.");

      Exit();

      }

      then write your code here...

    • I just bought edition Creative Cloud schoolgirl and her teacher and the payment has been successful, but it seems that I can only download a free trial?

      I just bought edition Creative Cloud schoolgirl and her teacher and the payment has been successful, but it seems that I can only download a free trial for the entire application?

      And I checked the FAQ, it says that "no serial number is required for membership or subscription plan products such as Creative clouds - the student and the teacher.» Simply sign in with your Adobe ID to activate your membership. »

      However when I tried to login with my ID on Adobe Application Manager, he always says that it can't find the order and suggest me to buy a.

      I really wonder how I can work through this?

      Please see the links below.

      Also, make sure you use the right adobe ID to log in.

      Hope this will help you.

      Kind regards

      Hervé Khare

    • Hi, I would like to cancel my edition (one year) creative Cloud Ecolière and her teacher, how would I go to do this?, Hi, I would like to cancel my plan of edition (one year) Creative Cloud schoolgirl and her teacher, how can I get it?

      Hi, I would like to cancel my edition (one year) creative Cloud Ecolière and her teacher, how would I go to do this?, Hi, I would like to cancel my plan of edition (one year) Creative Cloud schoolgirl and her teacher, how can I get it?

      Look through the following links and use the options by phone or chat (when available), so necessary for your situation:

      Cancel your subscription or membership. Creative cloud

      https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

      https://forums.Adobe.com/thread/1703848

      To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

      https://helpx.Adobe.com/contact.html?step=CCSN_membership-account-payment_cancel-your-memb ership_stillNeedHelp

    • Automatically generate a PDF file without clicking on the link and close the session

      Is there a way to change the configuration of the interview to automatically generate a PDF file instead of having to click on the link "click here for the pdf" at the end of an interview?

      Also after the interview and the generated PDF, can the session automatically close?

      Preferably, I would like to do this without JAVA.

      You can write a JavaScript code piece that going to click on the link of generation of document for you. With respect to the close of the interview, it is the same, use JavaScript to call the bond in the narrow section and then eventually to automatically submit the form of confirmation.

    • Customize the link and the region selector

      Hello

      When you enable customization for the regions (end user can hide/show the region), type of region of the region selector is not updated.
      I have the example here
      https://Apex.Oracle.com/pls/Apex/f?p=39006:4

      Lower left corner, click "Customize".
      Hide parts.

      Hidden areas are still available on the selector in the region.
      I think that it is not logical that you can select the region from the selector of the region, which is not rendered at all =)

      I wonder is this bug, missing feature or customize the link and region selector are not supposed to work "together"?

      Kind regards
      Jari

      Published by: jarola on December 6, 2011 17:21

      Published by: jarola on December 6, 2011 17:34

      Hi Jari,

      I I produced bug # 13476059 - REGION SELECTOR SHOWS AREAS THAT ARE HIDDEN TO CUSTOMIZE the FUNCTION of THE
      and fixed in 4.1.1

      Concerning
      Patrick
      -----------
      My Blog: http://www.inside-oracle-apex.com
      APEX Plug-Ins: http://apex.oracle.com/plugins
      Twitter: http://www.twitter.com/patrickwolf

    Maybe you are looking for