The Folder:Text Match option is designed to allow you to handle large numbers of current marker exceptions and is typically used as a global option applied to every page. Use this option when you have a large number of pages that are not represented in the menu.
This option allows you to specify a series of folder names and link text values that the system will use for determining the current marked link in the menu. For example, you can specify that any page which contains the folder "support" in its URL will be matched to the specific text link "Information". This is referred to as a Folder Name :: Link Text pair.
You can specify as many of these Folder Name :: Link Text pairs as you like. The system will test each pair until it finds a match. If a match is found it will apply the current marker style class, current_mark, to the menu link to provide the "you are here trail" in the menu. You can use this system to automatically handle current marking for all of your site's pages without having to edit any of them individually.
This feature should only be used on pages that are NOT linked in the menu. The Advanced Current Marker is designed to address current marking only for those pages that are not represented in the menu. If the page does have a corresponding link in the menu then that link will be used by the default Current Marker instead.
To open the interface:
-Click inside the DMM menu that you wish to act on.
-Choose Commands > Studio VII > Drop Menu Magic by PVII > Advanced Current Marker Options...

Note: The Advanced Current Marker option will be unavailable (grayed out) if there is no Drop Menu Magic html markup on the page or if you have not clicked on the menu you wish to act on.
The Advanced Current Marker user interface will open.

The interface has four options from which to choose. The radio button to the left of each option determines which option is currently active. The default setting is always the second option.
-Click on the fourth radio button to select the Folder Name :: Link Text option.

The interface allows you to add as many Folder Name :: Link Text pairs as you like. The first pair is always pre-defined and ready for editing.
This example will work with a menu system that resembles the structure of the projectseven.com web site menu. You have an Extensions link that links to a main extensions page, but there are quite a few pages that are related to Extensions and stored in a folder named extensions. Naturally, all of these pages do not appear in your menu. A Folder Name :: Link Text rule can be defined to apply the current marker to the Extensions link for any page that contains "extensions" in the page's URL.
The folder name is case sensitive and should match the actual folder name as used in your site.
-Enter the folder name extensions into the If Url contains this Folder Name box.

The Mark this Link Text list is an alphabetized listing of all of the links in the menu.
-Select the Extensions link text.

The interface now reflects your changes. The first Folder Name :: Link Text pair is defined.

The system will apply the current marker to the Extensions menu item whenever the page contains the extensions folder in its address (URL).
The site contains many pages that relate to the Products section but are not represented as links in the menu. To handle these pages you can add another Folder Name :: Link Text pair.
-Click the Add button. A new Folder Name :: Link Text line item is created in the interface. The values are preset to default values, ready for editing.

-Enter the folder name, products, into the If Url contains this Folder Name box.
-Select the Products link text in the Mark this Link Text drop down.

The interface now reflects your changes. Two Folder Name :: Link Text pairs are defined.

The site also contains sub-folders in the products area. You can define a compound folder name to allow a set of pages to current mark a more specific link.
-Click the Add button.
A new Folder Name :: Link Text line item is created in the interface.
-Enter the folder name, products/menusystems into the If Url contains this Folder Name box.

This will instruct the system to apply the current mark to the menu Systems link item whenever the page contains products/menusystems in its URL.
The system will apply the current mark to the first match it finds. It will search in the same order as the pairs are listed in the interface. In this case it will always find the products match before it finds the compound products/menusystens match since the page URL contains the word products and the products pair is listed before the products/menusystems pair.
-With the products/menusystems pair selected, click the Up button.

The system moves the selected item up one line. Now the search for the compound folder name will be made before the search for the products folder name.
You can move any selected line Up or Down. Each time the button is clicked the selected item will move one line.
You can delete an existing defined Folder Name :: Link Text pair at any time. Select the Folder Name :: Link Text pair you wish to delete and simply click the Delete button.
-Click the OK button to apply the selected Advanced Current Marker to the current page.

-You can preview and test the menu now.
Note: If your preferences are set to Preview using temporary file, this feature will not work locally. To preview locally, turn off the Preview using temporary file option in Dreamweaver Preferences.
© Copyright 2013 Project Seven Development. All Rights Reserved.