News Manager (updated) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: News Manager (updated) (/showthread.php?tid=3972) |
RE: News Manager (updated) - Carlos - 2016-12-04 By the way, a similar layout to the one you posted for NM Addons, can be currently generated by NM, with custom settings: Code: showFields image,title,date,content RE: News Manager (updated) - Artur - 2016-12-04 (2016-12-04, 00:55:13)Carlos Wrote: By the way, a similar layout to the one you posted for NM Addons, can be currently generated by NM, with custom settings:Nice to know that, but after clicking "Read more", post is also showed in grid, not in "normal" full-width. RE: News Manager (updated) - Carlos - 2016-12-04 Add this at the end: Code: single classPost "" Or change the classPost col-md-6 line by:Code: main classPost col-md-6 RE: News Manager (updated) - Artur - 2016-12-04 (2016-12-04, 07:36:11)Carlos Wrote: Add this at the end: Thanks, it works! I didn't even know I am able to do so many just using custom settings. Is there any cheatsheet on your website with that "commands" I can use? I've been looking for them and haven't found yet. RE: News Manager (updated) - Artur - 2016-12-09 Another question? Is it possible to define my very own "news" build, like with nm_display_recent? I mean, I'd like to have featured image and title in one div. RE: News Manager (updated) - Carlos - 2016-12-09 Sorry but all info for custom settings etc is scattered across the documentation for versions 3.0, 3.1, 3.2 ... As for your last question, it will be possible when custom post rendering is available (for 3.5 I hope) RE: News Manager (updated) - bensayers - 2016-12-13 Hello Carlos, I've been tinkering with this and the addon plugin for the past week or so and I can't for the life of me get the Fancy URLs to work correctly. Hate to bug you but I've read every post on this message board several times and dug through your documentation website over and over... My main blog page looks OK and the single post URLs are OK but the archives, tags and pagination ( < 1 2 3 4 >) do not work. I get "The requested post does not exist". 1) My Custom Permalink Structure is as follows. I would prefer to use %parents%/%slug%/ but I see you don't support that yet, can I up-vote that for a future release, please?): Code: %parent%/%slug%/ 2) I enabled NMNOPARAMPOST in gsconfig.php to remove /post/ from the urls: Code: define('NMNOPARAMPOST',true); 3) The fancy URLs are as follows in my .htaccess: Code: <IfModule mod_rewrite.c> 4) I have checked the box for "Use Fancy URLs for posts, archives, etc." in NM. The auto-generated .htaccess option doesn't work for me, it says, "Failed to generate a .htaccess sample for the current site settings". RE: News Manager (updated) - Carlos - 2016-12-13 Try moving the first rewriterule in the News Manager block, to the end of the block. RE: News Manager (updated) - bensayers - 2016-12-13 (2016-12-13, 17:15:53)Carlos Wrote: Try moving the first rewriterule in the News Manager block, to the end of the block. OK I did that (see below) but I still get this notification on page 2 of my blog when using the < 1 2 3 4 > pagination: The requested post does not exist. Code: # News Manager RE: News Manager (updated) - morvy - 2016-12-14 I only have this in .htaccess file and it works fine for me: Code: # News Manager: RE: News Manager (updated) - Carlos - 2016-12-14 @bensayers You only get the error page with page 2, 3..., but not with archive and tag pages? If it fails with all but single posts, I don't know what could be happening. Can you make sure you updated the .htaccess, didn't rename it, didn't change permissions or something...? @morvy The two extra rewriterules were added in recent versions - actually required only if you enable tag pagination and tag archives. RE: News Manager (updated) - bensayers - 2016-12-14 (2016-12-14, 09:03:24)Carlos Wrote: You only get the error page with page 2, 3..., but not with archive and tag pages? No, I get it with anything that isn't the main blog page or a single blog post. I am updating the .htaccess file in the root of the site, haven't changed the name or permissions. Having this exact same issue with two sites I'm currently in development with. RE: News Manager (updated) - Carlos - 2016-12-14 Are you using any other NM gsconfig settings like NMPARAMPAGE, besides NMNOPARAMPOST? What are URLs for secondary pages (2, 3, ...) like? RE: News Manager (updated) - bensayers - 2016-12-15 (2016-12-14, 16:49:10)Carlos Wrote: Are you using any other NM gsconfig settings like NMPARAMPAGE, besides NMNOPARAMPOST? None of these URLs work for me: Example URL for pagination: http://domain-name.com/blog/2/ Example URL for tag: http://domain-name.com/blog/test%20tag/ Example URL for archive: http://domain-name.com/blog/201612/ But these work just fine: Main blog page: http://domain-name.com/blog/ Single post page: http://domain-name.com/blog/test-post/ Here are my NM custom settings for one of the sites: Code: templateFile template_blog.php Here are my gsconfig.php definitions for NM for the same site: Code: define('NMNOPARAMPOST',true); RE: News Manager (updated) - Carlos - 2016-12-15 Remove those definitions for NMPARAMTAG, NMPARAMPAGE and NMPARAMARCHIVE and it should work ok (with the last rewriterules you posted). However, the urls will be example.com/blog/tag/this-is-a-tag , example.com/blog/page/2 , example.com/blog/archive/201612 ... You can remove the prefix for single posts, but not for the other news page views. Those NMPARAM* definitions let you use different prefixes (e.g. "label" instead of "tag", etc.) but should not remove them. I will fix the plugin so that it doesn't allow setting them to true, empty string or things like that. I had thought about adding a NMNOPARAMTAG definition so that you can remove the "tag" prefix, but it couldn't be used if NMNOPARAMPOST was enabled. This is not possible because the plugin couldn't know if example.com/blog/whatsthis refers to a post with slug 'whatsthis' or to a 'whatsthis' tag. RE: News Manager (updated) - bensayers - 2016-12-15 (2016-12-15, 01:52:51)Carlos Wrote: Remove those definitions for NMPARAMTAG, NMPARAMPAGE and NMPARAMARCHIVE and it should work ok (with the last rewriterules you posted). Yes, that worked! Thank you for all of your help and the additional information about the plugin. I'm still learning how it works so I'm sure I'll have more questions but at least I can finish these sites now =) I'm definitely looking forward to your future releases, most importantly the template options. Thanks Carlos! RE: News Manager (updated) - Carlos - 2016-12-19 (2016-12-13, 11:48:05)bensayers Wrote: I would prefer to use %parents%/%slug%/ but I see you don't support that yet, can I up-vote that for a future release, please?): Please try this patch. Edit news_manager/inc/functions.php, find this line (191 in version 3.4): Code: $url = find_url($NMPAGEURL, nm_get_parent()); Code: $url = str_replace('%parents%/', '', $url); RE: News Manager (updated) - bensayers - 2016-12-21 (2016-12-19, 22:24:58)Carlos Wrote:(2016-12-13, 11:48:05)bensayers Wrote: I would prefer to use %parents%/%slug%/ but I see you don't support that yet, can I up-vote that for a future release, please?): Thanks Carlos, that seems to do the trick. RE: News Manager (updated) - KonnstantyCh - 2016-12-21 I've got another question. I would like to be able to edit post template in news manager (for example to change order of items - to have tags before date and after titile, to add some external widgets to posts and so on) - how can I do so? I'll be very grateful for your answer. RE: News Manager (updated) - Carlos - 2016-12-22 You can currently reorder the fields with custom setting showFields (see docs for NM 3.0).Custom post templating (probably with GS components) should be available in NM 3.5. I'll post a beta in this thread when I have something working. RE: News Manager (updated) - Inugami - 2016-12-23 (2016-06-20, 09:51:12)Timbow Wrote:(2016-06-20, 09:33:04)Inugami Wrote: Hi and where should i put this class???? in which file must add it????? RE: News Manager (updated) - Timbow - 2016-12-23 Most GetSimple themes have <body id="slug"> so you can style a single page and News Manager outputs with classes begining .nm_ so that is done for you already. The css you put wherever you normally put your css, so in an existing css file, or a new one, or in the <head> if you need to. RE: News Manager (updated) - Inugami - 2016-12-24 (2016-12-23, 20:11:47)Timbow Wrote: Most GetSimple themes have <body id="slug"> so you can style a single page and News Manager outputs with classes begining .nm_ so that is done for you already. Thanks... i figured it out but i appreciate the help... i didn't use the slug but I 'm gonna use it anyway to avoid problems in other pages RE: News Manager (updated) - Xzerod - 2017-01-10 Background: I was looking for a leightweight CMS Tool (not that oversized Mainstream Solutions) and came across this Site. This SimplyCMS fits almost perfect for my project - Thanks to the Project - Team! Progress: With your wiki tutorials, i've finished a onepage/bs - theme, where every Site Content is a section and everything works well Now i'm trying to integrate your well done News Manager Plugin to my site. I've downloaded the latest version, installed it with your guide and made some 'Lorem Ipsum' - News. In Settings i selected a content site to display the news but nothing happens. Maybe the problem comes with my template customisations so i have to ask you honestly to give me some advice or example code. Unfortunately i don't understand how to use the 'nm_' codes this way. The Sites are loeaded to template like this: <?php foreach (menu_data() as $page) { ?> <div id="<?php echo $page['slug']; ?>"> <?php getPageContent($page['slug']); ?> </div> <?php } ?> thanks RE: News Manager (updated) - Carlos - 2017-01-12 Unless you're using a "special" permalink structure, you should be able to display the news page by clicking on the "#" link of that page in the page management section. If you need to display a list of recent posts or something in your one-page, I can think of a couple ways to do it. |