Module exporting some symbols into its body and rendering it
nav_first.pngFirst: thread:378
extendable data forms / repeatable fields
Edited: 13 Oct 2011 03:09 by: Ben Miller
Comments: 4
Tags:
nav_prev.pngPrevious: thread:204
Ifdevice
Edited: 21 Dec 2009 16:21 by: gerdami
Comments: 0
Tags:
Last: thread:194
Extra ordening mechanism
Edited: 09 Dec 2009 15:27 by: Steven Heynderickx
Comments: 1
Tags:
nav_last.png
Next: thread:194
Extra ordening mechanism
Edited: 09 Dec 2009 15:27 by: Steven Heynderickx
Comments: 1
Tags:
nav_next.png

GabrysGabrys wrote on 16 Dec 2009 16:58

First of all — I have no idea of proper name for this module.

The module have no parameters and renders the module's body replacing some symbols with certain values:

symbol value
%%user_id%% ID of the user currently logged in
%%user_title%% printed name of the user currently logged in

Examples

Application of %%user_id%%

%%user_id%% can be used to generate a link to current user profile page. Given profiles are stored in "profile" category, the code to do this can be:

[[module NameOfModule]]
Please [/profile:%%user_id%%/edit/true | edit your profile].
[[/module]]

This can be put on welcome page for new members.

Application of %%user_title%%

[[module NameOfModule]]
Wherever you see [[*user %%user_title%%]] it's your "avatar" that people can click and see your recent contributions, forum postings, etc.
[[/module]]

Start a new sub-thread

Comments: 7

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License