Jahia Dev Forum > Folder Structure...

0 (0 Good)
0 (0 Bad)

Folder Structure of the Filesystem (jnt:folder) that can Support Content Templates

by  dbansal »  2015/02/09 07:06

Hi,

I want to create a node type which can map to folder structure of the filesystem and can support content templates

Essentially, I want to create content template for a 'folder' with a custom view (Like listing only subfolders in thumbnail view). However,jnt:folder is not a content node type. So it does not appear in the "Apply to these types" section of "New Content Template" wizard screen.

I tried extending jnt:folder like following:

[jnt:contentfulFolder] > jnt:content, jmix:structuredContent
 - folder (weakreference, picker[type='folder']) < 'jnt:folder'

But, after selecting a folder from folderpicker, it makes (as it should) only the selected folder as content object and not the whole heirarchy of the folder structure.

How can I make the folder structure as content nodes so that each folder can be viewed using a content template in full page with its node's url ?

 Thanks

Deepak

  • Folder Structure of the Filesystem (jnt:folder) that can Support Content Templates
    2015/02/09 07:06

    dbansal <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Hi,</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">I want to create&nbsp;a node type which can map to&nbsp;<strong>folder structure of the filesystem and can support content templates</strong>.&nbsp;</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Essentially, I want to create content template for a &#39;folder&#39; with a custom view (Like listing only subfolders in thumbnail view). However,<strong>jnt:folder</strong>&nbsp;is not a content node type. So it does not appear in the &quot;Apply to these types&quot; section of &quot;New Content Template&quot; wizard screen.</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">I tried extending&nbsp;<strong>jnt:folder</strong>&nbsp;like following:</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">[jnt:contentfulFolder] &gt; jnt:content, jmix:structuredContent<br /> &nbsp;- folder (weakreference, picker[type=&#39;folder&#39;]) &lt; &#39;jnt:folder&#39;</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">But, after selecting a folder from folderpicker,&nbsp;it&nbsp;makes (as it should)&nbsp;only the selected&nbsp;folder as content object and not the whole heirarchy of the folder structure.</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">How can I make the folder structure as content nodes so that each folder can be viewed using a content template in full page with its node&#39;s url ?</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">&nbsp;Thanks</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Deepak</p>

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