Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager (updated)
I think you can do most via css in your theme. Just open the console and check the classes on the News page.
Reply
Thanks. I'm no expert, so I'm sure you're right, but I don't see how I can move
Code:
<div class="nm_post_image"> xxxxxxx

to before:
Code:
   <h3 class="nm_post_title"> xxxxxx

using CSS.

But if I know what file is putting this together, I probably can.
Code:
<div class="nm_post">
   <h3 class="nm_post_title"> xxxxxx
   <p class="nm_post_date">Published on May 23, 2016</p>
   <div class="nm_post_image"> xxxxxxx
   <div class="nm_post_content">    </div>
   <p class="nm_post_meta"><b>Tags:</b> <a href="http://scramblekit.uk/review/?tag=clothing">clothing</a> <a href="http://scramblekit.uk/review/?tag=baselayer">baselayer</a></p>
 </div>

What am I missing?
Thanks for the quick response.

C.
Reply
Have you checked the info on: http://www.cyberiada.org/cnb/news-manager/
Reply
Yes.

I can do this with CSS but it's a major hack and also a bit of a pain to ensure that it's completely responsive.

If you know something, please tell me. I'm not quite sure what your hinting that I need to look for.

C.
Reply
Okay, I think I found the documentation you were referring to - I'd missed that first time around.
I think I can get everything done. If I get stuck I'll be back with a specific query.

Thanks.

C.

EDIT: Thanks for making me look a little deeper. Didn't realise there were so many options. I'd been using an older version on another site. A big improvement. Great work devs !!!!
Reply
I don't know how to change the image position (I didn't entirally understand your post at first), but other things like removing the date etc. can be done via css. Although There might be settings for that as well. I think your answer lies there in the documentation, but maybe Carlos comes in and directs you to the right information.
Reply
To reorder (and remove) fields you can use custom setting showFields, for example:
Code:
showFields image,title,content,tags

As datiswous suggested, you may customize the built-in classes with css. But you can also set your custom classes and markup (useful if you use some framework like Bootstrap, Skeleton or others)
Please check the documentation (still draft) and ask any other questions you have.

All this is kind of temporary, in some future version I'll implement more flexible custom post templating.
Reply
Hello,
I am using NM in Czech without problems. Thanks.
Just one question:
Is it possible to  predefine tags in Post Settings? It will be better for me, if user could select tag from predefined list.
Thanks for answer
Marlib
Reply
Hello
first of all... thank you for the amazing NM.
now to the question... is it possible to add new fields to the post? actually we have one for the title, the thumbnail/image and the content, but i need more fields to put extra data.
thanks for the answer
Reply
(2016-05-25, 02:00:48)marlib Wrote: Is it possible to  predefine tags in Post Settings? It will be better for me, if user could select tag from predefined list.
Thanks for answer

No, it's not currently possible.

Do you mean something like having tags with checkboxes? Like:
[x] books
[ ] music
[ ] games
Reply
(2016-05-28, 07:05:48)Inugami Wrote: first of all... thank you for the amazing NM.
now to the question... is it possible to add new fields to the post? actually we have one for the title, the thumbnail/image and the content, but i need more fields to put extra data.
thanks for the answer

No, it's not currently possible.
It's in the roadmap #225, but not in the short term, sorry. I have to refactor some stuff before doing that and I'm going slowly (lack of free time)

I suggest you use the I18N Special Pages plugin instead of NM.

Anyway, what kind of extra data do you need?
Reply
(2016-05-29, 18:52:29)Carlos Wrote:
(2016-05-25, 02:00:48)marlib Wrote: Is it possible to  predefine tags in Post Settings? It will be better for me, if user could select tag from predefined list.
Thanks for answer

No, it's not currently possible.

Do you mean something like having tags with checkboxes? Like:
[x] books
[ ] music
[ ] games

Yes, exact this way.
Can I predefine it in php? Could you take a hint, please?
Reply
(2015-10-20, 04:00:22)Carlos Wrote: If you need to have several separate blog/news instances with News Manager you can use this -kludgey- solution, at least until multi-section is supported by the plugin.

I've made three clones based on NM version 3.2.2. Each one has its own admin panel and settings and has to be be assigned to a different GS page.

Download: news_manager_clones_1-2-3_3.2.2.zip (258K)

