I am trying to: Use both single and double quotes in the WYSIWYG editor however based on the current setup, this line of code in the toolset view doesn't allow double quotes in the WYSIWYG editor.
boxxy-blurb="[types field='boxxy-blurb' output='raw'][/types]" // Does no work
boxxy-blurb="[types field='boxxy-blurb'][/types]" // Does no work
Is there a way to assign boxxy-blurb the value of WYSIWYG editor without double quotes in the editor causing issues? Is there something like the code below that can be used...
Please see attachment. We create multiple style displays to be interpreted and we are having issue with double quotes in fields through out and since we make our assignments using var="" we know this is the culprit but dont know a way to escape these quotes or convert them to html entities.
The field [types field='boxxy-blurb' output='raw'][/types] is WYSIWYG field correct?
Remember your WYSIWYG field will output with all its formatting. I would not recommend using a WYSIWYG field value in a view filter as this won't work.
This is what causing the blurb to not display, when double quotes are added. If I remove "Kindness is preferred." or change it to 'Kindness is preferred.'. Im assuming this causes the break because
boxxy-blurb=" 'Kindness is preferred.' " is syntactically correct when rendered while boxxy-blurb=" "Kindness is preferred." " is not.
I just wish there was a way to change those quotes to " So i would appear as boxxy-blurb=""Kindness is preferred.""
Not sure why you would want to filter for an entire sentence but this wouldn't isn't recommended as you need raw texts for the filter to work correctly.
This would mean no special characters should be in the text used to filter the views.
Yes, I noticed you said filter before, we aren't filtering we are bringing in the value of that blurb so that we can display it based on the users specs. We have all different kinds of views. So its not filtering, we're storing the data so that we can use it within a view. For example
Title = "hello world"
Description = "hello back 'Shane'"
Style= "Vertical Box"
The user can change the "Stle" in the admin console to whatever they want to so that the title and description display the way they want. So we are storing those values and then using them in a larger view to display the message based on style. We are stuck with "Description" because description can't have double quotes.
I see what you mean now but because of the missmatch of quotes it won't work, because you are pretty much passing a text into the view.
Remember your view is using double quotes for the parameter, then single quotes for the parameters inside the shortcode then in that value there are another set of quotes.
Maybe you can write the quotes as ASCII . hidden link