Hi all !
Facing a problem with published/unpublished resources :
I have a resource (page) with ID #6 which is
unpublished.
On another page, I want to show part of the content of resource 6
only if resources 6 is published.
I put the following call to getResources :
[[!getResources:default=`Bientôt de nouvelles promotions`?
&resources=`6`
&includeContent=`1`
&tpl=`ma_promo`
]]
The template ma_promo is :
[[+content:stripTags:ellipsis=`350`]]
The problem is that the
content is
showed all the time, whatever the
published/unpublished status for resource 6 !
Am I wrong in my understanding of the documentation ?
Is there a better way to do it ?
Thanks for help.
Philippe
[ed. note: Fildefer57 last edited this post 14 years, 4 months ago.]