Thread Rating:
  • 6 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager (updated)
(2013-06-18, 00:57:13)shawn_a Wrote: Is this on github yet?

No, on github it is still stable 2.4.3. I'll push it soon.

[edit] updated on github. (beta 4, with just a small change to include the image field in the cache/index file)
Reply
Reminder: NM 2.5 beta 3, with basic support for post thumbnails/featured images
http://get-simple.info/forums/showthread...2#pid37402
Reply
(2013-06-13, 00:38:03)Carlos Wrote: Note that there will be no link in that "read more" string.

Just installet that new beta and i can change [...] to read more in language file now, but yes, theres no link to article, that would be nice too Big Grin.
Reply
Thanks, did not know if you had a beta branch or not.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
Hi Carlos,
I just tested "NM 2.5 beta": it is working greatly. Congrats!

A small tip: try these CSS lines, according to me they're perfect for the option "external". The images are resized to fit with an excerpt of 250 words.
Code:
.nm_post_image {
    float:left;
    padding:0px;
    margin:0px; }
.nm_post_image img {
    padding:4px;
    border:1px solid #ccc;
    margin-right:10px;
    width: 114px;
    height: 66px; }
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
(2013-06-17, 22:17:33)Carlos Wrote:
(2013-06-17, 20:03:13)anto Wrote: How do I get addThis to link to the actual post and not just the parent page of where the blog posts are? I have the same problem with gs blog plugin. Merely enabling prettyurls didn't seem to help.

I suppose it's because of the canonical meta tag.
To remove it, edit your template, change this:
Code:
<?php get_header(); ?>
by:
Code:
<?php get_header(false); ?>

Thanks, Carlos. Turns out that it is linking properly but because posts have (had) their parent as the default index page - that meant a big blob of introductory text always appeared above each post, hence the share excerpt would be that text.

I would like to see an option to choose a custom template for a post and not just inherit the parent template.
Reply
(2013-06-13, 00:38:03)Carlos Wrote: Note that there will be no link in that "read more" string.

Is it possible to have the ellipsis [...] text link to the full article?


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
(2013-06-18, 19:09:18)anto Wrote: Thanks, Carlos. Turns out that it is linking properly but because posts have (had) their parent as the default index page - that meant a big blob of introductory text always appeared above each post, hence the share excerpt would be that text.

I suppose AddThis gets the text from the page's meta description.
Since 2.4.0 post pages have an empty one instead of the news page's.
What version of News Manager do you have?

(2013-06-18, 19:09:18)anto Wrote: I would like to see an option to choose a custom template for a post and not just inherit the parent template.

What would you use this for?
Reply
I will include the "read more" link as an optional setting.

What do you think would be better:

Code:
... <a class="nm_readmore" href="#">read more</a>

or

Code:
... <span class="nm_readmore"><a href="#">read more</a></span>

