2013-03-07, 03:43:44
(2013-03-06, 07:14:19)datiswous Wrote: Maybe I just don't get the function of it. What I want is when the newsmanager shows up on a page, don't show the page-title on the page, only the post-title. But on pages not using the pagemanager, the page title is shown. I thought that was the function of the new template-tag (and the plugin).
Now I see both (with dates). If I rule that out (<!-- -->), the titles of pages wouldn't show up on pages without newsmanager.
Both the function nm_post_title and the News Manager Title plugin are meant to be used to insert the post title in the <title> tag (in the <head> section of the template). This is not visible in the page itself, but it is used for SEO purposes (it's what search engines usually show as titles in their results). You can see it in your browser window title.
So what you really need is removing the title (and the date) that you can see in the page... Those are "hardcoded" in your template (functions get_page_title and get_page_date) and News Manager cannot remove them. The plugin inserts its contents using get_page_content (like other blog-type GS plugins).
In the Emerald2 theme you are using, you should remove (or comment out) this:
Code:
<h2 class="title"><?php get_page_title(); ?></h2>
<p class="meta"><span class="date"><?php get_page_date('F jS, Y'); ?></span></p>
But if you only want to remove that in the page used by News Manager, and show it for the rest of the pages, then you have to enclose those two lines in some sort of conditional (if...) statement.
(2013-03-06, 07:14:19)datiswous Wrote: Edit1:
btw, I changed the code to this: <title><?php nm_post_title() or get_page_clean_title(); ?> - <?php get_site_name(); ?> </title> , but no change when I see the pages.
It seems you have defined your site name as " " (a space character). So get_site_name does not render anything. This is in the <title> tag, as I said above.
(If you also want to change this, tell me examples of how you would like it to be.)
(2013-03-06, 07:14:19)datiswous Wrote: Edit2:
Hey Carlos, maybe you can add links to all the working plugins for newsmanager on both the plugins page and first post in this topic.
Yeah, you're right, I have to update that, and the documentation. One of these days... :-)
In the meantime you can find links to News Manager related info and plugins here:
http://www.cyberiada.org/cnb/news-manager/