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):

/**
 * 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

/**
 * 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.

Login

Who's Online

385 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits