


There was a gem of a community post I seem to remember seeing sometime again about how to put a 'read more' or 'show more' option in long text colums. For example, if a project description is longer than 180 characters it cuts off at 180 and says 'read more.'
Did I dream this or does someone else remember seeing it/know how to do it?
@Anthony Imgrund‚ @Kyna Baker - inactive‚
Topics help categorize Community content and increase your ability to discover relevant content.
Hi - here is the code below. I'd recommend you save https://wf-pro.com/home/training/text-mode-examples/ into your favorites. @NRYN R - inactive‚ has done a great job putting all these examples together (which is where I got this code from)
Description:
displayname=Description Summary
textmode=true
usewidths=true
valueexpression=IF(LEN({description})>140, CONCAT(SUBSTR({description},0,139),"... (open issue for more)"), {description})
valueformat=HTML
width=250
Last Note:
displayname=Last Note
querysort=lastNote:entryDate
textmode=true
valueexpression=IF(LEN({lastNote}.{noteText})>140, CONCAT(SUBSTR({lastNote}.{noteText},0,139),"...(open for more) -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate}), IF(LEN({lastNote}.{noteText})>0, CONCAT({lastNote}.{noteText}," -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate})))
valueformat=HTML
Hope that helps 🙂
Hi - here is the code below. I'd recommend you save https://wf-pro.com/home/training/text-mode-examples/ into your favorites. @NRYN R - inactive‚ has done a great job putting all these examples together (which is where I got this code from)
Description:
displayname=Description Summary
textmode=true
usewidths=true
valueexpression=IF(LEN({description})>140, CONCAT(SUBSTR({description},0,139),"... (open issue for more)"), {description})
valueformat=HTML
width=250
Last Note:
displayname=Last Note
querysort=lastNote:entryDate
textmode=true
valueexpression=IF(LEN({lastNote}.{noteText})>140, CONCAT(SUBSTR({lastNote}.{noteText},0,139),"...(open for more) -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate}), IF(LEN({lastNote}.{noteText})>0, CONCAT({lastNote}.{noteText}," -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate})))
valueformat=HTML
Hope that helps 🙂
Anthony beat me too it, I was also going to send you to Narayan's site! 🙂
Views
Replies
Sign in to like this content
Total Likes
Holy smokes. How I didn't know about this website earlier I don't know. @NRYN R - inactive‚ THIS is a beautiful place!!! Like candyland!! Thank you all so much!
Hear hear, Samantha!
You've inspired me to set up this WF-Pro.com THANK YOU Guestbook, which I invite you to "second", to share some love back Narayan's way.
Regards,
Doug
Views
Replies
Sign in to like this content
Total Likes
DONE!
Views
Replies
Sign in to like this content
Total Likes