1
gawel
News 1.56 - title, keyword, description - why on main page?
  • 2008/6/2 10:13

  • gawel

  • Just popping in

  • Posts: 28

  • Since: 2004/2/2 2


After installing a news 1.56 module I noticed that information on my main page has changed. News is my home page module and now instead title, keyword, description for my whole site I have information from the last news. How can I fixed this to have this informations from properties, and only if I go into one of the articles in news this information will be taken from the news?

2
trabis
Re: News 1.56 - title, keyword, description - why on main page?
  • 2008/6/2 12:57

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Well, you may try this:

edit new/index.php

find this(close to the bottom):

le="color: #000000"><?php /** * Assign page's title */ if($firsttitle!='') { $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($firsttitle) . ' - ' . $myts->htmlSpecialChars($xoopsModule->name())); } else { if($topictitle!='') { $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($topictitle)); } else { $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($xoopsModule->name())); } }


Replace by this

le="color: #000000"><?php /** * Assign page's title */ if($firsttitle!='' && $storytopic!=0) { $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($firsttitle) . ' - ' . $myts->htmlSpecialChars($xoopsModule->name())); } else { if($topictitle!='') { $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($topictitle)); } else { $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($xoopsModule->name())); } }


You could remove that peace of code but, doing this way the news module would present the correct title if you are browsing a category (meaning you are no longer in first page).

3
gawel
Re: News 1.56 - title, keyword, description - why on main page?
  • 2008/6/2 15:12

  • gawel

  • Just popping in

  • Posts: 28

  • Since: 2004/2/2 2


It works very good, thank you for help.