2018-04-27, 08:41

Feb 27, 2012 — Notify Users module, ver. 0.5 released — user can choose between sending single message (...) »

2013-01-28, 08:32

19 студзеня 2013 у Гродне трагічна загінуў паэт, журналіст і мой сябар (...) »

2009-10-14, 07:19

The site Litaratura.org is devoted to Belarusian literary works and translations. (...) »

2009-01-12, 20:46

Late November 2008 marked the 20th anniversary of the official founding of the Belarusian (...) »

Registered User Area Log into This Site
Show Credits... Credits
Worthwhile Services
Refresh My Local Time (GMT+1)... Apr 27, 2018 — 08:41
  • Austria (1)
    Norway (1)
    Sweden (2)
    United States (7)
  • Today (113)
  • Yesterday (451)
~ / Public Domain Software / Extensions to Ditto / tvFilter Extender $_
tvFilter Extender
Click To View A Full Size Image...
2010-01-10, 18:44

Ditto’s extender is an opportunity for defining custom placeholders and/ or filters without interfering into snippet’s core code.

Particularly, a custom filter is an interesting thing — it is a callback function that the core code executes on each item in the final dataset.

tvFilter extender filters returned documents depending on the fact whether the specific template variable is attached to a document or not.

How to use tvFilter

# 1) put tvFilter.extender.inc.php file into /assets/snippets/ditto/extenders folder
# 2) call your Ditto as:
[[Ditto? &parents=`3,4,5` ... &extenders=`tvFilter` &tvFilterBy=`dummy` &tvFilterMode=`0` ... ]]

In the above example, documents within 3, 4, and 5 containers that have not dummy template variable attached will be thrown out from the final dataset.

Download This Attachment... tvFilter Extender — the very latest version
Last modified: 2010-01-11, 00:00 — Size: 1,61 KB — Users: 216 — Downloads: 407
Click to show a form...Click to hide the form... Write a comment
  • Required fields are marked with *.
  • Comments are published after the approval of the site owner, who is a human rather than a wind-fast computer program so please be patient.

* Code:
 
Get another image...Enter this code into the appropriate field of the form while submitting an e-mail or a comment. If you have trouble with reading it, generate another...