Thread Rating:
  • 6 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager (updated)
Don't thanks needed, I love NM! =D
It is not a big problem for me, don't worry and
thanks always for your precious help!

=D
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
(2013-07-26, 22:17:51)Carlos Wrote: Not really a bug, I think it's the behaviour you should expect. But nice catch anyway.

I could change it so that:
- if no title link and readmore enabled, show the link always
or:
- you can (optionally) set it to always display the readmore link

...but I'm not sure if to do it or leave it for some future NM version that would allow more customization (with post templates or whatever).

Do you need this for some of your sites? Or were you just experimenting? (thanks for testing BTW)

Well, if you write a nice list of GSConfig settings (I think there are plenty of options now), I don't see why it shouldn't be optional.

However, I would make the default so that there would be the link always - because
1) it's better for SEO, the text inside will have its own URL and pagerank. (But it's not any significant as these short text are useless for SEO...)
2) all the webpages should be unified within - I mean that all the articles should should have the same structure, the breadcrumbs should be also same on the whole site (links except the current item) and so on.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply
Carlos, you do not have attached to the manager news commentary with disqus.com?
Reply
Ok, I'll add/change the option to be able to always display the "read more" link after the excerpt, instead of only if it's shorter than the maximum length.

Do others think, like TeeJay, it should be default? (when "read more" link enabled)
Reply
(2013-07-27, 20:40:54)Oleg06 Wrote: Carlos, you do not have attached to the manager news commentary with disqus.com?

No, support for external comments is in my (long) to-do list. :-)

Edit: it seems quite easy to integrate RobA's external commenting plugin (example patch for an old NM version), so I'll probably give it a try one of these days.
Reply
Hi Carlos,
just a question:
I want my script to show a particular tag

