Greetings,
I have the following Chunk:
`displayRelatedChildList`
[[getResources?
&resources=`[[*relatedProducts]]`
&tpl=`displayChildList.tpl`
&limit=`3`
&includeTVs=`1`
&processTVs=`1`
&includeContent=`0`
&depth=`0`
&sortby=`FIELD(modResource.id,[[*relatedProducts]])`
&sortdir=`ASC`
&showHidden=`0`
&showUnpublished=`0`
&idx=`[[+idx]]`
]]
and the template that it uses:
`displayChildList.tpl`
<div id="productUL" class="span3 textCenter">
<a href="[[~[[+id]]]]"><img id="image" alt="[[!if? subject=`[[+longtitle]]` &operator=`isempty` &then=`[[+pagetitle]]` &else=`[[+pagetitle]] [[+longtitle]]`]]" src="[[+tv.thumbs]]"/></a>
<h3><a href="[[~[[+id]]]]">[[+menutitle:empty=`[[+pagetitle]]`]]</a></h3>
</div>
and the call from the page:
[[$displayRelatedChildList]]
Everything is working as expected until I tried un-publishing a page. The problem I am facing at the moment is that even though the page is unpublished AND the page is set to `Hide from menus` the resource is still being displayed.
Any advise would be greatly appreciated.
Here is some of the data returned by the call without the template. The resource ID `963` is set to un-published and hidden from menus yet still being displayed:
Array
(
[tpl] => displayChildList.tpl-
[tplOdd] =>
[tplFirst] =>
[tplLast] =>
[tplWrapper] =>
[wrapIfEmpty] =>
[sortby] => FIELD(modResource.id,945,963,40)
[sortbyTV] =>
[sortbyTVType] => string
[sortbyAlias] =>
[sortbyEscaped] => 0
[sortdir] => ASC
[sortdirTV] => DESC
[limit] => 3
[offset] => 0
[tvFilters] =>
[tvFiltersAndDelimiter] => ,
[tvFiltersOrDelimiter] => ||
[depth] => 0
[parents] =>
[includeContent] => 0
[includeTVs] => 1
[includeTVList] =>
[showHidden] => 0
[showUnpublished] => 0
[showDeleted] =>
[resources] => 945,963,40
[processTVs] => 1
[processTVList] =>
[prepareTVs] => 1
[prepareTVList] =>
[tvPrefix] => tv.
[idx] => 0
[first] => 1
[last] => 2
[toPlaceholder] =>
[toSeparatePlaceholders] =>
[debug] =>
[where] =>
[dbCacheFlag] => 0
[context] =>
[tplCondition] =>
[tplOperator] => ==
[conditionalTpls] =>
[odd] => 0
[id] => 945
[type] => document
[contentType] => text/html
[pagetitle] =>
[longtitle] =>
[description] =>
[alias] =>
[link_attributes] =>
[published] => 1
[pub_date] => 0
[unpub_date] => 0
[parent] => 842
[isfolder] =>
[introtext] =>
[richtext] => 1
[template] => 4
[menuindex] => 7
[searchable] => 1
[cacheable] => 1
[createdby] => 1
[createdon] => 2013-05-21 01:20:16
[editedby] => 2
[editedon] => 2013-06-04 09:35:30
[deleted] =>
[deletedon] => 0
[deletedby] => 0
[publishedon] => 2012-04-05 18:04:00
[publishedby] => 1
[menutitle] =>
[donthit] =>
[privateweb] =>
[privatemgr] =>
[content_dispo] => 0
[hidemenu] => 1
[class_key] => modDocument
[context_key] => web
[content_type] => 1
[uri] =>
[uri_override] => 0
[hide_children_in_tree] => 0
[show_in_tree] => 1
[properties] =>
[tv.thumbs] =>
[tv.relatedProducts] => 40,41,42
[tv.sldr1img1] =>
[tv.sldr1img1txt] =>
[tv.productData] =>
)