Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Free nodelet templates make scratchpads _freer

by tye (Sage)
on Sep 10, 2005 at 06:41 UTC ( [id://490843] : monkdiscuss . print w/replies, xml ) Need Help??

You can now add links to your public and/or private scratchpads via your Free Nodelet. For example, just add something like the following to your Free Nodelet (via Free Nodelet Settings after you've enabled it via Nodelet Settings):

<ul><!--todo-<li>[id://`id`] </li>--> </ul> [href://?node_id=`id`;op=_freer;at=todo|Add] [`id`] above, [href://?node_id=`id`;op=_freer;at=ad;in=pub|Promote], [href://?node_id=`id`;op=_freer;at=ad;in=priv|Watch], [href://?node_id=`id`;op=_freer;at=ad;in=priv;in=pub|Both].

And add the following to the public and private areas of your scratchpad:

<hr /> Nodes of interest: <ul> <!--ad-<li>[id://`id`]</li> --> </ul> <hr />

And you'll see links like:

Add 490843 above, Promote, Watch, Both.

in your Free Nodelet and clicking the "Promote" one will add the current node to the list on the public part of your scratchpad, clicking the "Watch" one will add it to the private part, and "Both" will add it to both lists.

See Free Nodelet gets templating features for more about using these templates and Free Nodelet freed for the original announcement of the Free Nodelet and some other ways to make use of it.

The technical change is that the op=_freer now accepts one or more in= CGI parameters that can each be "free", "pub", or "priv" to have the template expansion applied to (respectively) your Free Nodelet (the default), your public scratchpad, and/or your private scratchpad.

- tye        

Replies are listed 'Best First'.
Re: Free nodelet templates make scratchpads _freer
by demerphq (Chancellor) on Sep 10, 2005 at 07:47 UTC

    Cool tye. Lets just hope someone steps up and writes a nice sitefaqlet about the free nodelet. /me gazes out at the clan....


      Very few if any nodelets have their own faqlets, currently. Free Nodelet, like the others, is documented in a section of What are Nodelets?, which I have updated.
Re: Free nodelet templates make scratchpads _freer
by chanio (Priest) on Sep 10, 2005 at 23:10 UTC
    Perhaps, a qualified monk could write a 'Cool Uses for Free Nodelet' that would encourage further uses of such a nice idea! And present some ready-made examples with different approaches.

    { \ ( ' v ' ) / }
    ( \ _ / ) _ _ _ _ ` ( ) ' _ _ _ _
    ( = ( ^ Y ^ ) = ( _ _ ^ ^ ^ ^
    _ _ _ _ \ _ ( m _ _ _ m ) _ _ _ _ _ _ _ _ _ ) c h i a n o , a l b e r t o
    Wherever I lay my KNOPPIX disk, a new FREE LINUX nation could be established