• 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  [ 2 posts ] 
Author Message
 Post subject: [Gelöst] repeat string mit variable ergänzen
PostPosted: Mon Feb 01, 2010 8:19 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Jan 31, 2008 9:23 am
Posts: 229
Hallo und guten Abend,

ich möchte in einem Menü Manager Template folgende Zeile ergänzen

{repeat string='
    ' times=$node->depth-$node->prevdepth}

    Ich möchte dem ul eine id zuweisen. Mein Versuch klappt leider nicht.

    {repeat string='
      ' times=$node->depth-$node->prevdepth}

      Wie kann ich denn mein Vorhaben realisieren? Mir fehlt gerade a) das Wissen und b) eine Idee, wonach ich suchen könnte… repeat ist auch nicht in der Smarty Doku zu finden…

      Mit Dank und Gruß
      anti


Last edited by antiheld2000 on Tue Feb 02, 2010 3:03 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: repeat string mit variable ergänzen
PostPosted: Tue Feb 02, 2010 3:01 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Jan 31, 2008 9:23 am
Posts: 229
Eine Art Workaround für mein Problem ist folgendes:
Code:
{capture assign=count_value}{counter name=c1}{/capture}
{repeat string="<ul class='subnav' id='unli-$count_value'>" times=$node->depth-$node->prevdepth}
Hat ca. denselben Effekt wie mein ursprüngliches Anliegen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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:  
Arvixe - A CMSMS Partner