1
Cherubim
How can I add "read more" to the newstext?
  • 2004/5/3 12:16

  • Cherubim

  • Just popping in

  • Posts: 5

  • Since: 2004/5/2 1


Well, the Subject says it all:
How can I add "read more" to the newstext?
Depending on the theme the "read more" link is a litte bit too small and i guess people wont see that there is more text to read.
So I´d like to put a "read more" link at the bottom of each newstext that requires it.

2
rabideau
Re: How can I add "read more" to the newstext?
  • 2004/5/3 12:36

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Simply type in a pile of text. When you get to authorize the news article, you can then split the original posting into two chunks (the second chunck being 'read more']. This should work on your site... give it a go and let us know if you have further problems.

3
jansen
Re: How can I add "read more" to the newstext?
  • 2004/5/3 12:41

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


In the News template news_item.html there is <{$story.morelink}> this show the Read more... you can put it anywhere in this template. If it needs to be bigger just add some markup to it...

4
Cherubim
Re: How can I add "read more" to the newstext?
  • 2004/5/3 13:03

  • Cherubim

  • Just popping in

  • Posts: 5

  • Since: 2004/5/2 1


<{$story.morelink}> adds also the comment link - thats exactly what I don´t want.

5
rabideau
Re: How can I add "read more" to the newstext?
  • 2004/5/3 13:03

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


You can disable comments...

6
Cherubim
Re: How can I add "read more" to the newstext?
  • 2004/5/3 13:24

  • Cherubim

  • Just popping in

  • Posts: 5

  • Since: 2004/5/2 1


It seems I have specify my problem more precisely:
At the Moment everything ist fine at my site.

I get the "read more" link and i want to have comments.


BUT
The read more link should ALSO be inside the newstext - and it should be the "read more" link only.

7
jansen
Re: How can I add "read more" to the newstext?
  • 2004/5/3 13:39

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


If you want something like this:

- A comment and read more below your text
- A read more link somewhere else

Then you have to do some hardcoding. On my website www.boardstyle.nl I removed the comments part completely. But to have one with and one without te comment link you will have to create another variable in the module sourcecode. This is fairly simple if you know what you are doing. Start by finding the file in which the variable <{$story.morelink}> is created. Ans then create a variable like <{$story.onlymorelink}>. The call this variable in your news post.

8
Cherubim
Re: How can I add "read more" to the newstext?
  • 2004/5/3 13:52

  • Cherubim

  • Just popping in

  • Posts: 5

  • Since: 2004/5/2 1


Sounds like the way I want it :)

Do you know in which file the <{$story.morelink}> is created?
Would save me a lot of searching time this evening, cause i´m at work at the moment :)

9
jansen
Re: How can I add "read more" to the newstext?
  • 2004/5/3 15:09

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


Sorry, don't have it with me at the moment. It should be in my changelog which, of course, is on my other computer.
As far as I can remember it was in the include directory. When you do a search do not try to search for <$story.morelink> cause you won't find it search for morelink instead.

Good Luck!

10
jansen
Re: How can I add "read more" to the newstext?
  • 2004/5/4 9:58

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


Found it, the variable is created in modules/news/index.php. If you search for morelink you will see where it's made.
It's also found in modules/news/article.php so maybe you'll have to create the new variable there also.

Good Luck Again

Login

Who's Online

166 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits