Skip to Content Skip to Menu

stop mamblogs from showing in latest news

  • dsisaacs
  • dsisaacs
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
16 years 11 months ago #52440 by dsisaacs
I am new to CB and am trying to install and configure a demo site. After I installed mamblog I entered a sample blog and was surprised to find it listed as a "latest News" item on the front page.
I searched these forums and found something about changing the parameter in the latest news module but no details.
I figured it out, so I am sharing the fix here.
I am using a clean install of Joomla 1.0.12
1.open the section manager in admin and note the sectionID of the mamblog section. For me it was 4.
2. edit the /modules/mod_latestnews.php file
[code:1]edit line 107
. "\n WHERE ( a.state = 1 AND a.sectionid > 0 )"
change to read
. "\n WHERE ( a.state = 1 AND a.sectionid > 0 AND a.sectionid != 4 )"[/code:1]
where the mamblog sectionID was 4 as shown in the section manager
!= means does not equal
This removed the blog entries from being displayed in the latest news list.

Post edited by: dsisaacs, at: 2007/12/14 08:01

Post edited by: dsisaacs, at: 2007/12/14 08:02

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum