Google Groups

Use data outside of placeholder

Tijs Mar 28, 2012 7:12 AM
Posted in group: django CMS users
I was wondering if the following would be possible:

1. have a search plugin which has fills a variable 'results' with results
2. this plugin is shown on a page in a placeholder 'search'
3. on this page there is other content which i would like to be dependent partly on whether there are search results...

So could i, on the page containing the {% placeholder 'search' %}, hook into the placeholder's results variable somehow? i.e. do something like:

{% if not %}
  <p>show this bit of html</p>
{% endif %}