-
Notifications
You must be signed in to change notification settings - Fork 18
MidCOM NAP Constants
flack edited this page Dec 8, 2016
·
2 revisions
MidCOM NAP info such as the current Node and Leaf URL can be accessed via midcom.helper.nav, and is returned in a key => value array. The keys can be found below. It is also possible to access the values for NAP nodes or leaves. NAP can be accessed like this:
$nap = new midcom_helper_nav();
- MIDCOM_NAV_ACL
- MIDCOM_NAV_COMPONENT - the name of the current Component
- MIDCOM_NAV_GUID
- MIDCOM_NAV_ICON
- MIDCOM_NAV_ID - The ID of the element in question.
- MIDCOM_NAV_NAME - The clear text name of the element in question.
- MIDCOM_NAV_NODEID - Some Uplink ID to another node.
- MIDCOM_NAV_NOENTRY
- MIDCOM_NAV_OBJECT
- MIDCOM_NAV_SCORE - The object's numerical position in the sorting order under its node.
- MIDCOM_NAV_SUBNODES - Yet unused.
- MIDCOM_NAV_TYPE - The Type of the element in question ("node" or "leaf").
- MIDCOM_NAV_TOOLBAR
- MIDCOM_NAV_ABSOLUTEURL - The absolute URL of the current Topic, excluding the domain name, Host prefix and Page
- MIDCOM_NAV_FULLURL - The full URL, including the domain name
- MIDCOM_NAV_PERMALINK
- MIDCOM_NAV_RELATIVEURL - The URL name of the element in question (relative to the Root topic of the current Page or Host)
- MIDCOM_NAV_URL - The URL name of the element in question (relative to the topic of the current component).
- MIDCOM_NAVORDER_DEFAULT
- MIDCOM_NAVORDER_ARTICLESFIRST
- MIDCOM_NAVORDER_TOPICSFIRST
- MIDCOM_NAVORDER_SCORE