Jahia DX > Studio problem when...

0 (0 Good)
0 (0 Bad)

Studio problem when forging own template

by  robertito »  2011/06/07 18:06

Hi to all,


I started trying Jahia 6.5, since we have to make a decision for a future project.
I tried to develop my own template. I downloaded a sample template from the web with its own CSS (I'm not a CSS nor HTML expert) and tried to adapt it by adding template:area tags by looking at the bundled templates (the Frankenstein way :? )

I created a new template set using Studio and copied those adapted files inside the modules/my-template folder. The template appears in Studio and looks nice, but when I try to activate the content areas, they get activated but the list of content elements to add is empty (the elements you get when clicking the tab with hint "Create content"). I tried many things and saw that if I don't link my own CSS, the elements appear. Could it be a CSS conflict between the Jahia bundled CSS and the ones from my web template?
If so, what would be the right way to develop a template that has a complete different look that the Web or Web Blue?

The same happens to the content elements in Editor mode.

Thank you very much for your support.
Kind Regards,
Robert

  • Studio problem when forging own template
    2011/06/30 14:45

    robertito <p> Hi to all,</p> <p> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> I started trying Jahia 6.5, since we have to make a decision for a future project.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> I tried to develop my own template. I downloaded a sample template from the web with its own CSS (I&#39;m not a CSS nor HTML expert) and tried to adapt it by adding template:area tags by looking at the bundled templates (the Frankenstein way&nbsp;<img alt=":?" src="http://10.8.37.193/forum/images/smilies/icon_e_confused.gif" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " title="Confused" />&nbsp;)<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> I created a new template set using Studio and copied those adapted files inside the modules/my-template folder. The template appears in Studio and looks nice, but when I try to activate the content areas, they get activated but the list of content elements to add is empty (the elements you get when clicking the tab with hint &quot;Create content&quot;). I tried many things and saw that if I don&#39;t link my own CSS, the elements appear. Could it be a CSS conflict between the Jahia bundled CSS and the ones from my web template?<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> If so, what would be the right way to develop a template that has a complete different look that the Web or Web Blue?<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> The same happens to the content elements in Editor mode.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Thank you very much for your support.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Kind Regards,<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Robert</p>

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Studio problem when forging own template

    by  rvt »  2011/06/07 18:06

    Robert,

    You can indeed create a new template set (use the 'New Template Set' from the top left menu entry), from scratch using the Editor mode, I have done it a couple of times but I never based it on anything.

    After it's created you can go to the modules directory and modify the template. When Jahia is in development mode all changes are directly available.

    So, you can indeed create a totally different templates from Web or Web Blue.

    Here you can download my template : https://github.com/rvt/templates-libre/
    I am using this template for a Open Source project and you are free to use it under the GPLv2 license.
    The template is still under eurly development and there some more things I need to work on to make it suite a broader need, but you can see that it's perfectly possible to create anything you like.
    If you need just a war of the template, let me know. I am more then happy to send one to you.

    Ries
  • Re: Studio problem when forging own template
    2011/06/07 18:06

    rvt Robert,<br/><br/>You can indeed create a new template set (use the 'New Template Set' from the top left menu entry), from scratch using the Editor mode, I have done it a couple of times but I never based it on anything.<br/><br/>After it's created you can go to the modules directory and modify the template. When Jahia is in development mode all changes are directly available.<br/><br/>So, you can indeed create a totally different templates from Web or Web Blue.<br/><br/>Here you can download my template : <!-- m --><a class="postlink" href="https://github.com/rvt/templates-libre/">https://github.com/rvt/templates-libre/</a><!-- m --> <br/>I am using this template for a Open Source project and you are free to use it under the GPLv2 license.<br/>The template is still under eurly development and there some more things I need to work on to make it suite a broader need, but you can see that it's perfectly possible to create anything you like.<br/>If you need just a war of the template, let me know. I am more then happy to send one to you.<br/><br/>Ries

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Studio problem when forging own template

    by  shuber »  2011/06/07 18:06

    Hi Ries,

    Thanks a lot for sharing your template set ! It will be very useful to others I am sure.

    Regards,
    Serge Huber.

    Serge Huber (shuber)

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

    Re: Studio problem when forging own template

    by  robertito »  2011/06/07 18:06

    Hi Ries,

    thank you very much! I can take many good ideas from your template and learn a lot of things laugh

    The problem I had when I was duplicating an existing template or creating one was that the module folders where almost empty and I didn't knew what exactly I had to customize. The jsp file had only one area but in Studio it showed a lot of areas and templates with styles and everything. I guess I did a mistake or something got broken in my environment.

    Thanks again!
    Robert

  • Re: Studio problem when forging own template
    2011/06/30 14:47

    robertito <p> Hi Ries,<br /> <br /> thank you very much! I can take many good ideas from your template and learn a lot of things <img alt="laugh" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/teeth_smile.gif" title="laugh" width="20" /><br /> <br /> The problem I had when I was duplicating an existing template or creating one was that the module folders where almost empty and I didn&#39;t knew what exactly I had to customize. The jsp file had only one area but in Studio it showed a lot of areas and templates with styles and everything. I guess I did a mistake or something got broken in my environment.<br /> <br /> Thanks again!<br /> Robert</p>

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Studio problem when forging own template

    by  maanifiik »  2011/06/16 07:46

    Hi ries twisk,

    thank you for your templates.

    But i don't know how i insert the templates into jahia 6.5, can you tell me how to do that?

    Are you create this templates on eclipse?

    I'm in tranning period and i need help.

    thank all

  • Re: Re: Studio problem when forging own template
    2011/06/16 07:46

    maanifiik <p> Hi ries&nbsp;twisk,</p> <p> thank you for your templates.</p> <p> But i don&#39;t know how i insert the templates into jahia 6.5, can you tell me how to do that?</p> <p> Are you create this templates on eclipse?</p> <p> I&#39;m in tranning period and i need help.</p> <p> thank all</p>

  • Number of messages  18
    Registration date Jun 16, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Studio problem when forging own template

    by  poiuytrez »  2011/06/28 19:14

    Hi ries twisk,

    thank you for your templates.

    But i don't know how i insert the templates into jahia 6.5, can you tell me how to do that?

    Are you create this templates on eclipse?

    I'm in tranning period and i need help.

    thank all

    Hello maanifiik,

    The template and integration guide has been released :

    https://www.jahia.com/cms/home/community/documentation/templating-and-integration-guide.html

    Guillaume
     

  • Re: Re: Re: Studio problem when forging own template
    2011/06/28 19:14

    poiuytrez <blockquote> <p> Hi ries&nbsp;twisk,</p> <p> thank you for your templates.</p> <p> But i don&#39;t know how i insert the templates into jahia 6.5, can you tell me how to do that?</p> <p> Are you create this templates on eclipse?</p> <p> I&#39;m in tranning period and i need help.</p> <p> thank all</p> </blockquote> <p> Hello maanifiik,</p> <p> The template and integration guide has been released :</p> <p> https://www.jahia.com/cms/home/community/documentation/templating-and-integration-guide.html</p> <p> Guillaume<br /> &nbsp;</p>

  • Number of messages  16
    Registration date Jun 28, 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