The Artima Developer Community
Sponsored Link

PHP Buzz Forum
25 patBBCode describers meet patTemplate 13

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stephan Schmidt

Posts: 238
Nickname: schst
Registered: Sep, 2004

Stephan Schmidt is a founding member of PHP Application Tools and a PEAR developer.
25 patBBCode describers meet patTemplate 13 Posted: Dec 7, 2004 4:55 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Stephan Schmidt.
Original Post: 25 patBBCode describers meet patTemplate 13
Feed Title: a programmer's best friend
Feed URL: http://blog.php-tools.net/rss.php?version=1.0
Feed Description: The blog of PHP Application Tools
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Stephan Schmidt
Latest Posts From a programmer's best friend

Advertisement
f4c I have added the patTemplate driver to the new Describer class included with patBBCode: this driver uses a patTemplate template file or loaded templates to generate the tag guide, leaving nearly total control in layout. The effect can best be seen by comparing the very simple HTML Driver output with the new patTemplate driver output.

In addition to making it possible to let patBBCode render its tag guide automatically directly in your site's design, the patTemplate driver has a series of options you can set, namely:

  • injectContent: whether to inject the content into the loaded templates directly, or return the rendered list as a string. This is very useful if you want to inject the content directly in place into an existing template your application has already loaded.
  • sortBy: sorting of the tags list. Possible values are 'tagName' to order by tag names alphabetically, 'attributes' to sort by tags with or without attributes, or set to 'null' to disable completely.
  • sortDir: sorting direction. asc|desc
  • containerTemplate: sets the name of the template containing the whole tags list
  • entryTemplate: the name of the template for each tag
  • attributesTemplate: the name of the template with the attributes list
  • variablePrefix: a prefix prepended to all variables in the templates - use if some of the standard variable names collide with existing ones in your application
These changes are currently only available in CVS, so you can view the changes in our WebCVS or download the latest CVS snapshot. 17

Read: 25 patBBCode describers meet patTemplate 13

Topic: 23 The Torture of Christmas draws near 15 Previous Topic   Next Topic Topic: PHP5 & COM (ADSI), Managing IIS

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use