>> GreenByte.info By Nick Tong (quiksilv) | Supported by: TalkWebSolutions.co.uk

Changes to more tag in blogCFC for rich text editors

Due to the rich text editor changing the way the <more/> tag/snippet is rendered (it makes it disappear) I've changed admin/entry.cfm to check for [more/] instead.

Change lines 21 and 131 from <more/> to [more/].

If you don't know what "more" does:

<more/>: Sometimes a blog entry may be very long. It is preferable to show only a portion of the entry on the main blog and have the detailed link contain the entire entry. By using the <more/> tag in your blog entry, any text after the <more/> tag will only show up on the individual entry display. You must include the closing / in the tag. When blog entries are emailed, only the text before the <more/> tag is included.

Obviously we use [more/] now not <more/> as take from the docs.

Be careful - The position of this tag/snippet can cause errors with the layout of your blog (as with <more/>) If this tag is placed after say a div i.e. <div><p>[more/] this will cause your blog display to go out of kinder.


 

Related Blog Entries

Comments
Nate S.'s Gravatar great hint, thanks.
# Posted By Nate S. | 30/03/07 20:56 | Report abusive comment
Russ Michaels's Gravatar I was about to figure this out myself, so I tried your solution first.
It didn't work for me.
If I edit an existing article, it just displays [more/]
If I add a new article, the [more/] is removed but the entire article is still displayed and is not split.
Are you sure you haven't missed something ?
# Posted By Russ Michaels | 25/10/07 10:57 | Report abusive comment
Nick Tong's Gravatar Hi Russ, i've done this on several blog, the last one being 2 weeks ago. Have you refreshed you blog? i.e. index.cfm?reinit=1. If that dosn't work then the only other thing i can suggest is that you search you code for 'more/' and see that it's all been changed.
# Posted By Nick Tong | 25/10/07 11:19 | Report abusive comment
Kris's Gravatar I was wondering if you know a way to allow the [more] text to be igonored in the RSS feed output. Once I made this change all is well except the rss feed displays the [more]. Does anybody know a way to modify the rss section of the code to recognize the new more tag ?
# Posted By Kris | 22/04/08 22:38 | Report abusive comment
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1.