Zenpage printLatestNews excerpt

fretzl Administrator, Developer
Zenphoto version 1.3.1.2, Zenpage theme.

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

Comments

  • acrylian Administrator, Developer
    It is at least coded that way...;-) The function has its own content length parameter option. I guess it needs some work then...
  • acrylian Administrator, Developer
    Give tonight's nightly or hte svn a try, should be fixed.
  • fretzl Administrator, Developer
    Wow, that was the fastest pizza delivery ever ;-)
    I'll try the nightly tomorrow.
    Thanks !
  • acrylian Administrator, Developer
    Yeah, the ZPizza is delicous as well..:-)
  • fretzl Administrator, Developer
    Sorry but the pagebreak still has no effect on the content length :-(
  • acrylian Administrator, Developer
    Will take a look tomorrow. Sure there is no html cache or so enabled?
  • fretzl Administrator, Developer
    No static_html_cache enabled.
  • acrylian Administrator, Developer
    Found it, somehow the tags were stripped for article contents (must have been a leftover from old days)
  • fretzl Administrator, Developer
    The pagebreak now works in printLatestNews() but...
    • Article without pagebreak
      When I click the link from the excerpts to go to the full article all I see is the shorten indicator.
    • Article with pagebreak
      When I click the link from the excerpts to go to the full article I see the shortened article with the shorten indicator.
  • acrylian Administrator, Developer
    Thanks, indeed we got a little bug here. I could swear it worked when I tested it...

    Update: Ok, try the next night please.
  • fretzl Administrator, Developer
    Thanks acrylian !
    Works like a charm now :-)
  • fretzl Administrator, Developer
    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.
  • Kind of a silly question but did you set the shorten indicator in your zenpage options?
  • fretzl Administrator, Developer
    Yes, I did :-)
  • acrylian Administrator, Developer
    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.
  • 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.
Sign In or Register to comment.