Page 1 of 1
Smartyproblems with spaces - only in cms ??
Posted: Thu May 26, 2005 12:07 pm
by piratos
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 ??
Re: Smartyproblems with spaces - only in cms ??
Posted: Sat May 28, 2005 3:36 am
by Ted
Very stange. I put this on my TODO list to check out.
Re: Smartyproblems with spaces - only in cms ??
Posted: Sat May 28, 2005 10:19 am
by piratos
I have sometimes the same problem with
Code: Select all
{cms_selflink page="contact-us" text="Contact Us"}
in your first page. Smarty don't like the spaces.
Smarty Big Bug
Posted: Sat May 28, 2005 11:04 am
by piratos
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'
Re: Smartyproblems with spaces - only in cms ??
Posted: Sun May 29, 2005 4:25 am
by Ted
I pasted this into the default page of an svn install.
Code: Select all
<p>{cms_selflink page="contact-us" text="Contact Us"}</p>
Resulting html:
Code: Select all
<p><a href="http://cms.wishy.org:8080/index.php?page=contact-us">Contact Us</a></p>
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?
Re: Smartyproblems with spaces - only in cms ??
Posted: Sun May 29, 2005 11:02 am
by piratos
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.
Re: Smartyproblems with spaces - only in cms ??
Posted: Wed Jun 01, 2005 2:22 pm
by Ted
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.
Re: Smartyproblems with spaces - only in cms ??
Posted: Fri Jun 03, 2005 10:47 am
by piratos
Yes it works now !