WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: fathead on February 05, 2010, 07:22:56 PM

Title: SiteModified Error with SEARCH and multilingual site
Post by: fathead on February 05, 2010, 07:22:56 PM
I'm running a multilingual Site with WB 2.8, setting up the structure as follow (http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php). Then modified it according to this (https://forum.WebsiteBaker.org/index.php/topic,2584.msg55618.html#msg55618).

Works perfectly. Now with [[SiteModified]] integrated in the footer of the template, expected note is shown, exept in the search results, following error is shown

Error in: SiteModifiedDe, no correct returnvalue.

How could I exclude the */search/index.php from the droplet, directly in the template or in the droplet itself? A question from a PHP Donk.
Title: Re: SiteModified Error with SEARCH and multilingual site
Post by: dbs on February 07, 2010, 09:29:45 PM
hi, for quick help:

first way:
- this code
Code: [Select]
<?php 
 
if (PAGE_ID 0) {
    echo &
#39;[[SiteModified]]&#39;;} 
    
else {echo &#39;&#39;;} ?>

or other way:
  - module: last update info
 - instead droplet sitemodified this code
Code: [Select]
<?php if(function_exists(&#39;get_modified_when&#39;)) { get_modified_when();}  ?> 

... from the german-thread https://forum.WebsiteBaker.org/index.php/topic,17018.msg112101.html#msg112101 (https://forum.WebsiteBaker.org/index.php/topic,17018.msg112101.html#msg112101)

dbs
Title: Re: SiteModified Error with SEARCH and multilingual site
Post by: fathead on February 09, 2010, 05:38:25 PM
Yes! Of course! Thank's a lot!