Jahia Dev Forum > creating custom...

0 (0 Good)
0 (0 Bad)

creating custom nodeType

by  gnavlas »  2012/08/30 10:24

 

Hi all,

I would like to create some custom content types.

e.g.

MyDog (with properties Name, Breed, Coat etc etc).

I have seen this example in the "Templating and Integration guide", section-4.

But is there a way to create these custom types in the GUI mode (of the Jahia administration).

(note: I am fairly new to Jahia CMS).

  • creating custom nodeType
    2012/08/30 10:24

    gnavlas <p> &nbsp;</p> <p> Hi all,</p> <p> I would like to create some custom content types.</p> <p> e.g.</p> <p> MyDog (with properties Name, Breed, Coat etc etc).</p> <p> I have seen this example in the &quot;Templating and Integration guide&quot;, section-4.</p> <p> But is there a way to create these custom types in the GUI mode (of the Jahia administration).</p> <p> (note: I am fairly new to Jahia CMS).</p>

  • Number of messages  5
    Registration date Aug 30, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: creating custom nodeType

    by  theklem »  2012/08/30 11:01

     

    Hi, right now there is no GUI to declare node types in Jahia.

    We're planning to add that in the Studio in the coming monthes in order to speed-up and simplify development work. Until that moment you'll have to do that as described in our videos or in the templating guide, knowing that  the basic syntax is really simple. It is a bit more complex when you need to add custom validators, or some mixins, but it remains at a level any developper could master very fast.

    If you haven't seen the videos to start jahia development, I strongly recommend you to do so, they are very easy to follow and you'll learn step by step the basics, including node types declarations and advanced mechanisms.

    http://www.youtube.com/watch?v=P5RkDtU8cJc&list=PL89CB386A8375E1AE&feature=plcp (6 videos in english, 12 in french. the missing 6 should be available soon in english)

  • Re: creating custom nodeType
    2012/08/30 11:01

    theklem <p> &nbsp;</p> <p> Hi, right now there is no GUI to declare node types in Jahia.</p> <p> We&#39;re planning to add that in the Studio in the coming monthes in order to speed-up and simplify development work. Until that moment you&#39;ll have to do that as described in our videos or in the templating guide, knowing that &nbsp;the basic syntax is really simple. It is a bit more complex when you need to add custom validators, or some mixins, but it remains at a level any developper could master very fast.</p> <p> If you haven&#39;t seen the videos to start jahia development, I strongly recommend you to do so, they are very easy to follow and you&#39;ll learn step by step the basics, including node types declarations and advanced mechanisms.</p> <p> <a href="http://www.youtube.com/watch?v=P5RkDtU8cJc&amp;list=PL89CB386A8375E1AE&amp;feature=plcp">http://www.youtube.com/watch?v=P5RkDtU8cJc&amp;list=PL89CB386A8375E1AE&amp;feature=plcp</a>&nbsp;(6 videos in english, 12 in french. the missing 6 should be available soon in english)</p>

  • Number of messages  85
    Registration date Aug 30, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: creating custom nodeType

    by  gnavlas »  2012/08/30 12:39

    Voilà! merci bien...

  • Re: Re: creating custom nodeType
    2012/09/03 09:54

    gnavlas <p> Voil&agrave;! merci bien...</p>

  • Number of messages  5
    Registration date Aug 30, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: creating custom nodeType

    by  gnavlas »  2012/09/03 14:33

    Hi,

    i followed the steps as per the video... (with maven archetype = jahia-module-archetype = 1.14)

    but my new nodetypes are only available in the Jahia Studio. When i search for my nodetype in the Edit Mode, i do not see them.

    also, in the studio, when i want to assign this custom nodeType in the Contributor section - i do not see there either.

    in the logs i see the custom nodetype is deployed to the templateSets. here's an extract from the logs (my custom nodetype is = sgnews)

     

    2012-09-03 10:46:15,913: INFO  [main] org.jahia.services.templates.TemplatePackageDeployer: Start deploying new module package 'sgnews' version=1.0-SNAPSHOT
    2012-09-03 10:46:16,288: INFO  [main] org.jahia.services.templates.TemplatePackageDeployer: Deploying JARs for module sgnews

     

    2012-09-03 10:48:13,748: INFO  [main] org.jahia.services.content.rules.RulesListener: Rules executed for default [/templateSets/sgnews/j:siteType, /templateSets/sgnews/j:title, /templateSets/sgnews/j:installedModules] ... and 1 other nodes in 344ms

     

    2012-09-03 11:01:31,362: INFO  [Timer-2] org.jahia.services.templates.TemplatePackageDeployer: Start deploying new module package 'sgnews' version=1.0-SNAPSHOT
    2012-09-03 11:01:31,487: INFO  [Timer-2] org.jahia.services.templates.TemplatePackageDeployer: Deploying JARs for module sgnews
    2012-09-03 11:01:31,690: INFO  [Timer-2] org.jahia.services.templates.TemplatePackageRegistry: Registered sgnews version=1.0-SNAPSHOT
     
    2012-09-03 11:01:43,158: INFO  [Timer-2] org.jahia.services.content.rules.RulesListener: Rules executed for default [/templateSets/sgnews/j:siteType, /templateSets/sgnews/j:title, /templateSets/sgnews/j:installedModules] ... and 1 other nodes in 0ms
     
     

     

    not sure if i did anything wrong. thank you for your help in advance.

    my Jahia version is = 6.6.0.0

     

  • Re: Re: creating custom nodeType
    2012/09/03 14:42

    gnavlas <p> Hi,</p> <p> i followed the steps as per the video... <strong>(with maven archetype = jahia-module-archetype = 1.14)</strong></p> <p> but my new nodetypes are only available in the Jahia Studio. When i search for my nodetype in the Edit Mode, i do not see them.</p> <p> also, in the studio, when i want to assign this custom nodeType in the Contributor section - i do not see there either.</p> <p> in the logs i see the custom nodetype is deployed to the templateSets. here&#39;s an extract from the logs (my custom nodetype is = sgnews)</p> <blockquote> <p> &nbsp;</p> <div> 2012-09-03 10:46:15,913: INFO &nbsp;[main] org.jahia.services.templates.TemplatePackageDeployer: Start deploying new module package &#39;sgnews&#39; version=1.0-SNAPSHOT</div> <div> 2012-09-03 10:46:16,288: INFO &nbsp;[main] org.jahia.services.templates.TemplatePackageDeployer: Deploying JARs for module sgnews</div> <p> &nbsp;</p> <p> 2012-09-03 10:48:13,748: INFO &nbsp;[main] org.jahia.services.content.rules.RulesListener: Rules executed for default [/templateSets/sgnews/j:siteType, /templateSets/sgnews/j:title, /templateSets/sgnews/j:installedModules] ... and 1 other nodes in 344ms</p> <p> &nbsp;</p> <div> 2012-09-03 11:01:31,362: INFO &nbsp;[Timer-2] org.jahia.services.templates.TemplatePackageDeployer: Start deploying new module package &#39;sgnews&#39; version=1.0-SNAPSHOT</div> <div> 2012-09-03 11:01:31,487: INFO &nbsp;[Timer-2] org.jahia.services.templates.TemplatePackageDeployer: Deploying JARs for module sgnews</div> <div> 2012-09-03 11:01:31,690: INFO &nbsp;[Timer-2] org.jahia.services.templates.TemplatePackageRegistry: Registered sgnews version=1.0-SNAPSHOT</div> <div> &nbsp;</div> <div> 2012-09-03 11:01:43,158: INFO &nbsp;[Timer-2] org.jahia.services.content.rules.RulesListener: Rules executed for default [/templateSets/sgnews/j:siteType, /templateSets/sgnews/j:title, /templateSets/sgnews/j:installedModules] ... and 1 other nodes in 0ms</div> <div> &nbsp;</div> <div> &nbsp;</div> <p> &nbsp;</p> </blockquote> <p> not sure if i did anything wrong.&nbsp;thank you for your help in advance.</p> <p> my Jahia version is = 6.6.0.0</p> <p> &nbsp;</p>

  • Number of messages  5
    Registration date Sep 3, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: creating custom nodeType

    by  gnavlas »  2012/09/11 08:14

    I had missed the step to "deploy modules to the sites"... from the Manage Modules section.

    Now i see the my custom nodetypes in the edit mode.

    However, i am still not clear on some things... for example, sometimes i do not see my custom nodetypes in the "List Restrictions" of Area...

    i.e.  "Select allowed content types in that list:" and i want to add ONLY my customnodetypes in this list.

    and also same in the Contribute settings' allowed types.

  • Re: Re: Re: creating custom nodeType
    2012/09/11 08:14

    gnavlas <p> I had missed the step to &quot;deploy modules to the sites&quot;... from the Manage Modules section.</p> <p> Now i see the my custom nodetypes in the edit mode.</p> <p> However, i am still not clear on some things... for example, sometimes i do not see my custom nodetypes in the &quot;List Restrictions&quot; of Area...</p> <p> i.e.&nbsp; &quot;Select allowed content types in that list:&quot; and i want to add ONLY my customnodetypes in this list.</p> <p> and also same in the Contribute settings&#39; allowed types.</p>

  • Number of messages  5
    Registration date Sep 11, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: creating custom nodeType

    by  gnavlas »  2012/09/11 16:18

    ok! i had missed to select the checkbox against my custom modules in the "Create Content" tab (the 2nd tab).

    Hence, my custom nodetypes were not available in the "List Restrictions" section in the studio. Supér silly mistake indeed.

    However, i still have one problem. I cannot see my custom nodetypes in the "Contribute mode settings", i.e. i want to add ONLY my custom nodetypes in "Select allowed content types in Contribution (from Editorial content types):".

    i am sure, i am missing something supér silly again. Any help is much appreciated.

  • Re: Re: Re: Re: creating custom nodeType
    2012/09/11 16:18

    gnavlas <p> ok! i had missed to select the checkbox against my custom modules in the &quot;Create Content&quot; tab (the 2nd tab).</p> <p> Hence, my custom nodetypes were not available in the &quot;List Restrictions&quot; section in the studio. Sup&eacute;r silly mistake indeed.</p> <p> However, i still have one problem. I cannot see my custom nodetypes in the &quot;Contribute mode settings&quot;, i.e. i want to add ONLY my custom nodetypes in &quot;Select allowed content types in Contribution (from Editorial content types):&quot;.</p> <p> i am sure, i am missing something sup&eacute;r silly again. Any help is much appreciated.</p>

  • Number of messages  5
    Registration date Sep 11, 2012
    0 (0 Good)
    0 (0 Bad)

    Jahia doesn't recognize resource.

    by  calit.marco@gmail.com »  2016/02/26 22:40

    Hi, everybody,

    I am new using Jahia I'm looking for help.

    I have created templateSet module in Jahia latest version, when I upload assets such as: js, fonts and other statics assets; Jahia Studio doesn't recognize these assets, but these files I see in the tree folders in the left pane.

    Could you help me with this inconvenient?

    Thanks in advance

    Marco Cali

  • Jahia doesn't recognize resource.
    2016/02/26 22:40

    calit.marco@gmail.com <p>Hi, everybody,</p> <p>I am new using Jahia I&#39;m looking for help.</p> <p>I have created templateSet module in Jahia latest version, when I upload assets such as: js, fonts and other statics assets; Jahia Studio doesn&#39;t recognize these assets, but these files I see in the tree folders in the left pane.</p> <p>Could you help me with this inconvenient?</p> <p>Thanks in advance</p> <p>Marco Cali</p>

  • Number of messages  1
    Registration date Feb 26, 2016
    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