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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
How to insert new info without removing menus to the right?
-
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Mar 06, 2007
- Posts: 141
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) -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
Should be:
Code
$GLOBALS['ModName']
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Mar 06, 2007
- Posts: 141
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 -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Mar 06, 2007
- Posts: 141
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 -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
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... -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Mar 06, 2007
- Posts: 141
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 -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
Whatever.
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
