tqExpert Help


You use the simpleMenu tqTag (in an outer or an inner template) to set up a Category-based menu.

Main Features:
  • Virtual paths - simpleMenu supports virtual paths, a section were virtual path is set, the simpleMenu will use it instead of the sectionID
  • Tree menu - simpleMenu supports hierarchy menus
  • Avatar menu - simpleMenu supports image-menu (show only images or text with images)
  • Hierarchy menu with content items - You can create a menu of sections and their content items as a second level in the heirarchy
  • Starting point section selection - simpleMenu supports the selection of the starting point parent section
  • Automatic section start point - simpleMenu supports automatic selection of the parent start point according to the location of the user at your website/application
  • Show/hide sections - only sections where "Show in website" attribute set to "yes" will be shown at the website front.
  • Section order - You can choose the order of the sections for each parent section by selecting the parent section and clicking "Categories Order"

simpleMenu - Syntax

<tqtag type="simpleMenuname="topMenu" maxItems="25title="please select the parent section starting point[allowStartPoint] [showOnlySubSections]>

simpleMenu - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be simpleMenu
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
title Alpha Numeric + S - The title of the tqtag. This title will be presented only at the back-end system.  no spaces/commas/single quote/double quotes allowed
allowStartPoint Text - T   This parameter gives the application's administrator the option to select the parent section start point for the menu. if this parameter is not defined the system will select the current section as the parent section starting point
alternativeTag Text + S + Specify a case declared within the alternative tqTag.
alternativeCondition Text + S + (optional, if the condition is specified within the alternative tqTag) Indicate a condition for the case that you are specifying. Use one of the values described for this field under alternative.
maxItems Number - S   The max number of menu items to display.
searchOnly Text - T + This parameter tells the simpleMenu tqtag to skip the tqtag process if on the Category Settings page the value for Searchable is No.
showOnlySubSections Text - T   This parameter tells the simpleMenu tqtag to skip the tqtag process in case there are no sub-sections to the current section

simpleMenu - Local Variables

Name Type Size Description
addDate datetime   The datetime the section was created or last modified. can be formated using 2009-01-05 14:20:02df:[format]!
autoCreateWildCard text 3 (on or off) For the Category Settings page, on sets the default value of Auto-create Virtual Path to Yes.
avatar text 200  The section avatar (small pic). The entire image (img) html tag
avatarSrc text 200 The section avatar URL (only the value of the src parameter in the img tag)
counter number  5 running number (1...n)
drillDownTitle text 3 (on or off; default = off) An on value determines that a sub-Category inherits the title of the parent Category.
id number  5 sectionID in the database
identifyAsParent text 3 (on or off) For a sub-Category, on displays content items when parent Categories are specified in the code.
link text 255  link to the section in this order: section redirect, section virtual path, section ID
mainPic text  200 The section main picture. The entire image (img) html tag
mainPicSrc text  200 The section main picture URL (only the value of the src parameter in the img tag)
metaDescription text 65535  Meta description defined for the section
metaKeywords text 65535  Meta keywords defined for the section
metaPrefix text 3 (on or off) If drillDownTitle is enabled,  on enables Meta Title Prefix functionality. This means that a sub-Category Title is concatenated from the parent Meta Title Prefix and the sub-Category Title value.
metaTitle text 65535 Meta title defined for the section
parentID number 5 Parent Section ID (Zero means no parent - highest level section)
position number/text   first - for first section
firstSelected - incase first section is current section
2...n-1 - for all sections (not including first and last)
selected - current selected section (if not first or last section)
last - for last section
lastSelected - incase last section is current section
searchable text 3 (on or off) If on, internal Website search will scan the Category. If off, the contents within the Category are hidden from internal search.
sectionName text 180 Name/Title of the section


simpleMenu - tqOptions

With the simpleMenu tqtag, you can use the following tqoptions: head, if, lastItemInRow, tail, subSections.

Related Topics

Implement a Simple Menu

User Notes

  Add Note

Topic: simpleMenu