Only include javascript if used by an editable view?

Only include javascript if used by an editable view?

Thursday 29 May 2003 7:32:20 pm - 1 reply

Author Message

Paul Forsyth

Friday 30 May 2003 12:28:16 am

you could use something like the following code:

{section show=is_set($use_date_control)}
{include uri="design:page_body.tpl"}
{section-else}
<normal body>
{/section}

where page_body.tpl is located at "design/<you>/templates/page_body.tpl"

other includes could be used to include the javascript required etc.

hope this is what you had in mind ;)

paul

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.