(e.g. http://www.mysite.it/index.php?tag=news )

when you select a normal page
(e.g. if (return_page_slug() == 'news') { ??? } )

How can I do?
Thanks ! =D
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
(2013-07-28, 14:23:18)D.O. Wrote: I want my script to show a particular tag

(e.g. http://www.mysite.it/index.php?tag=news )

when you select a normal page
(e.g. if (return_page_slug() == 'news') { ??? } )

How can I do?
Thanks ! =D

You can now use News Manager Addons (since version 0.7) like this:

PHP Code:
<?php
if (return_page_slug() == 'news') {
  
nm_set_custom_maxposts(99999); // show all
  
nm_custom_display_recent('
<div class="nm_post">
  <h3 class="nm_post_title">
    <a href="{{post_link}}">{{post_title}}</a>
  </h3>
  <p class="nm_post_date">{{post_date}}</p>
  <div class="nm_post_content">{{post_excerpt}}</div>
</div>
'
,'news');
}
?>
(Tags under the post will not be displayed, however.)
Reply
It's simply PERFECT! THANKS!
It is for that medical legal site... I am still restyling it!
I will show you it soon..
Meanwhile, if I can be useful (beta-testing something),
don't hesitate, just ask! Gracias again!
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
Hi Carlos,
I reproduced the same effect in a very easy/gross way...

E.G.
PHP Code:
if (return_page_slug() == 'about-sport') {
echo 
"<script>window.location='?id=news&tag=sport'</script>"; } 

Any way to improve it? =D
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
But that's just a redirection, isn't it? I thought you wanted to keep the page url.

Without using js you could do it with some .htaccess rule; or in GS with something like:
PHP Code:
if (return_page_slug()=='about-sport'redirect(get_site_url().'?id=news&tag=sport'); 
Reply
Thanks Carlos,
it works but only in this way...

PHP Code:
if (return_page_slug() == 'about-sport'redirect('http://www.mysite.com/index.php?id=news&tag=sport'); 

Gracias!
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
Hi, I added Slovak translation. Link

Reply
News Manager 2.5 beta 10:

- you can force always displaying the "read more" link after post excerpts (even if they're shorter than the maximum length):
Code:
$NMREADMORE = 'a';

- new 'link' option for $NMIMAGES, to make thumbs/images link to posts. Example:
Code:
$NMIMAGES = array(
'link' => true,
'width' => 100,
'height' => 100,
// etc.
);

(see all other new features in 2.5 beta here)

Please test and let me know if you find any issues. I'd like to release 2.5 to Extend soon.

[attachment removed: news_manager-2.5-beta10.zip (Downloads: 21)]
Reply
Hi Carlos,
I am having a weird problem with the "comeback" button javascript:history.back()

After I use the searchbar for a word (e.g. "black")

http://www.mysite.com/?id=news&post=black

and I click the comeback button to go back http://www.mysite.com/?id=news

the browser shows instead the expired page error..

Any suggestion??
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
Ah yes, it has always happened, also if you press the back button in your browser (it's the same).
I suppose it's because search uses POST, not GET. As I said I haven't worked on the search feature of this plugin.

By the way I had in mind adding a setting to not display that javascript "go back" link (or optionally have it replaced by a link to the main news page)
Reply
I agree perfectly with you!

A link to the main news page could be perfect

Just a question: doesn't exist a php alternative to that js solution?
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
Added a new setting variable.
If you want to test it, replace the file news_manager/inc/site.php in 2.5 beta 10 by this one:
https://raw.github.com/cnb/News_Manager-...c/site.php

to disable "go back" link:
Code:
$NMGOBACKLINK = false;

to replace it by link to main news page:
Code:
$NMGOBACKLINK = 'main';

(you'll probably want to redefine $nm_i18n['GO_BACK'] ...)
Reply
Thanks! It's perfect and it works fine.
I suggest to remove the old go-back button (in java) and find a solution in php for this.

By the way, can I use I18N Search bar with your NM?
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
(2013-08-02, 02:15:28)D.O. Wrote: I suggest to remove the old go-back button (in java) and find a solution in php for this.

I suppose there's some way to do it, but I'm not sure I want that. I don't like the idea of inserting ANY external link in the page.

(2013-08-02, 02:15:28)D.O. Wrote: By the way, can I use I18N Search bar with your NM?

Not right now. AFAIK no one has adapted mvlcek's i18n_search_dummy example plugin to NM. I may give it a try one of these days, it would be very interesting.
Reply
No problem bro,
it's fantastic anyway.
I suggest to add this patch to the next NM version.
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
Changing the Display Order of Posts

I am using News Manager to display upcoming events on a web page. I want the event this weekend to be at the top of the page, then next week's and so on, eg in date order, but the date of the event, not the date of the post which will be quite different.

To achieve this I am just bodging the publish date and time in Post Options to the reverse of the order I want, and not showing the post date by display:none; in the css. It works, but is there a more elegant way of controlling the order of posts on the page so that my client can manage the page herself?

I know there are a few calendar and events plugins but I don't think they will display the events as i want them. the prototype page is temporarily here:
http://www.cyberpress.biz/elmhirst/mind-body-spirit/
Reply
Interesting!
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
You can now use the News Manager Addons plugin (version 0.8 beta) to display future posts.

To replace News Manager's default content for the main news page, you could use a workaround like this in your template:

Change
PHP Code:
<?php get_page_content(); ?>
by
PHP Code:
<?php if (return_page_slug() != 'news-page-slug' or nm_post_title()) {
  
get_page_content();
} else {
  
nm_custom_display_future('
    <div class="nm_post">
      <h3 class="nm_post_title">
        <a href="{{post_link}}">{{post_title}}</a>
      </h3>
      <p class="nm_post_date">{{post_date}}</p>
      <div class="nm_post_content">{{post_content}}</div>
    </div>
'
);
?>


[edit] Some comments:

- The snippet replaces the main news page content, but another simpler way would be to create a different page where you would display the future posts/events. Then, instead of replacing <?php get_page_content(); ?>, you would just insert this after or before it:
PHP Code:
<?php if (return_page_slug() == 'events-page-slug') {
  
nm_custom_display_future('
    <div class="nm_post">
      <h3 class="nm_post_title">
        <a href="{{post_link}}">{{post_title}}</a>
      </h3>
      <p class="nm_post_date">{{post_date}}</p>
      <div class="nm_post_content">{{post_content}}</div>
    </div>
'
);
?>
So the news page would be like a "past events" page.
(However, single post/event pages would still have the news page's slug, not the one of the events' one.)

- It may be more convenient to move the nm_custom_display_future(...); block to a component, and replace it by get_component(...)
Reply
Gracias Carlos, I will look at it on Lunes
Reply
Hi Carlos,
about the new NM searchbar, please delete that space between input "text" and "submit" because it leaves a unsightly gap between the window text and the button that can't be fixed with CSS solutions.

Better in this way...

(...) ?>'}"/><!--[if IE]><input type="text" style="display: none;" disabled="disabled"
size="20" value="Ignore field. IE bug fix" /><![endif]--><input (...)
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply




Users browsing this thread: 4 Guest(s)