2013-07-10, 23:12:34
(2013-07-10, 05:53:21)Nighteyes Wrote: the News Manager replace automatically my content.
I want to show the News in a extra DIV box on the right side.
On the left side i want to show the normally page content.
Can anyone help me?
A possible workaround for this (I've seen some site using this method) is creating 2 pages: one for your main news page, and another for the posts.
You would select the second one in News Manager settings as "Page to display posts".
The first one would display its content, not being replaced.
The downside is that the main news page and news posts have different slugs.
Another way I can think of (without having to create that secondary page) is: in your template, replace
Code:
<?php get_page_content(); ?>
Code:
<?php if (return_page_slug()!=$NMPAGEURL and nm_post_title('','',false)) get_page_content(); else getPageContent($NMPAGEURL); ?>
Notes:
- This works with News Manager 2.3.0 and later (not with 2.2.x or older)
- It's only for very simple news sites - you don't have archives, tag pages, etc. (If you need those, the script would have to be a bit different/longer)