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/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]