> Forums > Active Social > Themes and Templates > Return a Portion of a DB Field in a Journal Template
Last Post 25 Jul 2011 01:29 PM by Steven Webster. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Cliff Hammock
Customers
Cliff Hammock
Post Count:667

--
25 Jul 2011 09:51 AM
    • Active Social Version: 1.9.3
    • DotNetNuke Version: 5.6.2
    Actually on DNN 5.6.3

    I use the Ventrian Feedback center with AS integration on my site. I am trying to determine if I want to include the Summary text for Feedback and Feedback Comments in my Journal templates. The summary is basically the detail of the feedback or comments and comes from the Summary field in the JournalTable in the db. The issue is that it can be a lot of text.

    See the attached image for how my template is rendering with the Summary included. What I was wondering is there an easy way to embed something in the template to return the first ## characters of the Summary? Then I could put a ... after it. You would end up with something like this instead of the entire text of the Summary.

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis ...

    FeedbackCenterTemplate1.png

    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    25 Jul 2011 01:29 PM
    You'll still need to return the entire field, but you can use something like the JQuery plug in below to auto-truncate/ellipse the resulting string

    http://pvdspek.github.com/jquery.autoellipsis/


    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Return a Portion of a DB Field in a Journal Template
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy