Fork me on GitHub

News 2.5 and weight  Bottom

  • I'm using News 1.5 with Zikula 1.2.1 RC1 on an IntranetSite. It was great, that there should be the option to give a weight to the News an afterwards sort by this, so it would be able to place an older News a the Top of the newslist on index page f.e.
    OK so far - I can see the "Weight"-Criteria on the admin section of News, but I don't know where to set the weight for the single News?
    And, where can I change the sort order "sort by weight"?
  • Hi
    in the admin settings there should be the option to select Article weigth as a sort option and it is available in the stories/storiesext block.
    And the weight is "hidden" in the publication option of News. Since it is a "special" feature that will/might be extended in use in the future it is just a text field in the expandable publication options.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • OK, thanks for the answer, I will look after it tomorrow.

    And for my opinion, extend this feature in the future! icon_wink
  • If you have good ideas in that area please log them as enhancements in the cozi/news project icon_smile

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • I had an older version of the News 2.5 installed. It failed to upgrade my existing news and I had to remove my original and delete it, causing all the news to be deleted. Is this correct? The latest release fails to convert older 2.5 articals?
  • 2.5 was an SVN version. When you delete a modules all stuff that belongs to it, in this case the articles are gone too.
    When you use an SVN version (especially if there is a warning on the Wiki page icon_wink ) you must be ready to do things by hand when the released version is out.
    When using an SVN version you cannot expect the released version to be still the same. News 2.5 contains a lot of new module variables and some new database fields and database field renames. I assume you were using 2.5 SVN in a test install and not in a live environment?
    Depending on when you got the 2.5 SVN version there are new database fields. The best way might be to install the new version and restore the articles with the correct dbase fields

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Yes, it was a minor inconvience for me. It was in my live site. However, I had a new theme built and my theme was built on this becuse my theme uses a modified news block. All is good, minor hickup.
  • OK, it was a translation problem, because I'm german.

    The Weight was translated to Titel, so I changed it to "Gewichtung". Now it was clear for me and everything works well!
    Thanks for that.
  • mesteele101

    Yes, it was a minor inconvience for me. It was in my live site. However, I had a new theme built and my theme was built on this becuse my theme uses a modified news block. All is good, minor hickup.

    Ok great. Thanks for the feedback anyway, good to know that people sometimes use the SVN modules already live, we can try to cope with that in upgrading or something like that.

    About the weight (gewichtung icon_smile ) field. If you select weight for sorting the primary sorting is based upon weight, so indeed you can place older articles on top or something like that, and the seconday ordering is based upon datetime. So articles with the same weight are shown in order of the publication date.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Indeed
    not all the times we can support a way to not affect the SVN installations out there; I usually can do it with "checkpoints" in the init script, but News needed some radical changes to the 2.5 upgrade process, and no way to support the old upgrades this time :-|

    Enjoy the beauty News 2.5 icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Quote

    The Weight was translated to Titel, so I changed it to "Gewichtung".


    Hi, that's why you shouldn't use unfinished translations. The News translation in Pootle is not yet finished.

    Update: The translation was wrong, because the "translation memory" of PoEdit created this wrong suggestion.

This list is based on users active over the last 60 minutes.