%3 ::xowiki::includelet::view-item-button ::xowiki::includelet::view-item-button render ::xowiki::includelet::item-button ::xowiki::includelet::item-button get_page initialize render_button ::xowiki::includelet::view-item-button->::xowiki::includelet::item-button ::xowiki::includelet::create-item-button ::xowiki::includelet::create-item-button render ::xowiki::includelet::create-item-button->::xowiki::includelet::item-button ::xowiki::includelet::delete-item-button ::xowiki::includelet::delete-item-button render ::xowiki::includelet::delete-item-button->::xowiki::includelet::item-button ::xowiki::includelet::copy-item-button ::xowiki::includelet::copy-item-button render ::xowiki::includelet::copy-item-button->::xowiki::includelet::item-button ::xowiki::includelet::edit-item-button ::xowiki::includelet::edit-item-button render ::xowiki::includelet::edit-item-button->::xowiki::includelet::item-button ::xowiki::Includelet ::xowiki::Includelet → available_includelets → describe_includelets → glob_clause → html_encode → html_id → html_to_text → js_encode → js_name → listing → locale_clause → parent_id_clause → publish_status_clause → require_YUI_CSS → require_YUI_JS category_clause get_current_folder get_page_order include_head_entries initialize js_name resolve_page_name screen_name tableWidget ::xowiki::includelet::item-button->::xowiki::Includelet ::xo::Context ::xo::Context ::xowiki::Includelet->::xo::Context

Class ::xowiki::includelet::edit-item-button

::xowiki::includelet::edit-item-button[i] create ... \
           [ -parameter_declaration (default " {-page_id} {-title "#xowiki.edit#"} {-alt "edit"} {-book_mode false} {-link ""} {-target ""} ") ]

Button to edit the current or a different page
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::includelet::item-button[i]
::xowiki::IncludeletClass create ::xowiki::includelet::edit-item-button \
     -superclass ::xowiki::includelet::item-button

Methods (to be applied on instances)

  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    set page [:get_page page_id]
    if {[$page istype ::xowiki::FormPage]} {
      set template [$page page_template]
      #set title "$title [$template title] [$page name]"
    }
    
    if {$book_mode} {
      append :return_url #[toc anchor [$page name]]
    }
    return [:render_button  -page $page -method edit -package_id $package_id -link $link  -title $title -alt $alt -return_url ${:return_url} -target $target]