The easy Weblog and Wiki Software
[ start | index | login ]
start > Page Context
The right way to do this is via render context.

I want my layout snips to have access to snip context. That is, if "users/phobia" is the current snip, then layout snips should be able to pass that detail to macros (or perhaps the macro and filter APIs should provide access) so metadata (how many views, what labels are available) can be looked up for display.

Example uses:

  • "post to weblog" link (with context) available only when current snip uses the {weblog} macro.
  • contextual RSS servlet link also available only when suitable macro is used
  • GeoURL badge added only when ICBM label is attached to current snip
  • index of links (from {link} macro or trackback labels) listed in sidebar
It's possible this is already doable (maybe macros have access to Servlet API context and can discern from URL?) but I'm looking for a "clean" API or suggestions.

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13712 Snips. Installed 6 years and 9 days ago

Logged in Users: (1)
… and 19 Guests.

snipsnap-changed for older changes.

< July 2008 > (Page Context)
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST