%3 ::xowiki::Link::language ::xowiki::Link::language render ::xowiki::Link ::xowiki::Link init link_name lookup_xowiki_package_by_name new_link pretty_link render render_found render_not_found render_target resolve ::xowiki::Link::language->::xowiki::Link ::xowiki::Link::glossary ::xowiki::Link::glossary render_found resolve ::xowiki::Link::glossary->::xowiki::Link ::xowiki::Link::image ::xowiki::Link::image render render_found resolve_href ::xowiki::Link::image->::xowiki::Link ::xowiki::Link::folder ::xowiki::Link::folder link_name pretty_link ::xowiki::Link::folder->::xowiki::Link ::xowiki::BaseLink ::xowiki::BaseLink anchor_atts built_in_target mk_css_class mk_css_class_and_id ::xowiki::Link->::xowiki::BaseLink ::xotcl::Object ::xotcl::Object ::xowiki::BaseLink->::xotcl::Object

Class ::xowiki::Link::glossary

::xowiki::Link::glossary[i] create ...

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::Link[i]
::xotcl::Class create ::xowiki::Link::glossary \
     -superclass ::xowiki::Link

Methods (to be applied on instances)

  • render_found (scripted)

    ::xo::Page requireJS urn:ad:js:get-http-object
    ::xo::Page requireJS  "/resources/xowiki/popup-handler.js"
    ::xo::Page requireJS  "/resources/xowiki/overlib/overlib.js"
    if {![info exists :cssid]} {:cssid [::xowiki::Includelet html_id [self]]}
    template::add_event_listener  -id ${:cssid}  -script [subst {showInfo('[ns_quotehtml $href?master=0]','$label')}]
    return "<a href='[ns_quotehtml $href]' [:mk_css_class_and_id -additional glossary]>$label</a>"
  • resolve (scripted)

    # look for a package instance of xowiki, named "glossary" (the type)
    set id [:lookup_xowiki_package_by_name ${:type}  [site_node::get_node_id_from_object_id -object_id ${:package_id}]]
    #:log "--LINK glossary lookup returned package_id $id"
    if {$id > 0} {
      # set correct package id for rendering the link
      set :package_id $id
      #:log "-- INITIALIZE $id"
      #::xowiki::Package initialize -package_id $id
      #:log "--u setting package_id to $id"
      # lookup the item from the found folder
      return [::xo::db::CrClass lookup -name ${:name} -parent_id [$id set parent_id]]
    }
    #:log "--LINK no page found ${:name}, ${:lang}, type=${:type}."
    return 0