News: 'Read more' link only for for long news stories?
Hello here in the new forum :)
I'm looking to set up a news page where most news items are displayed in full, with image and formatting etc., and only those stories which are longer would have a "Read more" link.
What's the simplst way to achieve this?
Thanks
Re: News: 'Read more' link only for for long news stories?
Hi spirelli
You've got different news modules.
For example you've got one for the list of all entries and a news reader to display the whole news entry.
Look at your news section in the backend. You'll find a textarea named 'teaser' which will be displayed in the list with a 'read more' link.
Try out and let us know your achievements!
Think learning by doing is the best way :D
If you're completely lost, tell us what you tried and what exactly didn't work for you :)
Go on! 8-)
EDIT: Ah, I see...you're looking for a way to do this in the same module?? For example if the text is longer than 200 characters, you'd like to display the 'read more' and if not so, display the whole news?
Re: News: 'Read more' link only for for long news stories?
Quote:
Originally Posted by Toflar
EDIT: Ah, I see...you're looking for a way to do this in the same module?? For example if the text is longer than 200 characters, you'd like to display the 'read more' and if not so, display the whole news?
Correct. I thought that, ideally, the editor could decide which stories would continue on the "News reader" page, and which ones are short enough to display in full (incl. formatting, image, enclosure etc). However, an automated way might be more feasible...
Having though a little more, I guess I could come to a satisfactory result if the news teaser had the rich text editor. It seems to only be active for articles. I guess my request changes now to: How can I get the rich text editor for News?
Many thanks.
Re: News: 'Read more' link only for for long news stories?
Okay, what I would do in this case is the following (sorry, gotta go soon and I can't try it right now).
Use all possible news modules and add <?php echo $this->showTemplateVars(); ?> to your different news templates.
This will show you all variables which are provided by the module you've chosen.
Later, you merge different parts of the templates...