Apache::Wyrd::Site::TagPull

Apache::Wyrd::Site::TagPull.pm can display a list of Pages by subject.
Download

Apache::Wyrd::Site::TagPull Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Barry King
  • Publisher web site:
  • http://search.cpan.org/~wyrd/Apache-Wyrd-0.98/Wyrd/Services/CodeRing.pm

Apache::Wyrd::Site::TagPull Tags


Apache::Wyrd::Site::TagPull Description

Apache::Wyrd::Site::TagPull.pm can display a list of Pages by subject. Apache::Wyrd::Site::TagPull Perl module can display a list of Pages by subject.SYNOPSIS < BASENAME::TagPull search="newsletter AND current" > < BASENAME::Template name="list" >< table >$:items< /table >< /BASENAME::Template > < BASENAME::Template name="item" > < tr >< td >< a href="$:name" >$:title< /a >?:published{, posted: $:published} ?:description{< BR >—$:description}< /td >< /tr > < /BASENAME::Template > < BASENAME::Template name="selected" > < tr >< td >< b >$:title?:published{, posted: $:published}< /b > ?:description{< BR >—$:description}< /td >< /tr > < /BASENAME::Template > < /BASENAME::TagPull >TagPulls operate on the Page attribute "tags" which is a map attribute of the Index object. Given a search string of these tags, the Index is queried for documents which have those tags as items in their "tags" attribute. The list is returned following the format defined by the TagPull's templates: list, item, and selected.Note, however, that like Apache::Wyrd::Site::Pull's "eventdate" attribute, the "tags" attribute is optional and must be defined as a map of the index itself. (See Apache::Wyrd::Site::Index for more details of these optional attributes.)Each of these templates represents a component of the HTML that is expressed. All of them follow the Apache::Wyrd::Interfaces::Setter-style conventions for placemarkers and conditional expressions:list"list" is the HTML which bounds the list itself: in one of the list tags, it represents the list tags themselves (e.g. < UL >...< /UL >). Where the items of the list are to appear, the placemarker $:items should appear.item"item" is the HTML which represents an individual page. Whatever attributes of the Page you want to display in the list need to be given in placemarkers of this template.selectedIdentical to "item", but used only if the document in the TagPull list is the document on which it appears. This template is kept separate from the item template to allow the document to be treated differently on the page on which it appears, for example, not at all, or unlinked, so that it is clear it can't be navigated to. (Not normally used, see "metoo" flag, below.)Another feature of a TagPull is that if it encloses any HTML with Setter-style placemarkers, it will assume that it should treat that text as a template for the HTML enclosing the list, and replace the $:list placemarker with the complete list itself.One more feature of TagPulls is that they will change the private attribute "_pull_results" of the enclosing Wyrd to an integer representing how many of the results were found. What the parent Wyrd does with this data is not determined by the TagPull. Requirements: · Perl


Apache::Wyrd::Site::TagPull Related Software