Here a tag from the german smarty handbook:
{mailto address="me@domain.com" text="Der angezeigte Linktext"}
And this is the error:
Fatal error: Smarty error: [in preview:cms50.tmp line 322]: syntax error: expecting '=' after attribute name 'angezeigte' (Smarty_Compiler.class.php, line 1532) in C:\xampp\htdocs\beta3\lib\smarty\Smarty.class.php on line 1088
This works
{mailto address="me@domain.com" text="Der_angezeigte_Linktext"}
It is now a smarty problem or once from the cms ??
Smartyproblems with spaces - only in cms ?? Topic is solved
Re: Smartyproblems with spaces - only in cms ??
Very stange. I put this on my TODO list to check out.
Re: Smartyproblems with spaces - only in cms ??
I have sometimes the same problem with in your first page. Smarty don't like the spaces.
Code: Select all
{cms_selflink page="contact-us" text="Contact Us"}
Smarty Big Bug
In beta3 and in the dailys all Smarty tags works only corrcet with ' parameter' not with "parameter".
Many errors are gone if you use 'parameter'
Many errors are gone if you use 'parameter'
Re: Smartyproblems with spaces - only in cms ??
I pasted this into the default page of an svn install.
Resulting html:
Needless to say, it seems to be working right for me.
I'm on PHP5.0.3 on linux. I also tried it on my OS X machine and it works good there, too.
Is it a platform thing? Or maybe " is turning into " or something weird?
Code: Select all
<p>{cms_selflink page="contact-us" text="Contact Us"}</p>
Code: Select all
<p><a href="http://cms.wishy.org:8080/index.php?page=contact-us">Contact Us</a></p>
I'm on PHP5.0.3 on linux. I also tried it on my OS X machine and it works good there, too.
Is it a platform thing? Or maybe " is turning into " or something weird?
Re: Smartyproblems with spaces - only in cms ??
This error was found by random from user miketmc , but he didn't see it as an general error . miketmc works with . PHP 4.3.11 and linux - webserver.
I work with 5.04 Windows and Linux.
" " works most but not for ever ' ' works always.
All of my Smarty line 1088 errors are gone.
All predefined tags of the smarty handbook works now without problems.
I work with 5.04 Windows and Linux.
" " works most but not for ever ' ' works always.
All of my Smarty line 1088 errors are gone.
All predefined tags of the smarty handbook works now without problems.
Last edited by piratos on Sun May 29, 2005 11:14 am, edited 1 time in total.
Re: Smartyproblems with spaces - only in cms ??
This is fixed. The bug was in the new version of TinyMCE. That's why I never saw the problem... becuase I also turn off the WYSIWYG.