- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::includelet::create-item-button
::xowiki::includelet::create-item-button create ... \Button to create a new page based on the current one
[ -__decoration (default "none") ] \
[ -parameter_declaration (default " {-page_id} {-alt "new"} {-book_mode false} ") ]
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl
Class Relations
::xowiki::IncludeletClass create ::xowiki::includelet::create-item-button \ -superclass ::xowiki::includelet::item-buttonMethods (to be applied on instances)
__decoration (setter)
parameter_declaration (setter)
render (scripted)
:get_parameters set page [:get_page page_id] set page_order [::xowiki::utility incr_page_order [$page page_order]] if {[$page istype ::xowiki::FormPage]} { set template [$page page_template] return [:render_button -page $template -method create-new -package_id $package_id -title [_ xowiki.create_new_entry_of_type [list type [$template title]]] -alt $alt -page_order $page_order -return_url ${:return_url}] } else { set object_type [${:__including_page} info class] return [:render_button -page $package_id -method edit_new -package_id $package_id -title [_ xowiki.create_new_entry_of_type [list type $object_type]] -alt $alt -page_order $page_order -return_url ${:return_url} -object_type $object_type] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables