%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::copy-item-button

::xowiki::includelet::copy-item-button[i] create ... \
           [ -__decoration (default "none") ] \
           [ -parameter_declaration (default " {-page_id} {-alt "copy"} {-book_mode false} ") ]

Button to copy a 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::copy-item-button \
     -superclass ::xowiki::includelet::item-button

Methods (to be applied on instances)

  • __decoration (setter)

  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    set page [:get_page page_id]
    
    if {[$page istype ::xowiki::FormPage]} {
      set template [$page page_template]
      return [:render_button  -page $template -method create-new -package_id $package_id  -title [_ xowiki.copy_entry [list type [$template title]]]  -alt $alt -source_item_id [$page item_id]  -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.copy_entry [list type $object_type]]  -alt $alt -source_item_id [$page item_id]  -return_url ${:return_url}  -object_type $object_type]
    }