Log in | Register | Lost password

Bottom
multisites and pagesetter
  • Posted: 16.12.2003, 23:27
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    great module with some truly awesome possibilities!

    what i'm trying to do is set up a multisites install of pagesetter, I've only used core modules with multisites before and copying and editing the pntables.php file to the multisite parameters dir was straightforward enough. With pagesetter using a pntable.php file within the pagesetter directory how would you go about having an instance of pntable.php for each domain? Do you need to install multiple instances of pagesetter i.e. pagesetter1,pagesetter2 etc.. and edit the pntables.php in each instance or is there a better way?

    I'll have a go with the above method and update the thread but if i'm way off line could someone let me know - thanks

  • Posted: 16.12.2003, 23:30
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Sorry, but I'm not able to help you with this issue, I have never tried a multi-site installation. But you will probably have some troubles since Pagesetter creates new database tables on the fly.
  • Posted: 17.12.2003, 00:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    That's OK - i've had a go and done it.

    If anyone wants to add pagesetter to their multisites install then this is what i did (you need to have a working multisites install first!)

    1) install pagesetter
    2) copy the nuke_pagesetter tables to domain_nuke_pagesetter as usual
    3) edit the config.php in your parameter directory to:

    $pnconfig['dbtype'] = 'mysql';
    $pnconfig['dbhost'] = 'localhost';
    $pnconfig['dbuname'] = 'username';
    $pnconfig['dbpass'] = 'password';
    $pnconfig['dbname'] = 'database';
    $pnconfig['system'] = '0';
    $pnconfig['prefix'] = 'nuke';
    $pnconfig['prefixpagesetter'] = 'domain_nuke';
    $pnconfig['encoded'] = '0';

    4) I used the 'prefixpagesetter' option so that I wouldn't stuff any other 3rd party modules!
    5) edit the pntables.php and common.php files in the pagesetter module directory and replace all instances of:

    pnConfigGetVar('prefix')

    with:

    pnConfigGetVar('prefixpagesetter')

    6) The dynamic creation of tables is taken care of by the change to common.php
    7) That's it - now everything you do on each domain is only viewable on that domain and you can even use the templates across the domains i.e. any News publications you create on any domain use the same News-full.tpl file.

    Hope that helps someone in the future.

    [Edited on 17/12/2003 by jonjo]
  • Posted: 24.12.2003, 21:10
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    upgraded to v3.0.0 and got errors with smaarty/pnrender set up in multisites - found the fix at:

    http://noc.postnuke.com/forum/forum.php?thread_id=854&forum_id=2

Template courtesy of Designs By Darren.