View Issue Details

IDProjectCategoryView StatusLast Update
1191Composr documentationGeneral / Uncategorisedpublic2015-09-27 00:01
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary1191: 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.
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2014-12-02 19:30

administrator   ~2367

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.

Rajesh Kumar

2015-08-13 02:10

reporter   ~3065

Assigned to Anoop tutorial for review.

Issue History

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