Administrator
Administrator
fretzl   11-10-2010, 17:09
#1

Zenphoto version 1.3.1.2, Zenpage theme.

I'm displaying 3 news items with printLatestNews().
Using a [i]pagebreak[/i] in the article has no effect on the length of the news excerpt.
Nor does the Zenpage [i]News article text length[/i] option.
Only the length set in the function is used.
Is this expected behavior ?

Administrator
Administrator
acrylian   11-10-2010, 17:25
#2

It is at least coded that way...;-) The function has its own content length parameter option. I guess it needs some work then...

Administrator
Administrator
acrylian   11-10-2010, 17:44
#3

Give tonight's nightly or hte svn a try, should be fixed.

Administrator
Administrator
fretzl   11-10-2010, 18:30
#4

Wow, that was the fastest pizza delivery ever ;-)
I'll try the nightly tomorrow.
Thanks !

Administrator
Administrator
acrylian   11-10-2010, 19:11
#5

Yeah, the ZPizza is delicous as well..:-)

Administrator
Administrator
fretzl   12-10-2010, 19:32
#6

Sorry but the [i]pagebreak[/i] still has no effect on the content length :-(

Administrator
Administrator
acrylian   12-10-2010, 19:56
#7

Will take a look tomorrow. Sure there is no html cache or so enabled?

Administrator
Administrator
fretzl   12-10-2010, 20:05
#8

No static_html_cache enabled.

Administrator
Administrator
acrylian   13-10-2010, 11:21
#9

Found it, somehow the tags were stripped for article contents (must have been a leftover from old days)

Administrator
Administrator
fretzl   14-10-2010, 19:46
#10

The [i]pagebreak[/i] now works in [i]printLatestNews()[/i] but...

[list]
[*]Article [b]without[/b] [i]pagebreak[/i]
When I click the link from the excerpts to go to the full article all I see is the shorten indicator.

[*]Article [b]with[/b] [i]pagebreak[/i]
When I click the link from the excerpts to go to the full article I see the shortened article with the shorten indicator.

[/list]

Administrator
Administrator
acrylian   15-10-2010, 08:32
#11

Thanks, indeed we got a little bug here. I could swear it worked when I tested it...

Update: Ok, try the next night please.

Administrator
Administrator
fretzl   16-10-2010, 09:10
#12

Thanks acrylian !
Works like a charm now :-)

Administrator
Administrator
fretzl   16-11-2010, 21:00
#13

Hi again,

Since a few weeks the problem has returned, sort of...

When I now use the pagebreak to shorten an article, the article is shortened but I get no shorten indicator.
Tested also with the latest nightly.

Member
Member
micheall   17-11-2010, 04:52
#14

Kind of a silly question but did you set the shorten indicator in your zenpage options?

Administrator
Administrator
fretzl   17-11-2010, 06:36
#15

Yes, I did :-)

Administrator
Administrator
acrylian   17-11-2010, 10:18
#16

I did not do anything on that but I think sbillard did something with the main shorten function that the Zenpage function uses internally so it optionally does not return the indicator. Probably something was forgotten. Will try to take a look later.

Member
Member
sbillard   17-11-2010, 19:25
#17

The code that deals with page breaks has not changed. What the code essentially says is to place the shorten indicator in at the end of the string unless the page break comes at the logical end of the article.

Maybe it is best if you create a ticket with the actual full text of the content you are having the problem with attached as a file.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.