Page 1 of 1

to blob or not to blob

Posted: Tue Dec 06, 2005 5:58 pm
by Pj
Hi,

I am trying to blob in a hyperlink.

but the editor makes it to this:


Is there a workaround?

FCKeditorX


thanks

Pjotr

Re: to blob or not to blob

Posted: Wed Dec 07, 2005 10:13 am
by Pj
Hi Patricia,

well I tried that and it worked but I have the blob made this way so I can make a redirectpage with meta refresh (in a template) and at the same time use the url in on the page around an image.
The blob is than easily  editable by the user, which will affect the page and template for which he hasn't the right to change.

But you were right I used single quotes for the inner part: Now it works!!!

like:



thanks!!

Pjotr

Re: to blob or not to blob

Posted: Fri Dec 14, 2007 10:48 pm
by kendo451
Since SMARTY and PHP use single and double quotes as part of the program syntax, you have to "escape" quotes that are contained in a SMARTY tag call.  The reason is the interpreter thinks the second quote is sees is the end of the variable.

For example:

{module="cms_selflink" page="53" text="Joe \"The Axe\" Smith"}

Notice that I "escaped" the quotes found between the double quotes.  You can do the same thing anytime your inside quotes are the same type as the outside quotes.

Alternatively, use different type of quotes on the outside than you use on the inside: ie single outside, double inside or vice versa.

Cheers!
Ken G.

Re: to blob or not to blob

Posted: Fri Dec 14, 2007 10:53 pm
by calguy1000
or better still.... if you're a designer or a developer, disable the wysiwyg..... wysiwygs are good for customers, not for designers/developers.