News Manager 2.5 beta 15 attached to this post.
New custom settings:
- imageclass
- imagesize
- excerptlength
- showfields (@D.O., @ochsadad)
- componentbottompost
- componentafterpost
imageclass
Lets you set a custom class for post images.
For example, if you use Bootstrap or Skeleton (or nickpack/Ribs) you can add class "scale-with-grid" to make post images responsive:
imagesize
Lets you customize width, height and cropping of post images overriding your normal settings.
Parameters separated by commas and/or spaces; 0 or full for original image.
(it's just a shorthand for imagewidth, imageheight and imagecrop)
For example, if you want full images in single post view, and cropped 90x90 images in archives:
excerptlength
Lets you customize the excerpt length, overriding the one defined in NM settings. Can be used to e.g. have shorter excerpts in archives, etc.
showfields
Allows simple customization of post layout. You can specify what fields to display in the order you wish.
Fields can be separated by comma and/or blanks. Default is title,date,author,image,content,tags
(author and image are not used by default - only displayed if they are enabled)
componentbottompost
You can specify a GS component to be rendered in the bottom of the post (before its container's closing tag - div by default)
componentafterpost
You can specify a GS component to be displayed after the post
These last two component-related settings can be useful for e.g. integrating external comment support.
This is how I'm doing to have disqus comments in my site's NM blog:
- I uploaded and activated the External Commenting plugin.
- I created a component named post-comments with this content:
(news-manager-blog/ is a custom prefix for the post id - use your own preferred one)
- I added this to my Custom Settings:
(only for the single post view)
(For the already existing custom settings in 2.5 betas, see: What was new in beta 13, beta 14)
Please report any issues or bugs you find.
[attachment removed: news_manager-2.5-beta15.zip (Size: 70.92 KB / Downloads: 42) ]
New custom settings:
- imageclass
- imagesize
- excerptlength
- showfields (@D.O., @ochsadad)
- componentbottompost
- componentafterpost
imageclass
Lets you set a custom class for post images.
For example, if you use Bootstrap or Skeleton (or nickpack/Ribs) you can add class "scale-with-grid" to make post images responsive:
Code:
imageclass scale-with-grid
imagesize
Lets you customize width, height and cropping of post images overriding your normal settings.
Parameters separated by commas and/or spaces; 0 or full for original image.
(it's just a shorthand for imagewidth, imageheight and imagecrop)
For example, if you want full images in single post view, and cropped 90x90 images in archives:
Code:
single imagesize full
archive imagesize 90,90,1
excerptlength
Lets you customize the excerpt length, overriding the one defined in NM settings. Can be used to e.g. have shorter excerpts in archives, etc.
showfields
Allows simple customization of post layout. You can specify what fields to display in the order you wish.
Fields can be separated by comma and/or blanks. Default is title,date,author,image,content,tags
(author and image are not used by default - only displayed if they are enabled)
componentbottompost
You can specify a GS component to be rendered in the bottom of the post (before its container's closing tag - div by default)
componentafterpost
You can specify a GS component to be displayed after the post
These last two component-related settings can be useful for e.g. integrating external comment support.
This is how I'm doing to have disqus comments in my site's NM blog:
- I uploaded and activated the External Commenting plugin.
- I created a component named post-comments with this content:
PHP Code:
<?php
get_external_comments(
'news-manager-blog/'.nm_post_slug(0),
nm_post_url(0),
nm_post_title('','',0)
);
?>
- I added this to my Custom Settings:
Code:
single componentafterpost post-comments
(For the already existing custom settings in 2.5 betas, see: What was new in beta 13, beta 14)
Please report any issues or bugs you find.
[attachment removed: news_manager-2.5-beta15.zip (Size: 70.92 KB / Downloads: 42) ]