|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Evergreen123 Smarty n00b
Joined: 16 May 2012 Posts: 4
|
Posted: Tue Aug 21, 2012 4:03 pm Post subject: assign value Problem |
|
|
Hallo zusammen,
ich möchte gerne einer neuen Variable einen Wert zuweisen:
{assign var="pagedata_title" value=`$conf.1``$conf.title`}
So Funktioniert das ganze. Sobald ich nun aber ein Leerzeichen oder andere Zeichen mit dazu haben möchte bekomme ich einen Compiler Fehler (syntax error: invalid attribute name)
{assign var="pagedata_title" value=`$conf.1`bla bla `$conf.title`}
Wie kann ich Variablen und statischer Text in einem Value Wert verwenden?
Danke im vorraus |
|
Back to top |
|
Rokks Smarty Rookie
Joined: 20 Jun 2010 Posts: 16
|
Posted: Wed Sep 12, 2012 6:30 am Post subject: |
|
|
Versuch mal
Code: | {assign var=pagedata_title value="`$conf.1` sonst was`$conf.title`"|varvar} |
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Sep 12, 2012 3:00 pm Post subject: |
|
|
Du must das Ganze nur in " setzen.
Code: | {assign var=pagedata_title value="`$conf.1` sonst was`$conf.title`"} |
|
|
Back to top |
|
Evergreen123 Smarty n00b
Joined: 16 May 2012 Posts: 4
|
Posted: Sat Sep 15, 2012 5:43 pm Post subject: |
|
|
Vielen Dank. Vor lauter Bäumen sieht man den Wald nicht mehr ... |
|
Back to top |
|
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|