Class ::xowiki::includelet::rss-button

::xowiki::includelet::rss-button[i] create ... \
           [ -__decoration (default "plain") ] \
           [ -parameter_declaration (default " {-span "10d"} {-name_filter} {-entries_of} {-title} ") ]

Include an RSS button referring to pages of the specified time span.
Defined in packages/xowiki/tcl/includelet-procs.tcl

Class Relations

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

Methods (to be applied on instances)

  • __decoration (setter)

  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    set parent_ids [${:__including_page} parent_id]
    set href [export_vars -base [::$package_id package_url] {{rss $span} parent_ids name_filter title entries_of}]
    ::xo::Page requireLink -rel alternate -type application/rss+xml -title RSS -href $href
    return "<a href=\"[ns_quotehtml $href]\" class='rss'>RSS</a>"