Hi,
You can add new custom fields to your document types (field Script, Styles etc.) which will cover your needs.
To include their content on the current document, you can use following code in the page layout:
<asp:literal runat="server" id="script_ltl" />
<asp:literal runat="server" id="styles_ltl" />
<script runat="server" >
protected void Page_PreRender(object sender, EventArgs e)
{
script_ltl.Text= CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{%Script%}").ToString();
styles_ltl.Text= CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{%Styles%}").ToString();
}
</script>
More information about context macros can be found
hereBest regards,
Michal Legen