I am using a replace and render to determine the correct page to create a child page under based on the current year. This works in C3.5.16.
The code I am using is wrapped in a wiki-markup wrapper.
<code>
{replace-and-render} {replace-body} {note} {center} {create-page:template=CoC|title=%title%|parent=%parent%|mode=edit}Click to submit your confirmation.{create-page} {center} {note} {replace-body} {replace-item:%title%}{report-info:variable:Year|format=#} Coc Confirmation - {report-info:global:current user > user:full name}{replace-item} {replace-item:%parent%}{report-info:variable:Year|format=#} Coc Confirmations{replace-item} {replace-and-render}
<code>
This produces the following error:
Has anyone encountered similar problems or know how to get around this?
Cheers, Mick
I have an update on this.
I have found that it is not necessarily the replace-and-render that isn't working properly, I think it is the wikimarkup plugin that is having problems.
It seems that the wikimarkup plugin is not accessing the variable Year correctly through the report: {report-info:variable:Year}
As this is sufficiently different from the topic of the thread, I have created a new thread for this particular issue.
The thread is here: https://answers.atlassian.com/questions/93648/wiki-macro-not-accessing-variable-value
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.