Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2008, 03:26 PM
Registered User
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default display a line of text + image on front page

Hello,
I would like to display images in abstract to have a few lines + a small image on a front news page. Would I need to change alot of code, or would it be enough to include fckeditor once in addeditarticle.

Another idea would be to use body text, and only display for example the first 30 words (+ image). But I'm not sure how easy this would be compared to using abstract field or making a new field. Similar text in 3 fields sounds like overkill though.


regards, nakori

 
Old June 9th, 2008, 05:12 PM
Authorized User
 
Join Date: Jan 2007
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Nakori,

I had also toyed with a similar idea. Displaying a set number of words from your article body would not be the best idea as you are restricting yourself somewhat to always providing a good enough "abstract" in that amount of words.

Your first idea of using fckeditor within your AddEditArticle.aspx is certainly the better of the two and as it is quite easy to see from the body field how to implement this for the abstract. Also you can create a custom toolbar set within FCKeditor to limit the number of formatting options within the abstract (perhaps you ONLY want to allow for images to be added and no other formatting).

My problem with this approach, and it may not be an issue for your site, is that if your aim is to display just one image within the abstract, it could be quite difficult to ensure that all abstracts are formatted in the same way.

Personally, the way I would achieve this is to create an Article ImageUrl field (similar to that of the Categories) and then use an asp:image control on your article listing, and bind the ImageUrl to this. As with the Categories it would help to keep your article images the same size to preserve consistent formatting.

Whilst this solution may actually be a bigger task than plonking another FCKeditor control on your AddEditArticle.aspx page, it would certainly be the most logical in my eyes.

Hope that helps.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto updation of TIme in Access Front Page anukagni Access 3 February 23rd, 2006 03:09 AM
Front Page server extension error NWilson Assembly Language 1 January 17th, 2006 01:55 PM
how to display image and text in a same table row faisal bashir ASP.NET 1.0 and 1.1 Basics 0 August 9th, 2005 02:03 AM
download text or image from web page cjursch Javascript How-To 1 June 12th, 2003 12:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.