Pages (2): 1 2   
Member
Member
jackdaw   03-07-2010, 17:46
#1

I set the length of an news article to 5000. This way an article will be shown full, unless the page break is added manually in the editor. Nevertheless the 'read more' link is shown. Why? Should I delete that php line in the news.php file?

Administrator
Administrator
acrylian   03-07-2010, 18:02
#2

Yes, the read more link is already handled by the printContent() function. The separate function mainly exists for flexibility reasons.

Member
Member
jackdaw   03-07-2010, 19:25
#3

Then I think I don't know what I'm doing wrong. I have this code:

`

`
The link is shown for short articles with full text and for larger articles with page breaks. In both cases the read more link is visible.

Member
Member
sbillard   03-07-2010, 22:46
#4

You would not need the line:

Quote:
then.

Member
Member
jackdaw   05-07-2010, 12:02
#5

When I delete that line, there is no more link present for the visitor to the entire article, other than clicking on the title of the article. But I would prefer a link at the bottom of the article.

Administrator
Administrator
acrylian   05-07-2010, 14:36
#6

If your content is shortened there should be a read more link automatically. Try the Zenpage theme. If it does work there and not in your theme, you have some work to do..;-)

Member
Member
jackdaw   09-07-2010, 16:00
#7

I tried the Zenpage theme. With the printNewsReadMoreLink present it shows the link to the rest of the article (past the pagebreak), but also when the article is short and has no pagebreak. When I remove the printNewsReadMoreLink from the news.php template, no read more link is shown. In that case I have to click on the title to read the rest.

I set the lenght of the news article at 5000.

Administrator
Administrator
acrylian   09-07-2010, 16:14
#8

I can't reproduce that issue: zenphoto.maltem.de (plain 1.3 install)

The first article is automatically shortened by the option settung (700 in this case) and the 2nd via a pagebreak. printNewsReadMoreLink is commented out.

Member
Member
jackdaw   09-07-2010, 18:45
#9

Thanks for testing. I will test some more myself. Must have forgotten something

Member
Member
jackdaw   12-07-2010, 10:39
#10

I'm getting hopeless :-). I can't imagine what could be wrong. Like I said, a new 1.3 install, using the standard zenpage theme for testing, and no seperate readmore link present. I just can't get the automatic read more link to be shown. Some posts have a page break, some don't. Some are long, some short. When I view the source of the newspages, there is no hidden read more link visible. I know you can only test it for yourself, but perhaps some other users encountered this same problem.

The host is using MySQL 5.0.45 and PHP 5.2.13 by the way.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.