Hi Jeffs,
thank you for your response. I checked and there are three really old cases of solutions. i'm struggling a bit with the documentation still. I found the call, and I've been copying and pasting other code I could find, but where the language for components is described I can't locate.
For example, this is the code I'm attempting to use:
<#assign messages = rest("/solutions/recent?page_size=5").messages />
So where is assigned documented? Where are control flow (if then else) documented?
THis is the snippet in full I have:
<#assign messages = rest("/solutions/recent?page_size=5").messages />
<div class="custom-recent-articles-container">
<#if messages.message?size gt 0>
<div class="custom-recent-articles-heading-bar">
<span class="custom-recent-articles-heading-bar-title">${text.format("custom.component.latest_three_blog_articles.title")}</span>
</div>
</#if>
<#list messages.message as message>
<#assign posted_by_userid = message.author.login?string />
<#assign posted_by_label = text.format("custom.component.latest_three_blog_articles.posted_by") />
<div class="custom-recent-article-wrapper">
<div class="custom-article-header">
<div class="custom-article-subject">
<a href="${message.@view_href}">${message.subject}</a>
</div>
<div class="custom-article-posted-by">
<span class="author">${posted_by_label} <#if ((posted_by_userid != "") && (posted_by_userid != "Anonymous"))><@component id="common.widget.user-name" user="conv:${message.author.login}" />
</#if></span>
</div>
</div>
<div class="custom-article-teaser">
<#if message.teaser?length gt 0>
${message.teaser}
</#if>
<br />
<span class="custom-read-more">
<a href="${message.@view_href}#fieldset" style="margin-left:3px;">Post a Comment</a>
</span>
</div>
</div>
</#list>
</div>
It's all copy paste, and I don't understand it. With this in a component, how can I tell if I'm receiving a success message in the XML?
I am really beginning with lithium and there's a lot of empty holes in my understanding of how the system works. A kick in the right direction is appreciated.
Btw, the "Find More Solutions" does help. I had seen this as I clicked through every single available component, however since it wasn't called "Recent Solutions" I mistakenly thought this was somehting else. I've added it to the front page and now it says "New Solutions" on the actual page. Hopefully this will satisfy the requirements for what I'm supposed to do.
Thank you