|
|
|
|
|
|
|
|
|
|
|
|
|
|
How to create Yahoo-like Web folder navigation (continued)
Just below the dspCurrentLocation field is computed text used to display the SpecialContent information specific to the current folder or view. The text is displayed as pass-through HTML, allowing HTML tags to be embedded for achieve formatting. The formula for the computed text is:
REM "get the special content text";
txt := @DbLookup(""; ""; "(FolderNavigation)"; FolderName; "SpecialContent");
REM "check to ensure there was a folder";
@If(@IsError(txt); ""; txt)
|
The final field on the form is NextLevel, which is visible. It displays the list of folders one level below the current folder in the hierarchy. This field is displayed as pass-through HTML, with each folder an element of a bulleted list. The formula for this field is:
REM "URL for the database.";
url := "/" + @Subset(@DbName; -1) + "/Folder?OpenForm&CurrentLocation=";
REM "replace blanks with plusses, back-slashes with forward slashes and";
REM "double forward-slashes with single forward slashes";
completeURL := @ReplaceSubstring(@ReplaceSubstring(@ReplaceSubstring(url; " "; "+"); "\\"; "/"); "//"; "/");
REM "Look for folders in the next level down";
FolderNames := @Unique(@Left(@Trim(@Right(Folders; CurrentLocation)); "\\"));
REM "Calculate the paths to those folders";
FolderPaths := CurrentLocation + FolderNames;
REM "turn the list into HTML";
display := "<LI><A HREF=\"" + completeURL + FolderPaths + "\">" + FolderNames + "</A>";
"<FONT FACE=\"ARIAL\">" + @If(FolderNames = ""; "(none)"; display) + "</FONT>"
|
Below the list of sub-folders is the embedded view. The formula for the embedded selection is simply: FolderName. The entire embedded view is subject to a hide-when formula that displays the view only if there are documents in the selected view/folder. To check this, look at the value of the hidden field Listings, which is a count of the documents in the view/folder. The hide-when formula for the embedded view is:
Below the embedded view is a line of text saying "(None)" that's visible when the embedded view is hidden.
Adding the special content for each folder Each (ViewInfo) document is created with the field SpecialContent blank. A view called Folders & Views displays all the (ViewInfo) documents, allowing you to edit them and add SpecialContent information. Because the SpecialContent is displayed on the Folder form as pass-through HTML, you can embed HTML tags within the text. A typical entry could look like this:
<H3><Font color="red">Ford Motor Company</font></H3>
Ford Motor Company's Web site states, "At Ford Motor Company, we have a
passion for Better Ideas. Whether pushing the limits of technology and
design, or bringing people together within a community, we work to approach
every challenge with ingenuity and caring."
<H4>Brands Owned by Ford Motor Company</H4>
Ford, Lincoln, Mercury, Mazda, Volvo, Jaguar, Aston Martin, Land Rover
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done.
Native to Lotus Domino. The User Experience unseen for Lotus Domino.
Do more with less. Really.
See the possibilities Docova unleashes for Lotus Domino. |
-- Advertisement --
Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.
Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).
Tap here to get started! |
|
|
|
|
|
|
|
|
|
|