Class ::xowiki::includelet::my-yahoo-publisher

::xowiki::includelet::my-yahoo-publisher[i] create ... \
           [ -__decoration (default "none") ] \
           [ -parameter_declaration (default " {-publisher ""} {-rssurl} ") ]

Name of the publisher, when posting URLs to my yahoo (use in connection with with_yahoo_publisher).
Documented Parameters:
publisher
rssurl
Defined in packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::Includelet[i]
::xowiki::IncludeletClass create ::xowiki::includelet::my-yahoo-publisher \
     -superclass ::xowiki::Includelet

Methods (to be applied on instances)

  • __decoration (setter)

  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    
    set publisher [ad_urlencode $publisher]
    set feedname  [ad_urlencode [::$package_id get_parameter -check_query_parameter false PackageTitle [::$package_id instance_name]]]
    set rssurl    [ad_urlencode $rssurl]
    set my_yahoo_link "http://us.rd.yahoo.com/my/atm/$publisher/$feedname/*http://add.my.yahoo.com/rss?url=$rssurl"
    
    return "<a class='image-button' href='[ns_quotehtml $my_yahoo_link]'><img src='http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif' width='91' height='17' align='middle' alt='Add to My Yahoo!'></a>"