Class ::xowiki::includelet::iframe

::xowiki::includelet::iframe[i] create ... \
           [ -parameter_declaration (default " {-title ""} {-url:required} {-width "100%"} {-height "500px"} ") ]

Include an iframe containing the specified URL
Documented Parameters:
title
url
width
height
Defined in packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::Includelet[i]
::xowiki::IncludeletClass create ::xowiki::includelet::iframe \
     -superclass ::xowiki::Includelet

Methods (to be applied on instances)

  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    
    if {$title eq ""} {
      set title $url
    }
    
    set url    [ns_quotehtml $url]
    set title  [ns_quotehtml $title]
    set width  [ns_quotehtml $width]
    set height [ns_quotehtml $height]
    
    return [subst -nocommands {
      <iframe src='${url}' width='${width}' height='${height}'></iframe>
      <p><a href='${url}' title='${title}'>${title}</a></p>
    }