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'} .= '