2014-04-15, 01:39:34 (This post was last modified: 2014-04-15, 16:54:53 by wass.)
I'm trying to make the page of last projects for multilanguage site using code -- if nm_show_tag.
With development version maxposts and pagination works (nm_show_tag_page)... on the 1st page shows 3 posts (as Set) but on the 2nd page all posts are shown. How to create to continue pagination and set 3 posts for all pages.
News Manager 2.5 beta 18 attached to this post. (alternative download)
[note for Dutch users: there's a bug in the nl_NL language file, see here]
Changes:
- new conditional function nm_post_has_tag: checks if single post has any tag or a certain tag
- conditional function nm_is_tag() now can be passed a parameter to check if it's a certain tag's page, not
only if it's a tag page.
- custom date format for sidebar archives: redefinable strings MONTHLY_FORMAT, YEARLY_FORMAT (either in custom settings or in gsconfig) using the strftime format
- newspage dropdown selector: index now displayed on top in the list; and you can have no news page selected (that is, disabled)
- new custom setting tagpagination to enable tag page pagination like in the main news page. Can be enabled with tagpagination d (default, dynamic) or tagpagination f (fancy or folder-style, requires adding a rewriterule in .htaccess)
- ... and some fixes
I've added a new string to the language files:
Code:
"NO_PAGE_SELECTED" => "No page selected",
It is displayed under the newspage selector in settings when no page is selected.
Translations for this would be appreciated.
I've also added these two that use the strftime format:
Thank you for that. I hope to update my website during the weekend. Not sure, though, and I still don't use tags so I won't be able to test anything with them.
As for "No page selected", it's "Nebyla vybrána žádná stránka" in Czech. Thanks for adding it
I'm having an issue though. My website is in dutch, but when I put the plugin-language on dutch, the entire website does not load anymore. If I download the NL language file for GS3.2 (I am on 3.3.1 but there wasnt a newer one) and set it in the settings, even the admin page doesn't work anymore. (i had to disable the news plugin in the plugins.xml to get it to work again).
Any ideas on how to change this? I would like to have "Read more" in dutch. (at this point I might as well change that in the plugin language file..)
There were some errors (missing commas) in the Dutch language file in the beta version.
I've just fixed this. Download this updated nl_NL.php file and upload/copy it to your news_manager/lang folder.
This lang file was broken since NM 2.4.0. My fault - the translator sent me some new strings and I didn't insert them properly.
I'll upload a patched version to Extend soon.
Thanks for reporting.
News Manager (updated) 2.4.5available in Extend.
This is just another maintenance release - no new features since 2.4.4.
It has several fixes that had already been applied to the extended beta version.
- UI fixes and enhancements (in settings page; some of these contributed by @emanwebdev)
- fixed support for jquery cdn fallback to local (GS 3.2.2+)
- slightly improved excerpt generation: fixed length issues with unicode characters, whitespace... (thanks @emanwebdev for his suggestions)
- fixed issues with just-installed sites that haven't been configured.
- fixed newspage dropdown selector (settings): sort alphabetically; private pages can also be selected
- removed gap in search form (@D.O.)
- ...and several other small fixes
[related GitHub issues 97, 119, 125, 126, 127, 128, 130, 135, 142, 146]
If you're using the beta version, do not downgrade to this one.
News Manager 3.0 beta 19 available. Download - Info
Changes since beta 18:
- bumped plugin version (from 2.5) up to 3.0 (sorry for the confusion - I should have done this way earlier)
- new custom setting breakwords allows to re-enable cutting off the last word in excerpts (like it was in versions 2.4.x and older), if you prefer it this way. Usage: enter this in Custom settings breakwords 1
- new custom setting template allows to select a different template file, overriding the one defined in the news page. For example if you want to use temp-post.php for your full posts, enter this in Custom settings: single template temp-post.php
- post image thumbnails are no longer stored as i18npic.*, but instead as nmimage.*
(If you're already using a beta version, you may want to delete your image cache i18npic.* files in the data/thumbs folder, they will be re-created.)
Carlos, great plugin, works without errors, have all the necessary functions and even more.
I somehow can not do to the author's name was taken up not from the Username field but field of Display Name.
Right now there's no easy way for a plugin to obtain an user's display name - this requires reading every user xml file, and I want to minimize file loads. The display name field will be supported when GS has some function to get it.
For now, here's a workaround - with yet another small complementary plugin: http://get-simple.info/forums/showthread...0#pid43660
(I may implement what this plugin does in NM anyway - but later, not in this version)
Is there a way to change the full post url to not include the parent page?
For example, I want the list of newsmanager pages to be on site.com/news, but for the full page I need the url to be site.com/news/article1...not site.com/news/post/article1.
I cannot use index (homepage) because I need to have other content for the homepage and do not want to show the listing.
(2014-04-30, 07:36:24)Oleg06 Wrote: can not show image in the sidebar announcement.
Works for me, http://webs.org.es/newsmanagerdemo/
Are you using the latest version of the NM Addons plugin?
Or maybe you are using external images? (not in /data/uploads or /data/thumbs)
(2014-04-30, 07:12:31)mengi Wrote: I want the list of newsmanager pages to be on site.com/news, but for the full page I need the url to be site.com/news/article1...not site.com/news/post/article1.
[...]
I am using the 3.0 beta. Thanks for any help.
Not possible with the current version. But...
Unzip attached file and replace news_manager/inc/functions.php
Add this to the end of News Manager's rewriterules block in your .htaccess: