group::title (public)

 group::title [ -group_name group_name ] [ -group_id group_id ]

Defined in packages/acs-subsite/tcl/group-procs.tcl

Get the title of a group based either on group_name or on the group_id.

Switches:
-group_name (optional)
The name of the group. Note this is not the I18N title we want to retrieve with this procedure
-group_id (optional)
The group_id of the group

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_group_type acs_subsite_group_type (test acs-subsite) group::title group::title test_acs_subsite_group_type->group::title group::get_element group::get_element (public) group::title->group::get_element group::get_id group::get_id (public) group::title->group::get_id

Testcases:
acs_subsite_group_type
Source code:
    if {$group_name ne ""} {
        if {$group_id ne ""} {
            error "specify either -group_name or -group_id, but not both"
        }
        set group_id [group::get_id -group_name $group_name]
    }

    if {$group_id ne ""} {
        return [group::get_element -group_id $group_id -element "title"]
    } else {
        return ""
    }
XQL Not present:
Generic
PostgreSQL XQL file:
packages/acs-subsite/tcl/group-procs-postgresql.xql

Oracle XQL file:
packages/acs-subsite/tcl/group-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: