Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Help for Free Nodelet Settings

by SiteDocClan
on Dec 15, 2006 at 19:36 UTC ( #590089=sitefaqlet: print w/replies, xml ) Need Help??

Help for Free Nodelet Settings

Use Free Nodelet Settings

This is a free-form "scratchpad" box in nodelet form. You can put any HTML in it you want (including PerlMonks-specific markup, of course!). You can also put CSS style information in it.

The place to manage the content of this node is Free Nodelet Settings.

If you'd like to have some javascript added to every PerlMonks page in order to enhance your experience of the site, this is where you'd put it. One of the clever uses some monks have found for it is to automate specialized PerlMonks tasks. To see some of these tricks, search for nodes with Free Nodelet Hack in the title.

When your Free Nodelet content is rendered, it is scanned for certain magical strings, and any found are replaced with information from the current node context. (You can think of these as variables, or macros.) They all have the form `name`. The following table shows what information is substituted into your Free Nodelet content for each special string:
`id`node ID
`type_id`the node type's node ID
`type_title`the node type's title
`author_id`the author's homenode ID
`author_title`the author's username
`createtime`the time at which the node was created
`nodeupdated`the time at which the node was last updated in the database (may be null)
`lastedit`the time at which the node was last edited by a user (may be null. will always be null for non-document node types)
`lastupdate`for user homenodes, the time at which the node was last "significantly" changed
`lasthere`for user homenodes, the time at which the user was last actively logged in
`group`for "group" node types (e.g. user groups, faq lists), a list of linkified node IDs for all the members of the group
The following are only meaningful in sections in which users can post root nodes and replies, i.e. Meditations, Seekers of Perl Wisdom, etc.:
`parent_id`the parent's node ID
`parent_title`the parent's title
`root_id`the thread root's node ID
`root_title`the thread root's title
`root_type_title`the name of the nodetype of thread's root node - e.g. 'perlmeditation'
`root_type_id`the node ID of the nodetype of thread's root node
`root_ss_type`the Super Search abbreviation of the nodetype of thread's root node
The following are not set by the current node context, but by the current user context (i.e. you):
`user_id`your user ID (that is, your homenode's node ID)
`user_title`your username
`url`the URL of the current page, including all the CGI parameters (both GET and POST). The URL is relative, i.e. it begins with It DWIMs if you put it in <a href="`url`">.

More details can be found in Free Nodelet gets templating features.

Additional threads related to the introduction of Free Nodelet Templating:

  1. Free Nodelet freed
  2. Free nodelet templates make scratchpads _freer

Back to the PerlMonks FAQ.

Log In?

What's my password?
Create A New User
[marto]: so I have to work Saturday, which is good and bad. Bad in the sense that I have to be hear early :( Good in that I am here only as support for another client project, so I get to spend the day working on my personal 'ToDo' list, without the kids :P
[Corion]: marto: Ooof - but yes, being there as only second level support or third level support is good and if you have enough things that you can work on, it won't be a wasted (if paid) day
[marto]: I've opted for a day off later on, rather than pay. I only have to do about 45 mins work for the client, but do need to hang around
[Corion]: marto: Even better ;)
[marto]: and I'm off next week1
[Corion]: Whee! ;)
[Corion]: I was away last week already, so I know how good a week off is ;))

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-02-28 10:08 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.