No Default or Get-Data does not work for templates
Hi,
I am using the scaffolding plugin reasonably succesful, however, I have come across a problem when using scaffolding macros with templates.
My template includes a {list-data} which I would like to default to the first item in the list. I then extract this value using a metadata value and dispaly it on the parent page under which the template page was created.
The problem is the {list-data} doesn't seem to default like it should. Possibly because something isn't being executed until the page is run/viewed. If you go into the page and view it, then everything is fine.
Is there any work around to this problem?
Would it make a difference that this is all started off with a live template?
I am using the scaffolding plugin reasonably succesful, however, I have come across a problem when using scaffolding macros with templates.
My template includes a {list-data} which I would like to default to the first item in the list. I then extract this value using a metadata value and dispaly it on the parent page under which the template page was created.
The problem is the {list-data} doesn't seem to default like it should. Possibly because something isn't being executed until the page is run/viewed. If you go into the page and view it, then everything is fine.
Is there any work around to this problem?
Would it make a difference that this is all started off with a live template?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?It depends on how you're creating your page. Just setting the wiki content to {live-template:xxx} will not apply the template values or save any data. How are you actually creating the page?
-
Inappropriate?Hi,
This is the script I am using to create the new page which is part of a template that is started by a live template.
{report-on:injected=true}
{create-child:%content:title% - Requirements|template=req}
{report-on}
After reading a bit more about the create child macro I updated this script to:
{report-on:injected=true}
{create-child:%content:title% - Requirements|template=req|render=true}
{report-on}
but that gave me the following error:
Unable to render content due to system error: null
Any ideas?
I’m open to suggestions
-
Inappropriate?I'm not too familiar with the {create-child} macro. I'd suggest contacting Adaptavist (who created the macro) to see if they have any suggestions about the 'null' error. Also, check your log files to see if there are more details.
That said, I'm not sure that just forcing a render will solve your problem - I don't think any Scaffolding data will actually be saved until you edit and save the page from the 'Scaffold Data Edit' screen. -
Inappropriate?Yes, I think this is the problem I am experiencing.
The Scaffold data is not created until I edit/save the page manually.
I am wondering if there is an automatic way that this can be done so the edit/save process is not required?
I wouldn't be surprised if someone else has experienced this problem. But I wonder if they found a solution?
I’m worried there is no work around to this problem
-
Inappropriate?I'm not aware of any work-around currently, sorry. If you create an issue in our system I'll schedule it for investigation, but it is unlikely to get implemented in the near future unless you would be willing to commission some work. If so, please contact us and we can sort something out.
-
Inappropriate?OK I have created an issue.
Could you let me know what comes from the investigation.
Thanks for your help.
I’m hoping for a miracle
-
Inappropriate?JIRA will email you when the issue gets updated, but don't hold your breath at the moment - it's not very high on the internal priority list currently...
Loading Profile...



EMPLOYEE