Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Site cannot point to module as Index page
  • Posted: 22.11.2005, 12:22
     
    badapple
    rank:
    Freshman Freshman
    registered:
     November 2003
    Status:
    offline
    last visit:
    22.11.05
    Posts:
    10
    So I developed my own module follow the Template Module and everythings works fine down to the blocks. However I cannot point to it as the Index page on my site ( The way most of you point to News Module on the index page )

    I found that the difference lies in what sorta files you have in the module for Post Nuke to be able to use it as index. Of all the modules that PostNuke allow as index there are files called 'index.php' and so on.

    Unfortunately, mu module have all those files the same as the Template Modules, and lacking the 'index.php' file. Now after putting in the index.php file, I can still NOT able to point PostNuke to it as index, it always have the error "cannot find main function ..etc" however, I can link to the modules using block with command [ModuleName] just like any other modules.

    My question : What am I doing wrong here, what do I need to enbale PostNuke to it for the front page.

    Thank you for your time
  • Posted: 22.11.2005, 15:50
     
    badapple
    rank:
    Freshman Freshman
    registered:
     November 2003
    Status:
    offline
    last visit:
    22.11.05
    Posts:
    10
    NEVER MIND

    Problem solved, the trick is to have the pnuser.php file having function module_user_main() . That is all PostNuke was looking for !

    Cheers.
  • Posted: 22.11.2005, 22:15
     
    cannibus
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    20.09.08
    Posts:
    401
    well if ther person is running 760+ u can choose which function u want to call for index and u can pass a argument too



    very cool in my books

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula