WebGUI
      Click here to register.
      
YAPC North America 2008


     Report a Bug > WebGUI Bug Tracker

head block positioned incorrectly in template

User elnino
Date 4/15/2008 12:33 am
Severity Fatal (can't continue until this is resolved)
Version WebGUI Stable 7.4.26
Views 100
Rating 0    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
elnino

When displaying the "head blcok" portion of a template (page layout or article, and I suspect others), the "head block" apears in the <body> tag instead of teh <head> tag as the name eludes to.

This creates invalid HTML, but more importantly, when using content profiling for meta tags per wiki: http://www.webgui.org/community-wiki/content-profiling

the metatags are not in the <head> block.

I'm unable to continue with metatags and content profiling.

LN



Back to Top
Rate [
|
]
 
 
elnino

I believe this is in asset/Template.pm where it's dealing with headBlock. It needs to be sent to the style template when outputing head.tags - for proper placemnet of meta tags and html compliancy.



Back to Top
Rate [
|
]
 
 
Graham

There are some conditions where head sections will end up placed inline instead of in the header.  This has to do with how content chunking works.  For most normal pages, they will be in the header. Content included with an AssetProxy is processed after the head block has been sent, so the only choice is to output it inline.

Is this not matching what you are seeing?  Can you recreate this on a demo site and post complete instructions on how to do so?



Back to Top
Rate [
|
]