- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::youtube_url
::xowiki::formfield::youtube_url create ...
Class Relations
::xotcl::Class create ::xowiki::formfield::youtube_url \ -superclass ::xowiki::formfield::textMethods (to be applied on instances)
initialize (scripted)
next if {${:help_text} eq ""} { set :help_text "#xowiki.formfield-youtube_url-help_text#" }pretty_value (scripted)
if {$v eq ""} { return "" } elseif {[regexp [[self class] set urlre] $v _ name]} { return "<object width='425' height='344'> <param name='movie' value='http://www.youtube.com/v/$name&fs=1'></param> <param name='allowFullScreen' value='true'></param> <embed src='http://www.youtube.com/v/$name&fs=1' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='344'></embed> </object>\n" } else { return "'$v' does not look like a youtube url" }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables