19
May 2005
First experience with BlogCFM
[BlogCFM]
Post a Comment
Bugs found:
First thing I didnt like was to have the basic toolbar show by default for the FCKEditor and I couldnt find an option to change the default. This seemed like a great first experiment.
Considering I knew nothing about BlogCFM before, these changes were easy to make and find where to put the correct new code.
Next on the list will be creating a Links section, will keep you posted on how that works out.
- FckEditor shipped with BlogCFM would not work with Firefox with the default toolbar turned on.
- Couldnt edit a post over a certain length. (damn typos)
- If blogCFM is not installed to the root of your website and/or the site does not have access to /CFIDE all the cfform validation will fail and will generate tons of 404 errors in the web server log.
- Downloaded and installed the latest version of FCKEditor. It was simple, the only changes I had to make were in the FCKEditor config files so it would work with ColdFusion.
- lines 857-858 of blogcfm.cfc had the wrong cfsqltype, had to change it to cfsqltype="cf_sql_longvarchar"
- Had to modify all cfform tags and add an attribute of scriptsrc="#variables.blogConfig.webRoot#/CFIDE/scripts/cfform.js". This sounds bad but Dreamweaver's advanced find and replace makes it easy.
First thing I didnt like was to have the basic toolbar show by default for the FCKEditor and I couldnt find an option to change the default. This seemed like a great first experiment.
- ALTER TABLE blog_config ADD HTML_EDITOR_DEFAULT_STYLE varchar(25)
- Added HTML_EDITOR_DEFAULT_STYLE to the getBlogConfig query in blogcfm.cfc
- Added HTML_EDITOR_DEFAULT_STYLE=<cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.details.HTML_EDITOR_DEFAULT_STYLE#"> in the update statement of saveblogconfig()
- changed <cfparam name="toolbarSet" default="#variables.blogConfig.HTML_EDITOR_DEFAULT_STYLE#"> in entry_edit.cfm
- added <cfparam name="FORM.HTML_EDITOR_DEFAULT_STYLE" default="Basic"> under the isDefined("form.blogConfig") in edit_entry.cfm
- added
<br>
<b>HTML Editor Options</b><br>
Default style: <select name="HTML_EDITOR_DEFAULT_STYLE">
<option value="Basic"<cfif blogConfig.HTML_EDITOR_DEFAULT_STYLE IS 'Basic'> SELECTED</cfif>>Basic</option>
<option value="Default"<cfif blogConfig.HTML_EDITOR_DEFAULT_STYLE IS 'Default'> SELECTED</cfif>>Default</option>
</select>
to admin/index.cfm
Considering I knew nothing about BlogCFM before, these changes were easy to make and find where to put the correct new code.
Next on the list will be creating a Links section, will keep you posted on how that works out.
Posted by fwscott at 10:43 PM | Comments (1)
Subscription Options
You are not logged in, so your subscription status for this entry is unknown. You can login or register here.
Re: First experience with BlogCFM
"Had to modify all cfform tags and add an attribute of scriptsrc="#variables.blogConfig.webRoot#/CFIDE/scripts/cfform.js". This sounds bad but Dreamweaver's advanced find and replace makes it easy. "
I'm curious as to why you had to add that? Since by default, coldfusion looks for that in /CFIDE/scripts/cfform.js right? Which in a well configured server would be a virtual mapping on every site, but even so in your case..
oh.. I see you've got it in the /blog/ directory. Got it =) But still.. I wish people would set up their servers with the default /CFIDE/ mapping =)
Regarding the firefox issue - that bug was posted in cfopen =) And you picked the correct solution.
Posted by Rick Root on May 20, 2005 at 4:49 PM