- Publicity: Public Only All
subsite-navigation-procs.tcl
Procs to manage the default template's navigation multirow.
- Location:
- packages/acs-subsite/tcl/subsite-navigation-procs.tcl
- Created:
- 2008-04-26
- Author:
- Don Baccus <dhogaza@pacifier.com>
- CVS Identification:
$Id: subsite-navigation-procs.tcl,v 1.5.2.3 2022/08/29 14:17:24 antoniop Exp $
Procedures in this file
- subsite_navigation::define_pageflow (public)
- subsite_navigation::get_pageflow_struct (public)
- subsite_navigation::get_section_info (public)
Detailed information
subsite_navigation::define_pageflow (public)
subsite_navigation::define_pageflow [ -subsite_id subsite_id ] \ [ -show_applications_p show_applications_p ] \ [ -no_tab_application_list no_tab_application_list ] \ [ -initial_pageflow initial_pageflow ] \ [ -navigation_multirow navigation_multirow ] [ -group group ] \ [ -subgroup subgroup ] [ -include_all ]
Defines the page flow of the subsite. This sets up a navigation multirow as defined by the default master installed by openacs, which renders it as one or more rows of tabs. The standard CSS defines classes for two rows of tabs, if you want more, you must define your own CSS classes. If the navigation multirow doesn't exist, we create it.
- Switches:
- -subsite_id (optional)
- The package id of the subsite we're interested in (defaults to current)
- -show_applications_p (optional, defaults to
"1"
)- If true, autogenerate tabs for applications (not declared boolean because the tabbed master takes this from a package parameter)
- -no_tab_application_list (optional)
- A list of application package keys to ignore when autogenerating tabs for applications
- -initial_pageflow (optional)
- Add these subsections before computing the rest of the page flow
- -navigation_multirow (optional, defaults to
"navigation"
)- The name of the multirow used to build the nav bars
- -group (optional, defaults to
"main"
)- Group name for the primary section
- -subgroup (optional, defaults to
"sub"
)- Group name for the subsection (opened under a selected tab)
- -include_all (optional, boolean, defaults to
"false"
)- Per default, only the subgroup of the currently selected top menu is return. When -include_all is specified, the resulting multirow contains all subgroups (useful for pull-down menus)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
subsite_navigation::get_pageflow_struct (public)
subsite_navigation::get_pageflow_struct [ -subsite_id subsite_id ] \ [ -initial_pageflow initial_pageflow ] \ [ -show_applications_p show_applications_p ] \ [ -no_tab_application_list no_tab_application_list ]
Defines the page flow structure.
- Switches:
- -subsite_id (optional)
- The package id of the subsite we're interested in (defaults to current)
- -initial_pageflow (optional)
- Add these subsections before computing the rest of the page flow
- -show_applications_p (optional, defaults to
"1"
)- If true, autogenerate tabs for applications (not declared boolean because the tabbed master takes this from a package parameter)
- -no_tab_application_list (optional)
- A list of application package keys to ignore when autogenerating tabs for applications
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
subsite_navigation::get_section_info (public)
subsite_navigation::get_section_info [ -array array ] \ [ -navigation_multirow navigation_multirow ]
Takes the navigation_multirow and sets the passed array name with the elements label and url of the selected section.
- Switches:
- -array (optional, defaults to
"section_info"
)- -navigation_multirow (optional, defaults to
"navigation"
)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.