etp::get_attribute_pretty_name (public)

 etp::get_attribute_pretty_name attribute_desc [ page_name ]

Defined in packages/edit-this-page/tcl/etp-procs.tcl

Parameters:
attribute_desc (required)
page_name (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/edit-this-page/www/etp-edit.tcl packages/edit-this-page/ www/etp-edit.tcl etp::get_attribute_pretty_name etp::get_attribute_pretty_name packages/edit-this-page/www/etp-edit.tcl->etp::get_attribute_pretty_name packages/edit-this-page/www/etp.tcl packages/edit-this-page/ www/etp.tcl packages/edit-this-page/www/etp.tcl->etp::get_attribute_pretty_name etp::get_application_param etp::get_application_param (public) etp::get_attribute_pretty_name->etp::get_application_param

Testcases:
No testcase defined.
Source code:
        set pretty_name [lindex $attribute_desc 1]

        # handle customized standard attribute names
        # which are set up with etp application parameters
        set attr_name [lindex $attribute_desc 0]
        if {$attr_name in { title description content }} {
            if { $page_name eq "index" } {
                set param_name "index_${attr_name}_attr_name"
            } else {
                set param_name "content_${attr_name}_attr_name"
            }

            ns_log debug "get_attribute_pretty_name: Asking for $param_name"
            set pretty_name [etp::get_application_param $param_name]
        }

        return $pretty_name
Generic XQL file:
packages/edit-this-page/tcl/etp-procs.xql

PostgreSQL XQL file:
packages/edit-this-page/tcl/etp-procs-postgresql.xql

Oracle XQL file:
packages/edit-this-page/tcl/etp-procs-oracle.xql

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