[Zope-dev] Adding resource in z3c.pt

Wichert Akkerman wichert at wiggy.net
Tue Oct 14 03:13:00 EDT 2008


Previously Binseer N wrote:
> Hi all,
> Can anybody tell me how can i add resource by using z3c.pt. i know how to
> add it by using zope.pagetemplate, i tried it and it was working well. The
> following is the code i am working with and it was not working with z3c.pt
> 
> 
> *configure.zcml:-
> 
> .
> .
> *<adapter
>         factory=".resizing_font.form_template"
>         for=".resizing_font.ResizingFont"
>         name="tatr_css_js.form"
>         />   *
> 
>  *<browser:resourceDirectory
>        name="tatr_js"
>        directory="tatr_resource_js"
>        />  *
> 
> .
> .
> .
> 
> 
> resizing_font.pt :-
> 
> *<html>*
> *     <head>
>        <script type="text/javascript" src="jquery-1.2.6.js"
>         tal:attributes="src
> context/++resource++tatr_js/jquery-1.2.6.js">
>        </script>
>       </head>
>    <body>
>        This is a test :)
>    </body>
> 
> </html>*

Try adding a trailing ; after your TALES expression.

Wichert.


-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-Dev mailing list