From 2a6143b36dede2d0ff3e2bd07fdcdf9bed9b4659 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 16 Jan 2004 04:24:35 +0000 Subject: [PATCH] added head block processing --- docs/changelog/6.x.x.txt | 4 ++++ lib/WebGUI/Style.pm | 26 +++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index bd9deee1c..89d77266f 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -33,3 +33,7 @@ - Wobject privileges are available per page rather than site-wide. - Templatized the Rich Editor support. Tnx to Len Kranendonk - Fixed a problem in the forum that showed up under Postgres. + - Added some processing functions to programatically add meta tags, + javascript, and link tags to the head block of a page from anywhere within +webgui. + diff --git a/lib/WebGUI/Style.pm b/lib/WebGUI/Style.pm index cf53905f4..7a34a9b12 100644 --- a/lib/WebGUI/Style.pm +++ b/lib/WebGUI/Style.pm @@ -103,7 +103,31 @@ sub process { - '; + '.$session{page}{head}{raw}; + # generate additional link tags + foreach my $url (keys %{$session{page}{head}{link}}) { + $var{'head.tags'} .= '