AnsweredAssumed Answered

Surf extension for head-resources

Question asked by loftux Moderator on Jun 8, 2012
Latest reply on Jun 8, 2012 by ddraper
I'm trying to add an additional resource to head to load a web-fonts. So it needs to be generic for all places. For that I wanted to add to global.head-resources.xml to load this additional resouce.
This is what I have tried
<extension>
   <modules>
      <module>
         <id>LoftuxResources</id>
         <description>Additional resources loaded in header</description>
         <components>
            <component>
               <scope>global</scope>
               <region-id>head-resources</region-id>
               <source-id>global</source-id>
               <sub-components>
                  <sub-component id="load-webfonts">
                     <url>/loftux/head</url>
                  </sub-component>
               </sub-components>
            </component>
         </components>
      </module>
   </modules>
</extension>
It doesn't load anything (yes I have deployed the modul). Is this the right approach?
In my webscript /loftux/head I just have
<@link href='http://fonts.googleapis.com/css?family=Belleza' rel='stylesheet' type='text/css'/>
Also tried without the @-char.
resources.get.html.ftl have a markup that implies there should maybe this should be done in another way
<@markup id="resources">
   <#– Use this "markup id" to add in a extension's resources –>
</@>

Outcomes