Hello,
I am trying to create a query that will retrieve results only for pages that have been published. Right now when I run the query below, I will get EVERY page, whether I have hit publish on them or not. This is a problem :)
$filter = $this::get()->filter('Filters:PartialMatch', $this->request->getVar('tag'))->First();
Also, How would I check in .ss page whether the page has been published? For example I want to write code such as this:
<% if published %>
<p>abc</p>
<% else %>
<p>efg</p>
<% end_if %>
What would be the keyword I use?