1
technigrafa
Content module

The "Content" module is a GREAT content module:
Content Module

I only ask one thing: Is there any way to make it show menu sub items in the same way as other modules(but behind the scene so the DHTML menu still functions)? I am using the sitemap module and it does not recognize any of my content pages from this module.

Thanks!

2
JMorris
Re: Content module
  • 2005/9/28 0:35

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


You can define the following in Content's xoop_version.php and it will give you sublinks that will register in the sitemap module. Adjust the names and URLs to suite, of course.

// Menu/Sub Menu
$modversion['sub'][1]['name'] = "Page Two";
$modversion['sub'][1]['url'] = "http://mysite.com/page2.html";

$modversion['sub'][2]['name'] = "Page Three";
$modversion['sub'][2]['url'] = "http://mysite.com/page3.html";


Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
technigrafa
Re: Content module

Thanks! I will use this for now. Anyone know how to make this happen automatically? We will probably start using this content module for clients and they will not be able to edit files to make their site map show up properly.

Content's xoops_version.php file handles sub pages this way:

$result $xoopsDB->query("SELECT storyid, title, homepage, submenu FROM ".$xoopsDB->prefix("content")." WHERE homepage='0' AND submenu='1'");
$i 1;

while (list(
$storyid$title) = $xoopsDB->fetchRow($result))
{
    
$modversion['sub'][$i]['name'] = $title;
    
$modversion['sub'][$i]['url'] = "index.php?id=".$storyid."";
    
$i++;
}

Login

Who's Online

349 user(s) are online (263 user(s) are browsing Support Forums)


Members: 0


Guests: 349


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