Class ::xowiki::includelet::html-file (public)
::xowiki::IncludeletClass ::xowiki::includelet::html-file
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl
Include the specified HTML file
- Testcases:
- No testcase defined.
Source code: namespace eval ::xowiki::includelet {} ::nsf::object::alloc ::xowiki::IncludeletClass ::xowiki::includelet::html-file {set :__default_metaclass ::xotcl::Class set :__default_superclass ::xotcl::Object set :aggregating false set :cacheable false set :localized true set :personalized true} ::xowiki::includelet::html-file instproc render {} { :get_parameters if {$title eq ""} {set title $file} set parent_id [${:__including_page} parent_id] set page [::$package_id get_page_from_item_ref -parent_id $parent_id $file] if {$page eq ""} { error "could not resolve page from item ref $file" } if {$extra_css ne ""} {foreach css $extra_css {::xo::Page requireCSS $css}} return [$page html_content -add_sections_to_folder_tree $levels -owner [self]] } ::xowiki::includelet::html-file instproc href {book_mode name} { if {$book_mode} { set href [::xo::cc url]#[toc anchor $name] } else { set href [::${:package_id} pretty_link -parent_id [${:__including_page} parent_id] $name] } return $href } ::xowiki::includelet::html-file instproc page_number {page_order remove_levels} { #:log "o: $page_order" set displayed_page_order $page_order for {set i 0} {$i < $remove_levels} {incr i} { regsub {^[^.]+[.]} $displayed_page_order "" displayed_page_order } #return $displayed_page_order return "" } ::xowiki::includelet::html-file instparametercmd parameter_declaration ::nsf::relation::set ::xowiki::includelet::html-file superclass ::xowiki::Includelet ::nx::slotObj -container slot ::xowiki::includelet::html-file ::xowiki::includelet::html-file::slot eval {set :__parameter { {parameter_declaration { {-title ""} {-extra_css ""} {-levels 0} {-file:required} }} }} ::nsf::object::alloc ::xotcl::Attribute ::xowiki::includelet::html-file::slot::parameter_declaration {set :accessor public set :configurable true set :convert false set :default { {-title ""} {-extra_css ""} {-levels 0} {-file:required} } set :defaultmethods {} set :disposition alias set :domain ::xowiki::includelet::html-file set :incremental 0 set :manager ::xowiki::includelet::html-file::slot::parameter_declaration set :methodname parameter_declaration set :multiplicity 1..1 set :name parameter_declaration set :per-object false set :position 0 set :required false set :substdefault 0b111 set :trace none : init}XQL Not present: Generic, PostgreSQL, Oracle