Hi There,
I have a side bar item which is called into a template from a Ditto call. The item is from a page that will appear on the site from time to time so sometimes the page will be unpublished. I’m hoping there’s a way to hide the resulting ditto error of "No documents found" when the page is unpublished - is this possible or is there a better way of accomplishing this?
Any help would be appreciated.
Cheers
-
☆ A M B ☆
- 24,524 Posts
You can change that in the language file (assets/snippets/ditto/lang/english.inc.php); on line 32:
$_lang['no_documents'] = '<p>No documents found.</p>';
just leave an empty value, or whatever you want to have there when there are no documents
$_lang['no_documents'] = '';
Thanks, you guys ’rule the school’ as they say.