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"?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
News 2.5 and weight
-
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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 -
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
OK, thanks for the answer, I will look after it tomorrow.
And for my opinion, extend this feature in the future!
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
If you have good ideas in that area please log them as enhancements in the cozi/news project
--
campertoday.nl, Module development, Dutch Zikula Community -
- Rank: Helper
- Registered: Sep 19, 2003
- Last visit: May 25, 2010
- Posts: 612
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? -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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
) 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 -
- Rank: Helper
- Registered: Sep 19, 2003
- Last visit: May 25, 2010
- Posts: 612
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. -
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
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. -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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
) 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 -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
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
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Team Member
- Registered: Jul 15, 2004
- Last visit: May 27, 2010
- Posts: 277
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.
- Moderated by:
- Support
