View Issue Details

IDProjectCategoryView StatusLast Update
0001191Composr documentation[All Projects] General / Uncategorisedpublic2015-09-27 00:01
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Summary0001191: Custom comcode tags with tempcode
DescriptionThis is a simple example tag for showing reminders/advice to walkers, based on the month, with a given highlighter colour, and a name for the walking location...



Comcode tag:
walking_reminders

Title:
Walking reminders

Description:
Show a walking reminder, tailored to the month.

Parameters:
color=red

Replacement text:
{+START,IF,{$EQ,{$FROM_TIMESTAMP,%b},Nov,Dec,Jan}}
Pack your <span style="color: {COLOR}">gloves</span>, a <span style="color: {COLOR}">hat</span>, and a thick <span style="color: {COLOR}">coat</span>. It'll be cold on the {CONTENT}.
{+END}
{+START,IF,{$EQ,{$FROM_TIMESTAMP,%b},Feb,Mar,Apr}}
Be careful of the <span style="color: {COLOR}">wildlife</span> It's breeding season on {CONTENT}.
{+END}
{+START,IF,{$EQ,{$FROM_TIMESTAMP,%b},May,Jun,Jul}}
Bring plenty of <span style="color: {COLOR}">water</span>, it may be very hot on the {CONTENT}.
{+END}
{+START,IF,{$EQ,{$FROM_TIMESTAMP,%b},Aug,Sep,Oct}}
Wear good <span style="color: {COLOR}">shoes</span>, it may be slippy on the {CONTENT}.
{+END}

Example:
[walking_reminders color="red"][/walking_reminders]

(checkboxes as defaults)
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2014-12-02 19:29

administrator  

Chris Graham

2014-12-02 19:29

administrator  

Screen Shot 2014-12-02 at 20.32.58.png (369,461 bytes)

Chris Graham

2014-12-02 19:30

administrator   ~0002367

Note that comcode tag previewing was buggy at the time of testing, I'm not sure if it's a problem on v9, if so I will post a hotfix.

deepu_ms

2015-08-11 03:47

reporter  

customcomcodetags_with_tempcode.odt (97,456 bytes)

Rajesh Kumar

2015-08-13 02:10

reporter   ~0003065

Assigned to Anoop tutorial for review.

anoops

2015-08-13 06:46

reporter  

customcomcodetags_with_tempcode_new.odt (152,669 bytes)

Issue History

Date Modified Username Field Change
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised