Suchmodul überarbeiten

Gesperrt
HerrB
Beiträge: 6935
Registriert: Do 22. Mai 2003, 12:44
Wohnort: Berlin
Kontaktdaten:

Suchmodul überarbeiten

Beitrag von HerrB »

Suchmodul mehrsprachig machen:
http://www.contenido.org/forum/viewtopic.php?t=10484

Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!

Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

ähm, wenn du da schon dabei bist,

Code: Alles auswählen

            #Get publishing date of article 
            $pub_system = $oArt->getField('published'); 
            $pub_user = trim(strip_tags($oArt->getContent('HEAD', 90))); 
            if ($pub_user != '') { 
               $show_pub_date = "[".$pub_user."]"; 
            } else { 
               $show_pub_date = ''; 
               if ($pub_system[8] != '0') { 
                  $show_pub_date .= $pub_system[8]; 
               } 
               $show_pub_date .= $pub_system[9].'.'; 
               if ($pub_system[5] != '0') { 
                  $show_pub_date .= $pub_system[5]; 
               } 
               $show_pub_date .= $pub_system[6].".".$pub_system[0].$pub_system[1].$pub_system[2].$pub_system[3]."]"; 
               $show_pub_date = "[".$show_pub_date; 
            }
ändern auf

Code: Alles auswählen

            $show_pub_date = date("d.m.Y", strtotime($oArticle->getField("published"))); // see php date syntax
*** make your own tools (wishlist :: thx)
Gesperrt