Hi,
I'm trying to retrieve the $Title of my ArticleHolder page to display on my homepage using...
<% control Page(ArticleHolder) %><h3>$Title</h3><% end_control %>
But I'm getting no output - nothing.
Any ideas anyone,
Sam
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi,
I'm trying to retrieve the $Title of my ArticleHolder page to display on my homepage using...
<% control Page(ArticleHolder) %><h3>$Title</h3><% end_control %>
But I'm getting no output - nothing.
Any ideas anyone,
Sam
<% control Page() %> requires the URL Segment of the page, not the classname. So you would use it as <% control Page(articles) %> if your ArticleHolder page has the urlsegment 'articles'
Hi,
Thanks for your quick response. It worked!
Sam