Jahia Template Forum > stylesheets in template...

0 (0 Good)
0 (0 Bad)

stylesheets in template sets

by  joewei »  2011/10/11 19:12

 

After reading through all the documentation and especially after viewing the tutorial videos I've been able to successfully create a new template set, but I need to use a custom grid, as the design I've got to apply requires a 15 column grid instead of the 16 columns that are provided by default.

I've also changed the template:addResources tag in the JSP to refer to my custom CSS file, which is also correctly added to the HTML head section, but there are still 2 default stylesheets included "/modules/assets/css/960.css" and "/modules/news/css/news.css" and I have no idea how to get rid of these.

Also removing the line "depends: Default Jahia Templates" from the manifest of the new template set didn't help.

Any guidance where to go from here would be greatly appreciated.

Thanks
Joerg

 
  • stylesheets in template sets
    2011/10/11 19:12

    joewei <p> &nbsp;</p> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <p> After reading through all the documentation and especially after viewing the tutorial videos I&#39;ve been able to successfully create a new template set, but I need to use a custom grid, as the design I&#39;ve got to apply requires a 15 column grid instead of the 16 columns that are provided by default.</p> <p> I&#39;ve also changed the template:addResources tag in the JSP to refer to my custom CSS file, which is also correctly added to the HTML head section, but there are still 2 default stylesheets included &quot;/modules/assets/css/960.css&quot;&nbsp;and &quot;/modules/news/css/news.css&quot; and I have no idea how to get rid of these.</p> <p> Also removing the line &quot;depends: Default Jahia Templates&quot; from the manifest of the new template set didn&#39;t help.</p> <p> Any guidance where to go from here would be greatly appreciated.</p> <p> Thanks<br /> Joerg</p> <div> &nbsp;</div> </div>

  • Number of messages  6
    Registration date Oct 11, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: stylesheets in template sets

    by  faissah »  2011/10/11 20:46

    Hello Joerg,

    The default "custom row" module is only an example of how to use 960 Grid System inside jahia and uses a 16 column grid.

    The best way to have a 15 column grid using 960 Grid System is to create your own "custom grid" module. This can be done by duplicating the code of "jnt_customRow" module and editing the jsp file in order to point to your new 960 css file instead of the default one.

    Regards,

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: stylesheets in template sets

    by  rvt »  2011/10/14 14:23

    Joerg,

    I created a a 'numericRow' type that allowes you to enter the procentual width for each column. Mau be not über friendly from a managing point of view, but veyr flexible.

    For example if you type 25%,50%,25% you get 3 columns a small one, a big one and a small one. You can also enter the width in number of pixels. ANy number of columns are possible. The columns are created as floating divs...

    I can properly post this somewhere if you are interested?

    Ries

     

  • Re: stylesheets in template sets
    2011/10/14 14:23

    rvt <p> Joerg,</p> <p> I created a a &#39;numericRow&#39; type that allowes you to enter the procentual width for each column. Mau be not &uuml;ber friendly from a managing point of view, but veyr flexible.</p> <p> For example if you type 25%,50%,25% you get 3 columns a small one, a big one and a small one. You can also enter the width in number of pixels. ANy number of columns are possible. The columns are created as floating divs...</p> <p> I can properly post this somewhere if you are interested?</p> <p> Ries</p> <p> &nbsp;</p>

  • Number of messages  185
    Registration date Oct 14, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page