Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager Title plugin
#1
This plugin tries to add the title of the current News Manager post to the page <title> tag.

It doesn't require editing template files. It can be an easy way to enhance SEO for sites using NM.

Tested with Innovation, Cardinal, GSkeleton themes. It should work with most standard templates (as long as the <title> tag is located before <?php get_header(); ?>)

It may not work (but shouldn't break anything) with some plugin (maybe some of the I18N family).

Download News Manager Title (Extend) / GitHub

Usage:

Upload news_manager_title.php to your plugins folder.
Make sure it is activated.

By default NM post pages will have then:

Code:
<title>Post title - Page title ...</title>

You can change this structure by adding this to your gsconfig.php file:
PHP Code:
# Insert post title into/instead of page title. 1 = before, 2 = after, 0 = replace. Default 1.
#define("NMTPOSITION",1);

# Text to be used as separator between page title and post title. Default " - "
#define("NMTSEPARATOR"," - "); 

Examples:

If you don't want the page title, only the post title:
PHP Code:
define("NMTPOSITION",0); 

If you want it like this:
Code:
<title>Page title: Post title ...</title>
use this:
PHP Code:
define("NMTPOSITION",2);
define("NMTSEPARATOR",": "); 


I've used this couple settings, but I may change them (or add another...) in a future release.
Reply


Messages In This Thread
News Manager Title plugin - by Carlos - 2013-01-02, 02:59:19
RE: News Manager Title - by PiN - 2013-01-04, 02:07:01
RE: News Manager Title - by Carlos - 2013-01-04, 07:37:29
RE: News Manager Title - by PiN - 2013-01-04, 17:47:39
RE: News Manager Title - by Carlos - 2013-01-04, 18:27:19
RE: News Manager Title - by PiN - 2013-01-04, 21:01:27
RE: News Manager Title - by Carlos - 2013-01-04, 23:40:43
RE: News Manager Title plugin - by Timbow - 2013-02-12, 04:29:22
RE: News Manager Title plugin - by Carlos - 2013-02-12, 05:43:43
RE: News Manager Title plugin - by Timbow - 2013-02-12, 07:52:46
RE: News Manager Title plugin - by shawn_a - 2013-02-12, 06:03:26
RE: News Manager Title plugin - by Carlos - 2013-02-12, 06:20:47
RE: News Manager Title plugin - by Carlos - 2013-02-13, 06:23:38
RE: News Manager Title plugin - by datiswous - 2013-03-03, 07:53:28
RE: News Manager Title plugin - by Carlos - 2013-03-03, 08:13:04
RE: News Manager Title plugin - by datiswous - 2013-03-03, 08:50:00
RE: News Manager Title plugin - by Carlos - 2013-11-23, 21:29:02
RE: News Manager Title plugin - by TeeJay - 2013-11-24, 04:10:15
RE: News Manager Title plugin - by Carlos - 2013-11-24, 06:40:45



Users browsing this thread: 1 Guest(s)