Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager replace content
#2
(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(); ?>
by:
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)
Reply


Messages In This Thread
News Manager replace content - by Nighteyes - 2013-07-10, 05:53:21
RE: News Manager replace content - by Carlos - 2013-07-10, 23:12:34
RE: News Manager replace content - by lotova - 2016-12-27, 19:00:43
RE: News Manager replace content - by Carlos - 2016-12-28, 02:03:39
RE: News Manager replace content - by lotova - 2016-12-28, 18:02:30



Users browsing this thread: 1 Guest(s)