By Appleboy on
First of all, sorry about my poor english, I am spanish :)
I want to write long stories in my drupal web, and I want to only display in front page the first part of story. Drupal does it right now, but I would like to control the exact place when the story is "cut". Something like that:
blablalblablablalblalblab
blablalblablablalblalblab
blablalblablablalblalblab
blablalblablablalblalblab
blablalblablablalblalblab
blablalblablablalblalblab
blablalblablablalblalblab
blablalblablablalblalblab
So, in front page it only would show the first 4 phrases.
It is possible? how?
Comments
A little reading...
Usually I would say 'read the handbook', but you don't even need to do that in this case. Once you preview the entry the instructions for doing this appear right on that page under the textarea. Hint: look for a line with 'break' in it.
Good point...
... however if you don't know what to call what you are looking for, sometimes you don't notice what is right there.
Further, it is not possible to search just the Handbook - a cursory check of the handbook doesn't illuminate the situation any better, and the volume of information on this site - both pertinent and non - is more than a little daunting for a user that has been here less than 38mins., and who's first language 'may' not be English, since they are from Spain...
you'll notice that my response, though pedestrian, provides the term they could search on, directed them to the correct area of thier admin pages so they could set the length of their trimmed posts and used all the terms that some other new person may be searching on when they don't know to call a teaser a teaser - especially when it is alternately called a break, a teaser and a trimmed post... - and hopefully does it in a way that doesn't frighten them into never coming back and telling all thier friends what a horrible place Drupal.org is...
No 'undo' button
I was having a bad day - you're right I was a bit snooty. Apologies to the original poster. A bit of misdirected anger.
Use the 'break' tag...
Hi there,
The feature you are looking for is called a teaser. You can delimit a teaser by adding the
tag in the body of the of your node.
You can also have teasers get created automatically based on a word limit
if you go to administer/content/configure in your site you can set the "length of trimmed posts" which will automatically create teasers when a post is over x characters long...
If you have more questions, do a search for 'teaser' and you'll come up with all kinds of things... ;)
Hope this helps...
~Tat~
Or the 'excerpt' module
If you always (or almost always) want to have a custom summary or excerpt, I recommend installing the 'excerpt' module:
http://drupal.org/project/excerpt
Separate excerpts used to be part of drupal core, but were removed around 4.4 or so. This replaces that and you don't need to use the
<!-- break -->technique.Excerpt does not play nicely with Flexinode
Just to note, if you intend to use Flexinode custom templates AND Excerpt then I promise you will not get them to cooperate. Known bug with excerpt.module.
Sean
Cambridge Community Television
http://www.cctvcambridge.org
Be very careful or it won't work!
Tat:
Thanks for mentioning the break tag.
But, it will not work as you typed it:
It must be like this:
NO SPACES!
If you put spaces in it, it gets treated like a comment and ignored.
Geoff
Newbie
Hi there!
I´ve read all the discussion (thanks for the
info btw!), but still got a question: What if I don´t want a teaser (I´ve made one already through the flexinode module), but want to separate in 4 pages a really long article.
Can I use the
thing as many times as I want or there´s some better option?
Thanks!!!
Does this help?
http://drupal.org/project/paging
--
Anton
Thanks!
Exactly what I wanted!
Sorry... I don´t know how I didn´t see that before....
:-)
Rosamunda
Buenos Aires | Argentina