Are you using the Header_Footer module?
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. 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
pnRender module-centric stylesheets?
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
The Header_Footer module is a core module, and it's a very good idea to use it if you have a classic theme. Not that I've used it with an AutoTheme...
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
Might just be .760. I honestly can't remember as I upgraded all of my sites to .760 months ago...
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Developer
- Registered: Feb 23, 2005
- Last visit: May 09, 2010
- Posts: 399
-
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
It's a feature of the upcoming PN 0.76, the Header_Footer module doesn't exist in PN 0.75. The point is to have templated Header/Footer output for legacy themes.
What you can do for styling in general is use the additional_header array in the module code, eg
Code
global $additional_header, $bgcolor1, $bgcolor2;
$additional_header[] = '<style type="text/css">
.AlarStyle { color: '.$bgcolor2.'; }
</style>
';
It puts the style in the Head section.
For the Option list, build it in the module code as an Array, and use Section or Foreach to cycle over it in the template.
Prebuilt functions like html_options have limitations. -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
@msandersen - Ok... that seems logical enough. I wonder if I could just fread the CSS file into a $var and then use $additional_header[] = $var; ... I'd like to avoid putting the sheet info into the mod-code directly if possible since people are inherently going to look in pnstyle/style.css for the sheet.
@denisrf - Yes, an AutoTheme.
Since pnRender is all about templating and giving the end-user more options and control over the layout, one would think that this issue would have been addressed across the board.
seems a bit proprietary...:| -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
alarconcepts
@msandersen - Ok... that seems logical enough. I wonder if I could just fread the CSS file into a $var and then use $additional_header[] = $var; ... I'd like to avoid putting the sheet info into the mod-code directly if possible since people are inherently going to look in pnstyle/style.css for the sheet.
Of course, there's a bit of a caveat that way too... (eg) won't correctly parse when placed in a CSS file... so I see what you mean about putting it into the mod-code. Perhaps reading the file in and doing a str_replace could solve it... -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
I'd just use the pnRender include file plugin / thing (I know what I'm talking about, even if you don't), to include the stylesheets I want - though apparently that didnt work for you?
Quote
Ok, so a regular pnRender file include doesn't do the trick
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
ah, well you'd need
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
I tried the $additional_header method to no avail as well.
I appreciate the help everyone...
...was hoping for an "approved" method, but it seems that's not going to be the case. I want to avoid doing anything hacky so I think I'll have to live with the inline styles... -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
The Header_Footer module is only included in PostNuke .760 not in PostNuke .750.
This is a change in the .760 release : all NON XANTHIA (legacy) themes use the footer_page.htm template !!!
So you can use this template to include what you want. For instance you can remove the tag in this template and replace it with or or to use another editor (of course the corresponding module should be installed and activated) with non xanthia themes.
And yes there was a typo in my post because it is modules/Header_Footer/pntemplates/header_footer_page.htm (slashes not backslashes, windows fault !!)
--
Visit my live reef aquarium.
My Amazon wish list.
- Moderated by:
- Support
