• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Mehrsprachige Kommentare im Galerie-Modul
PostPosted: Mon Aug 27, 2012 7:32 am 
Offline
Forum Members
Forum Members

Joined: Tue Nov 16, 2010 1:26 pm
Posts: 21
Ich möchte das Galerie-Modul so anpassen, dass das Kommentarfeld viersprachig ist. Nur leider bin ich völlig planlos, wie ich das am Besten angehe.

Die viersprachige Seite läuft mit MLE CMS. Das News-Modul habe ich bereits viersprachig gemacht, nach der supertollen Anleitung von Goran: http://blog.arvixe.com/creating-a-multi ... ms-module/


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Mehrsprachige Kommentare im Galerie-Modul
PostPosted: Mon Aug 27, 2012 8:40 am 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 4016
Location: The Netherlands
Goran hat es in seinen Anleitung bereits gesagt:
\$1:
When a module doesn’t offer “Categories” you will have to make use of “Extra fields”. Basically what you would do is create a Module template using same technique as described above where we used $lang_parent variable to show correct News category.

Also du kannst im Gallery Modul drei extra Kommentarfelder hinzufügen (Feld anwenden auf: Galerien).

Dann ersetze:
\$1:
{if !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>{/if}
durch:
\$1:
{if $lang_parent == 'de' && !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>
{elseif $lang_parent == 'en' && !empty($fields.kommentar_en.value)}<div class="gallerycomment">{$fields.kommentar_en.value}</div>
{elseif $lang_parent == 'nl' && !empty($fields.kommentar_nl.value)}<div class="gallerycomment">{$fields.kommentar_nl.value}</div>
{/if}

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Mehrsprachige Kommentare im Galerie-Modul
PostPosted: Mon Aug 27, 2012 12:30 pm 
Offline
Forum Members
Forum Members

Joined: Tue Nov 16, 2010 1:26 pm
Posts: 21
Danke dir

Ich versuche das Ganze auf

\$1:
{if !empty($image->comment)} &bull; &lt;em&gt;{$image->comment|strip_tags|escape:'html'}&lt;em&gt;{/if}


anzuwenden und gelange zu

\$1:
{if $lang_parent == 'de' && !empty($image->comment)}&bull; &lt;em&gt;{$image->comment|strip_tags|escape:'html'}&lt;em&gt;
{elseif $lang_parent == 'fr' && !empty($fields.kommentar_fr.value)}&bull; &lt;em&gt;{$fields.kommentar_fr.value|strip_tags|escape:'html'}&lt;em&gt;
{elseif $lang_parent == 'en' && !empty($fields.kommentar_en.value)}&bull; &lt;em&gt;{$fields.kommentar_en.value|strip_tags|escape:'html'}&lt;em&gt;
{elseif $lang_parent == 'es' && !empty($fields.kommentar_es.value)}&bull; &lt;em&gt;{$fields.kommentar_es.value}
{/if}


was nicht funktioniert. Was mache ich falsch?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Mehrsprachige Kommentare im Galerie-Modul
PostPosted: Mon Aug 27, 2012 2:34 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 4016
Location: The Netherlands
Mein Beispiel war für Felder die für Galerien angewendet werden.

Versuch mal:
\$1:
{if $lang_parent == 'de' && !empty($image->comment)}&bull; <em>{$image->comment|strip_tags|escape:'html'}</em>
{elseif $lang_parent == 'fr' && !empty($image->fields.kommentar_fr.value)}&bull; <em>{$image->fields.kommentar_fr.value|strip_tags|escape:'html'}</em>
{elseif $lang_parent == 'en' && !empty($image->fields.kommentar_en.value)}&bull; <em>{$image->fields.kommentar_en.value|strip_tags|escape:'html'}</em>
{elseif $lang_parent == 'es' && !empty($image->fields.kommentar_es.value)}&bull; <em>{$image->fields.kommentar_es.value|strip_tags|escape:'html'}</em>
{/if}

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Mehrsprachige Kommentare im Galerie-Modul
PostPosted: Wed Aug 29, 2012 7:52 am 
Offline
Forum Members
Forum Members

Joined: Tue Nov 16, 2010 1:26 pm
Posts: 21
Perfekt! Das ist die Lösung. Geht, auch ohne <em></em>...

Ganz lieben Dank dir!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting