Author Topic: SiteModified Error with SEARCH and multilingual site  (Read 2000 times)

fathead

  • Guest
SiteModified Error with SEARCH and multilingual site
« on: February 05, 2010, 07:22:56 PM »
I'm running a multilingual Site with WB 2.8, setting up the structure as follow. Then modified it according to this.

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.

Offline dbs

  • Betatester
  • **
  • Posts: 8637
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: SiteModified Error with SEARCH and multilingual site
« Reply #1 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

dbs

fathead

  • Guest
Re: SiteModified Error with SEARCH and multilingual site
« Reply #2 on: February 09, 2010, 05:38:25 PM »
Yes! Of course! Thank's a lot!