Installation: Unzip and upload the clones you need (news_manager_cloneX.php and news_manager_cloneX/* for each one) to the plugins/ folder, and activate-

Notes:
- sidebar/template functions are prefixed by nmclone1_, nmclone2_ or nmclone3_ (instead of nm_) - e.g. nmclone1_list_recent() to list clone1's recent posts.
- gsconfig settings are NMclone1SAVEAUTHOR (instead of NMSAVEAUTHOR), etc.
- css styles, however, are the normal .nm_post, etc.
- each one has its own language file (so you can edit them to change texts like "News Manager clone 1" to something nicer)
- post XML files are stored in /data/nmclone1_posts/ , etc.
Great, its exactly, what I searched. I will use it for administration my main page of the web.
Reply
I have a little conflict.

I'm testing this plugin on a demo site. I added 4 posts test.
I' m using this code into component to add the social share:

<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode(nm_post_url(false)); ?>">

Each different post share the same image and text. The image is one different post and the text is another post (image and text aren't the same post!).

link

Thanks for help.
Reply
You may need to add opengraph meta tags og:image and og:description to your template's head section.
Check an example: http://get-simple.info/forums/showthread...5#pid49505

PS I would suggest you use your own texts for your demo sites instead of pasting content from my personal site. A useful site for this: http://randomtextgenerator.com/
Reply
Hi,

I'm sorry!!!

I already changed the post text.

Later I'll mod my meta tags.

Thank you very much to your help.!

EDIT:

I delete all posts and create 3 new posts with different text and images.
I added the meta property but I got the same image and old text!!!

I delete many times all cache from gs and browser but I got the same problem!

link
Reply
It may be facebook's own cache, not yours...

Anyway, I hadn't noticed you haven't fixed the canonical url:

In your template you have to change get_header() by get_header(false) to remove it, or else generate a proper canonical url with one of these:
http://get-simple.info/forums/showthread...5#pid54725
or http://get-simple.info/forums/showthread...5#pid54785

Also, I suppose it would be convenient to add another open graph meta for the URL, like:
Code:
<meta property="og:url" content="<?php nm_post_url() or get_page_url(); ?>">
Reply
Solved!

I had add the changes above but change folder name to my website test too, so now it is working well!

Muchas gracias, Carlos!
Reply
News Manager 3.3.1 released

- prevents ckeditor caching issues (bad icons, etc.) when upgrading from GS 3.3.8 or older (ckeditor 3) to GS 3.3.10 or later (ckeditor 4+) - added support for GSCKETSTAMP setting
- updated all language locales to prevent issues (with month names) on Windows hosts/local testing environments
- fix errors when saving normal pages (with debug mode enabled) before first visit to NM admin panel
- minor fix: proper GS version check when generating Sitemap
Reply
(2016-06-10, 00:22:53)Carlos Wrote: News Manager 3.3.1 released

- prevents ckeditor caching issues (bad icons, etc.) when upgrading from GS 3.3.8 or older (ckeditor 3) to GS 3.3.10 or later (ckeditor 4+) - added support for GSCKETSTAMP setting
- updated all language locales to prevent issues (with month names) on Windows hosts/local testing environments
- fix errors when saving normal pages (with debug mode enabled) before first visit to NM admin panel
- minor fix: proper GS version check when generating Sitemap

Trying to download 3.3.1 and getting a virus warning from defender....

Gene
Reply
Must be a false positive.
Do you have logs or something from your anti-virus software?
Does it happen with other plugins, or older versions of NM?
Reply
Hi
I'm trying to change the order of the elements in the post but I can't find the file. First, i think it was in the template folder but apparently it wasn't. By default, all the elements are one below the other; what I want is put the image to the side (left or right) of the content of the post. Like GRILL TEMPLATE
Reply
(2016-06-20, 09:33:04)Inugami Wrote: Hi
I'm trying to change the order of the elements in the post but I can't find the file. First, i think it was in the template folder but apparently it wasn't. By default, all the elements are one below the other; what I want is put the image to the side (left or right) of the content of the post. Like GRILL TEMPLATE

It's just done with css. If you are talking about this page: http://timbowgs.bplaced.net/grill/index.php?id=blog
Code:
#blog .nm_post_image img {
   width: 40%;
   height: auto;
   float: right;
   margin: 0 0 10px 10px;
}
The #blog selector may not apply on your site. It's because the page has the slug 'blog'
Reply
I am very happy with your great plugin, but of course I got questions.

I am creating tag  pages and of course the posts are listed by the date of publication, but in my application they really want to be alphabetized - http://boundary.idgenweb.org/obituary-index/ (edited link)

This page is created with this code:
<?php nmclone1_list_recent_by_tag('obits-a', 999); ?>

Is is possible to run the posts thru a loop or something to sort them alphabetically?

Thanks in advance for any help
Reply
at the bottom of your code looks like this
Code:
                <script src="http://boundary.idgenweb.org/theme/Grill-Boundary/js/vendor/jquery-1.11.0.min.js"></script>
        <script src="http://boundary.idgenweb.org/theme/Grill-Boundary/js/plugins.js"></script>
        <script src="http://boundary.idgenweb.org/theme/Grill-Boundary/js/main.js"></script>

    </body>
</html>jquery-1.11.0.min.js"></script>
        <script src="http://boundary.idgenweb.org/theme/Grill-Boundary/js/plugins.js"></script>
        <script src="http://boundary.idgenweb.org/theme/Grill-Boundary/js/main.js"></script>

    </body>
</html>
Reply




Users browsing this thread: 1 Guest(s)