Hello,
When adding a new blog post in the backend where the title includes the character " everything seems okay... The blog post is published and listed correctly in the backend with title and content. But when opening the blogpost to make edits I realize that the Title field is empty...! (And therefor cannot be commented by readers in the frontend, that is how I found out).
Why?
I am quite sure I didn't cause this myself by messing around with the code...?
How to fix?
Using CGBlog version 1.9.8 (and CMSMS 1.11.2.1)
[Solved] CGBlog: using " in title not possible
[Solved] CGBlog: using " in title not possible
Last edited by joxyzhan on Wed Feb 27, 2013 8:42 pm, edited 1 time in total.
Re: CGBlog: using " in title not possible
Checking the templates in CGBlog and CGFeedback and googling around for answers I suspect that it could all be related to differences in snippets of code like:
...and such. That I (as relative newbie) cannot completely comprehend.
But those are all from templates - and my problem with the CGBlog backend Title field has to be managed "under the hood" right?
Code: Select all
{$entry->title|escape}
{$entry->title|escape:htmlall}
{$entry->title|htmlspecialchars}
{$input_comment|htmlspecialchars}
{$input_comment|html_entity_decode:$smarty.const.ENT_QUOTES}
But those are all from templates - and my problem with the CGBlog backend Title field has to be managed "under the hood" right?
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: CGBlog: using " in title not possible
Just tried on a live site of mine, because I didn't believe you
But you are right
Seems the system truncates titles after a " mark. I checked the forge for bug reports (always worth doing) and indeed this is a known bug - that means the developer is aware:
http://dev.cmsmadesimple.org/bug/view/8142
It would help if you added a comment to that bug report stating your CMSMS version (higher than the reported bug).
In the meantime I suggest a workaround, e.g. using single quotes '
But you are right
Seems the system truncates titles after a " mark. I checked the forge for bug reports (always worth doing) and indeed this is a known bug - that means the developer is aware:
http://dev.cmsmadesimple.org/bug/view/8142
It would help if you added a comment to that bug report stating your CMSMS version (higher than the reported bug).
In the meantime I suggest a workaround, e.g. using single quotes '
Re: CGBlog: using " in title not possible
Thanks for your response Paul! Good thing you tried it yourself.
Yeah I changed to '' (that is a double ' ) to make it work this time... Hope the customer wont notice it
Posted a comment in the bug report.
Yeah I changed to '' (that is a double ' ) to make it work this time... Hope the customer wont notice it
Posted a comment in the bug report.
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: CGBlog: using " in title not possible
Bazinga!
Calguy has fixed and released a new version. Thanks calguy.
Calguy has fixed and released a new version. Thanks calguy.
Re: [Solved] CGBlog: using " in title not possible
Three days from report to solution, great!