(This would be inside the excerpt's <p>...</p>)
Reply
(2013-06-20, 16:23:26)Carlos Wrote: What do you think would be better:
Code:
... <a class="nm_readmore" href="#">read more</a>
or
Code:
... <span class="nm_readmore"><a href="#">read more</a></span>
(This would be inside the excerpt's <p>...</p>)

Hi Carlos,
I would go for the class outside the link but, in the end, also the other one can be good.
Thanks
GP
Reply
Thank you GPB61, I'll do it like you say for now.


Attached is News Manager 2.5 beta 5.

Enable "read more" links by adding this to gsconfig:
Code:
$NMREADMORE = true;

You can change the default "read more" text. Example:
Code:
$nm_i18n['READ_MORE'] = 'Continue reading';


BTW there are a couple new language strings for which I will need translations:

Frontend:
Code:
"READ_MORE" => "Read more",

Backend:
Code:
"POST_IMAGE" => "Image",


[edit] attachment removed - news_manager-2.5-beta5.zip (Downloads: 7)
Reply
Post titles currently have a link to the full post, in every news page: main, archives, ... I want to make it optional, at least for the single post page (as Oleg06 suggested)

I will add a new setting or variable (for use in gsconfig).

What name do you think sounds better:

NMTITLENOLINK
NMNOLINKEDTITLE
NMNOLINKINTITLE
...?

(any other suggestion?)
Reply
Ola Carlos,

is it possible to create a template tag (which I will use with the dynamic page plugin) to list only those news with a special tag?

I have 2 tags ("red" and "blue"). I see links to all news with these tags when I use the sidebar-tag
Code:
<?php nm_list_tags(); ?>
or I can see these list when I add
Code:
?tag=name_of_tag
or
Code:
/tag/name_of_tag
when I add that to the URL

but my friends want to have a list with the news of one special tag in page,
how to realize that?

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
(2013-05-24, 04:06:46)Carlos Wrote: Since version 2.4.0 you can redefine all frontend language strings, allowing some basic customization.

Here is the german part, german translations for these language-frontend-entries :
Code:
$nm_i18n = array();
$nm_i18n["FOUND"]       = "Die Suche hat diese Beiträge gefunden:";
$nm_i18n["NOT_FOUND"]   = "Leider wurde nichts gefunden.";
$nm_i18n["NOT_EXIST"]   = "Der gesuchte Beitrag existiert nicht.";
$nm_i18n["NO_POSTS"]    = "Keine Beiträge gefunden.";
$nm_i18n["PUBLISHED"]   = "Veröffentlicht am";
$nm_i18n["TAGS"]        = "Schlagworte";
$nm_i18n["OLDER_POSTS"] = "&larr; Ältere Beiträge";
$nm_i18n["NEWER_POSTS"] = "Neuere Beiträge &rarr;";
$nm_i18n["SEARCH"]      = "Suche";
$nm_i18n["GO_BACK"]     = "&lt;&lt; eine Seite zurück";
$nm_i18n["ELLIPSIS"]    = " [...]";
$nm_i18n["LOCALE"]      = "de_DE.UTF-8,de_DE.utf8,de_DE,german.utf8,german,de_CH.UTF-8,de_AT.UTF-8,de";
$nm_i18n["DATE_FORMAT"] = "%d.%m.%Y";

PS: after Carlos confirmed the correct code, I publish this here.
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
semicolon at the end of all lines.

There was an error in the docs, sorry. I've just fixed that.
Reply
(2013-06-22, 00:51:24)Carlos Wrote: What name do you think sounds better:

NMTITLENOLINK
NMNOLINKEDTITLE
NMNOLINKINTITLE
...?

"NMNOLINKINTITLE" does not break the eyes as much as the other options do ;=)

(2013-06-22, 03:04:16)Carlos Wrote: semicolon at the end of all lines.

There was an error in the docs, sorry. I've just fixed that.

great, now I can re-activate these settings ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Good I agree about it could be optional.
NMTITLENOLINK "sounds" fine to me
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
(2013-06-22, 02:32:03)Connie Wrote: but my friends want to have a list with the news of one special tag in page,
how to realize that?

Sorry Connie, I don't get it.
What do you mean by "special tag"? A certain tag? Or some kind of different tag?

I will add support for "hidden" tags, that is, tags that are not listed in the tag cloud nor under the post. Just like I18N plugins, prefixed with an underscore ("_tagname"). Not sure if this is what you mean.

OTOH I will add some function to list posts by tag, if not to News Manager itself, maybe to the NM Addons plugin (I already told you I would, but I still haven't O:-))
Reply
Carlos,

I was unclear.
Yes, I need a "list by tag" for the content region. So I can add different lists to their relevant pages.
Could be a function in the NM Addons plugin, for sure

My idea in the moment is to "catch" the content of the page "/tag/natur" or "/tag/kultur" (where 'natur' and 'kultur' are the names of the tag) with get_page_content();

this does not work in template:

<div><?php if (return_page_slug()=='xxsliugxx') { getPageContent('news/tag/kultur'); } ?></div>
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
No, that won't work.
getPageContent displays the content for a given slug, not for a dynamically generated page.

I understand that you want to replace a certain page content by NM's output for a certain tag. I suppose you don't want to have "/news/tag/kultur" in the URL, but e.g. "/xxsliugxx"
I think this could be done with a .htaccess rewriterule like this:

Code:
RewriteRule ^example/?$ index.php?id=news&tag=kultur [L]

(If you browse "/example" you will get the content for "/news/tag/kultur")

PS I've just made a new template tag/function nm_list_recent_by_tag that lists posts for a given tag (only titles, for use in the sidebar like nm_list_recent). I think I'm going to include in News Manager 2.5
Reply
It's posibble to integrate a filebrowser to select the image in adds thumbs ?
or add a button which name will be "browse" and the seccond button like example "upload"
i think it would be really cool to facilitate. Can some one create a simple uploading form whitch one will be add a adres uploaded image to:
<input class="text short" id="post-image" name="post-image" type="text" value="" />
user plugin: scroll to top
Reply
@xxdex

An image/file browser is in my to-do list.
I will not add an upload form, I leave that for the GS file manager.
Reply
(2013-06-22, 19:47:53)Carlos Wrote: PS I've just made a new template tag/function nm_list_recent_by_tag that lists posts for a given tag (only titles, for use in the sidebar like nm_list_recent). I think I'm going to include in News Manager 2.5

Thank you, I feared / understand that "getContent" does not catch dynamic pages...

Carlos, this list_recent_by_tag is ok, I use it already in the sidebar.

But my need is:
The list of recent_by_tag should be included in a page, not in the sidebar.
They want it below some content.
That is my problem.

Unfortunately I promised this to my clients, because it was somehow obvious to me ;=(

cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Are you using vincenzo's original function nm_list_recent_by_tag?
I think it doesn't work properly -- I've totally rewritten it for NM 2.5

To use it only in page my-slug, insert this after get_page_content:

Code:
<?php
if (return_page_slug()=='my-slug') {
  nm_list_recent_by_tag('kultur');
} ?>

Is this what you need?
Reply
(2013-06-22, 20:06:18)Carlos Wrote: Are you using vincenzo's original function nm_list_recent_by_tag?
I think it doesn't work properly -- I've totally rewritten it for NM 2.5

To use it only in page my-slug, insert this after get_page_content:

Code:
<?php
if (return_page_slug()=='my-slug') {
  nm_list_recent_by_tag('kultur');
} ?>

Is this what you need?

Yes, Carlos, that is exactly what I need

at another site, I used Vicenco's function in a component, together with NM 2.4.3, included the component into the sidebar of one installation and it worked

is this now included in NM 2.5 Beta 5?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 3 Guest(s)