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
Nukewrapper and Validation
-
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
Is there anyway to get NW to validate? All im looking for is HTML 4.01 Transitional. -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
NW just wraps your supplied pages in PostNuke. PostNuke itself currently doesn't validate, that is being worked on by the PN developers. It's up to users to make their wrapped pages valid.
However, on one point it wouldn't validate; NW doesn't strip the HEAD of the included page, since it may contain Javascript or CSS links, or JS and CSS code. Making a generic solution where it injects the entire content of the included page's Head into PN's Head would probably break things in unpredicted ways, so I haven't done it, and since browsers handle it fine, haven't thought it a problem. But it could be done. Currently with the supplied modified header.php file for 'old' themes, or modified Templates for Xanthia, it strips the Metadata of the included page and puts it in PostNuke. If there's a demand, I could look into it when I have time.
PN 0.76 will produce much better code (at least for templated core modules, older modules probably won't), moving towards PN 0.8. -
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
The validation was was with the frame code itself. So it was specific to the nukewrapper module. I forget what the warnings were as im not using it now. But i know one of the things had something to do with a ilayer or something like that. -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
Oh right, I left the iLayer in there. Completely redundant now. It was Netscape's proposal for Layers, it wasn't accepted by the W3C, and IE's iFrames became the defacto standard. Netscape6/Mozilla dropped it. It serves no useful purpose anymore, it was an old cross-browser convention to include both. Easily removed.
Also I left out the src attribute deliberately. I could change it slightly, which hopefully will fix that.
Actually I'mnot sure what their position is in iFrames, I understand the W3C don't like them much, don't think they're in the XHTML spec, but they're too damn useful to get rid of. One of the issues is that content in Frames isn't Accessible to screenreaders for the blind.
One of the reason I wrote NukeWrapper was to get away from iframes used in all other implementations like PostWrap. But I put them in later as people still wanted to access external sites, for which a frame is necessary. -
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
Ok, i will look into that. Thanks.
Also, quick question about targeting the frame. Lets say i have a regular menu on my PN site. Whats the best way to reference the frame without reloading the page? I have a client that for some reason wants frames for a particular module. Its the UpDownload moduel to be exact. Anyway, i made a block that lists all the download categories and would like to be able to reference the nukewrapper frame without it actually reloading. Also, is there a better way to do it besides page.php?URL=http://domain.com/index.php?module=UpDownload, etc? I tried setting a URL key to shorten that up a little to page.php?DocManager??module=UpDownload, but then the permissions for the module are messed up.
Sry to mix posts, just thought i woudl ask real quick. -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
If you seaarch for ilayer or iframe in the script, you can try replacing the code yourself if you're up for it:
Code
<noscript><div align="center"><strong>Please enable Javascript to see the page.</strong></div></noscript>
<iframe id="ContentFrame" name="ContentFrame" scrolling="auto" frameborder="no"
<?php echo ((!empty($Request['url2']) or !$AutoResize or !$ExternalUrl) ? "src=\"$URLwrap\" " : 'src="" ') ?>
onLoad="window.setTimeout('iFrameHeight(this)',50);"
style="width: 100%; height: <?PHP echo $FrameHeight ?>px;" marginwidth="0" marginheight="0">
</iframe>
One of the things the validator might also complain about is the use of < b > and < i >instead of the new < strong > and tags. Personally I like B and I, they're pretty straightforward and intuitive.
- Moderated by:
- Support
