News stories with pictures

10 views
Skip to first unread message

Carolyn Vincent

unread,
May 25, 2012, 3:27:45 PM5/25/12
to dot...@googlegroups.com

I using dotCMS v1.9.3.2.  I have a news page set up to display text from a textarea field and it pulls in a picture from a text file which has the path to the image.  A lot of CMS systems allow you to use a ‘read more’ link so that you can break up a long news story and display only a portion of the story on the front page.  Does dotCMS offer anything like this?  Ideally I am trying to show my client the advantage of using the WYSIWYG field for their news stories. This way they can position the picture anywhere they want in the story and add as many as they want.  The textarea field forces the user to use strictly text or hardcode the html elements.

 

I am sure someone is using news on their website where it shows summary information (or only a portion of the body of the news story) and a picture.  If anyone is doing this kind of thing can you either share with the group or send me your information off-line?  I would also like a url to the type of news stories you are doing.  This is what I am trying to http://migrate.asphaltmagazine.com/.  However, the individual manipulates the content in the ‘Body which is a WYSIWYG field’, then they copy/paste to the TextArea field which is displayed on the home page.  There is also a separate field that they have to pull the image from in order to be displayed on the home page.

 

This is too many steps and I need to cut some out.  They don’t want to give up the flexibility of the WYSIWYG field.  Any suggestions?

 

**********************

Carolyn Vincent, Project Manager

410-312-7272 ext 315

410-741-3218 (fax)

 

Maria Ahues Bouza

unread,
May 25, 2012, 3:31:01 PM5/25/12
to dot...@googlegroups.com
Carolyn,

You can truncate the news story text by using the method:
$UtilMethods.truncatify($content.newsBody,250)

Regards,
Maria
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to
> dotcms+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/dotcms?hl=en.



--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.

Alex

unread,
May 25, 2012, 4:12:07 PM5/25/12
to dot...@googlegroups.com
For news I use:

$UtilMethods.prettyShortenString($!{content.summary},94)

It makes sure everything ends on a complete word.

Alex

Maria Ahues Bouza

unread,
May 25, 2012, 4:20:26 PM5/25/12
to dot...@googlegroups.com
That's even better Alex. Thanks for sending!

-Maria
Reply all
Reply to author
Forward
0 new messages