Skip to content

Commit

Permalink
Add alternate usage information to README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed May 27, 2015
1 parent c8ac2cf commit d1a7dd5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ Usage
If your page template inherits from ``main_template``,
just include the resources on it by usign the following syntax::

...
<metal:block fill-slot="javascript_head_slot">
<script src="++resource++collective.js.cycle2/jquery.cycle2.min.js"
tal:attributes="src string:$portal_url/++resource++collective.js.cycle2/jquery.cycle2.min.js"></script>
</metal:block>
...

Alternatively you can add them into your site's JavaScript Registry directly or by using GenericSetup::

<?xml version="1.0"?>
<object name="portal_javascripts">
<javascript
cacheable="True" compression="none" cookable="True" enabled="True"
id="++resource++collective.js.cycle2/jquery.cycle2.min.js" />
</object>

Plugins
-------
Expand Down

0 comments on commit d1a7dd5

Please sign in to comment.