• 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  [ 1 post ] 
Author Message
 Post subject: concatenar smarty variables
PostPosted: Wed Apr 18, 2012 5:45 am 
Offline
Forum Members
Forum Members

Joined: Thu Dec 16, 2010 8:50 pm
Posts: 88
Me estoy volviendo loco con esto!

Como concateno variables?

{assign var='str' value=''}
{foreach blahh ...}
{if $img->title}
{$str = $img->title} esto no funciona
{/if}
{if $img->comments}
{$str = $str:'/ ':$img->comments} esto tampoco
{$str|cat:'/ ':$img->comments} ni esto ...
{/if}
{/foreach}

A lo mejor es experimental, pero como a una var assignada le paso nuevos valores, y le concateno otros.

Que version de smarty usa CMSMS 10.3 (la mas nueva hasta esta fecha) ?

O0


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  [ 1 post ] 

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:  
cron
A2 Hosting