Message of the day:
Latest 3.x release: 3.7.3 - it runs on php 7! This is the channel for any SS3-related questions
Backend discussions on SilverStripe 3. For version 4 or newer, see #C36U3BDHN|ss4 or #C0QSDASKT|general. If you are using a version lower than SS3.4, please state, because it makes a difference!
$PageTemplate is the news page, which then I loop to get all the articles
Think it only works when you are looping Children, not other templates and yeah, just throws a Server Error
And so when you do $Top.Up.TopLevelTitle then you get an error?
That is weird, $Top should get you to to the top.. https://docs.silverstripe.org/en/3.1/developer_guides/templates/syntax/#scope
Basically seeing if a news article category matches to the page title, and if so display content for that article
Yes, that's right. Inside the PageTemplate I am trying to compare a piece of data in that template to the TopLevelTitle outside of the loop to see if they match
So you are like <h1>$TopLevelTitle</h1> <% loop PageTemplate %> $Here?
It will only take me to the top level of "<% loop PageTemplate %>", if I try to force my way any higher it just throws off an error as it doesn't seem to see that there is anything above it