Fork me on GitHub

How to insert new info without removing menus to the right?  Bottom

  • Hi,

    I'm afraid to post the most stupid question EVER, but I try anyhow. Since I'm fairly new on both PostNuke, and my knowledge of programming isn't that good, I hope someone can help me with a quick solution on this matter.
    I'm running a Linux box with PostNuke 0.726, and I have installed Photoshare and Pagesetter. I would like to view my Pagesetter pages inside my page without removing my menus on the right side. I believe this is not a Pagesetter issue, but would be the same for lots of other information too.


    How can I do this the easiest way?

    Thankful for any help on this.

    Cheers
  • Whether or not you blocks show on the right is dependant on your theme. Many themes check a var, $GLOBALS['index'], to see if the user is viewing the home/news page and displays the right blocks accordingly. You could update the logic in the themefooter() portion of your theme.php so the right blocks also show when these modules are loaded:

    Code

    if (GLOBALS['index'] == 1 || $GLOBALS['Modname'] == 'Photoshare' || $GLOBALS['Modname'] == 'Pagesetter') {
        blocks('right');
    }

    Check the module names in your Admin->Modules as I'm not positive what they actually are...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • nate_02631

    Whether or not you blocks show on the right is dependant on your theme. Many themes check a var, $GLOBALS['index'], to see if the user is viewing the home/news page and displays the right blocks accordingly. You could update the logic in the themefooter() portion of your theme.php so the right blocks also show when these modules are loaded:

    Code

    if (GLOBALS['index'] == 1 || $GLOBALS['Modname'] == 'Photoshare' || $GLOBALS['Modname'] == 'Pagesetter') {
        blocks('right');
    }

    Check the module names in your Admin->Modules as I'm not positive what they actually are...


    im busted!
    $GLOBALS['Modname'] is always empty in the themefooter function... any chance you tell me how to get the name of the "current" mod on another way?!

    weird

    Simon
    PS: .726 pnRender RC2 Pagesetter4 normal-theme (no AT no XTE theme)
  • Should be:

    Code

    $GLOBALS['ModName']


    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • nate_02631

    Should be:

    Code

    $GLOBALS['ModName']


    does not work too. tonight i did check all possibilities...

    its always empty....

    (modname, Modname, ModName, ...)

    Simon
  • Sorry, that's what it is - dunno what else to tell ya except the above $GLOBALS['index'] is missing a dollar sign... You're echoing the variable, I assume, to confirm that it's empty...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • nate_02631

    Sorry, that's what it is - dunno what else to tell ya except the above $GLOBALS['index'] is missing a dollar sign... You're echoing the variable, I assume, to confirm that it's empty...


    i wouldnt say that its empty if i hadnt checked this before. of course i did echo the var before writing. ;)

    its really empty. but i did not talk about 'index' i did talk about ModName/modname/Modname .. however i did solve this issue by using

    Quote


    pnVarCleanFromInput('module') == 'Pagesetter'


    regards Simon
    PS: $GLOBALS['ModName'] does !NOT! work
  • simonlange

    PS: $GLOBALS['ModName'] does !NOT! work

    I think it would be more accurate to say it does not work for *you* in *this* situation... ;)

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • nate_02631

    simonlange

    PS: $GLOBALS['ModName'] does !NOT! work

    I think it would be more accurate to say it does not work for *you* in *this* situation... ;)


    ack, when "you" is in plural terms. ;)

    however that "global" variable is empty... any more clever suggestions? :twisted:

    grin
    Simon
  • simonlange

    however that "global" variable is empty... any more clever suggestions?

    Only that you work on your troubleshooting skills a bit. It is likely that the Pagesetter module does not return the proper module name (or any) to the $GLOBALS array. But if you were to echo that variable somewhere in your theme and skip around the core modules on your site, I'm quite certain you would see the module names echoed there.

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • the "skills" dont have to be improved anymore. they are good enuf. if you had read more concentrated you had read that i already did echo the var IN the theme (since this is the place i tried to use that var). since it does not work that way and it was your first suggestion when the threadstarter had a similar problem (he used Pagesetter too), i just told you that it was empty. maybe you should work on your diplomatic skills. :D

    evil grin

    Simon
  • What theme are you using?

    --
    Home Page | Find on Facebook | Follow on Twitter
  • 0 users

This list is based on users active over the last 60 minutes.