Skip to content

Limit characters per column #241

Answered by dansysanalyst
OCRAMIS asked this question in Q&A
Discussion options

You must be logged in to vote

Hello there,

You can use a closure to create an excerpt for your text column.

For example, imagine you have a database table poems with the following data:

ID TITLE AUTHOR TEXT
1 Tabacaria Fernando Pessoa I am nothing I shall never be anything I cannot want to be anything. Aside from that, I have within me all the dreams of the world. Windows of my room, The room of one of the world's millions nobody knows about (And if they knew about me, what would they know?) You open onto the mystery of a street continually crossed by people, A street inaccessible to any thought, Real, impossibly real, certain, unknowingly certain, With the mystery of things beneath the stones and beings, With …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by OCRAMIS
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants