← Back to team overview

anewt-developers team mailing list archive

Re: [+launchpad] [Branch ~sander-sinaasappel/anewt/anewt.new.cxs] Rev 1481: [page] Allow adding of custom elements to page header

 

Wouter Bolsterlee wrote:
What exactly is the point of this? Is this only useful for script tags?

Sometimes you want to include a css or javascript file only for certain low versions of IE, and then you have to put it in tags like that.

The problem is, add_stylesheet* and add_javascript* and add_link* only accept AnewtXHTML(Script|Link|Style) nodes. The add_header_item is basically a catchall for everything else you might want to put in the header.

Additionally, I don't like the API naming --- "header item" doesn't mean
anything to me.

I couldn't think of a better name.

2009-07-20 klockan 22:47 skrev noreply@xxxxxxxxxxxxx:
------------------------------------------------------------
revno: 1481
committer: Sander van Schouwenburg <sander@xxxxxxxxxxxxx>
branch nick: anewt.new.cxs
timestamp: Mon 2009-07-20 17:55:47 +0200
message:
  [page] Allow adding of custom elements to page header
Add custom stuff with AnewtPage->add_header_item($node). This is necessary if you want things like <!--[if lte IE 6]> in the header. (from anewt.new.svn:90)
modified:
  page/page.lib.php




References