How can I display directory tree from the DMS in the WCM?

View: New views
4 Messages — Rating Filter:   Alert me  

How can I display directory tree from the DMS in the WCM?

by ur_afroinu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello
I apologize for very basic question.  I'm using v3.6.
Is there a way to import (publish) directory tree structure from DMS to WCM?  I tried selecting a parent tree node in DMS as the page paragraph body (via "Documents: Select a folder or single document or define a custom query." as paragraph type) but what I get is the list of all files from the child nodes in one single page.
Is there a way to select a parent node and automatically create child node pages (with links to files in the given child node) and parent node page with links to child node pages?  If so, how would I accomplish it (I couldn't find in User Manual)?  Your help is greatly appreciated.
Regards.

Re: How can I display directory tree from the DMS in the WCM?

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


ur_afroinu ha scritto:
>
> Hello
> I apologize for very basic question.  I'm using v3.6.
> Is there a way to import (publish) directory tree structure from DMS to WCM?

Never done before, but you may consider to create a Java class which
handle your need and then use it within a Taglib from FMK / JSP.

The idea can be:

1) Create a paragraph with DMS parent selection (UUIDLink, for instance)
2) Inside the paragraph use the taglib and pass the parameter to Taglib
Java Class
3) Query DMS and build a wrapper / use DMS Document impl to create your
tree of documents
4) Go back to FMK / JSP and iterate over that tree using Html+Css

I suggested to use a taglib and Java because I think things in this case
should be better and easy to write with some Java support (exception
handling f.e.).

HTH,
Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: How can I display directory tree from the DMS in the WCM?

by ur_afroinu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much for your response and I apologize for taking a while to respond.
I was not sure if the given feature is present but I'm not able to find it or simply is absent and therefore needs to be build if I needed something of such nature.  
I'll definately take your suggestions and see where it'll take me.
Best regards

Matteo Pelucco wrote:
ur_afroinu ha scritto:
>
> Hello
> I apologize for very basic question.  I'm using v3.6.
> Is there a way to import (publish) directory tree structure from DMS to WCM?

Never done before, but you may consider to create a Java class which
handle your need and then use it within a Taglib from FMK / JSP.

The idea can be:

1) Create a paragraph with DMS parent selection (UUIDLink, for instance)
2) Inside the paragraph use the taglib and pass the parameter to Taglib
Java Class
3) Query DMS and build a wrapper / use DMS Document impl to create your
tree of documents
4) Go back to FMK / JSP and iterate over that tree using Html+Css

I suggested to use a taglib and Java because I think things in this case
should be better and easy to write with some Java support (exception
handling f.e.).

HTH,
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@magnolia-cms.com>
----------------------------------------------------------------

Re: How can I display directory tree from the DMS in the WCM?

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


ur_afroinu ha scritto:
>
> Thank you very much for your response and I apologize for taking a while to
> respond.
> I was not sure if the given feature is present but I'm not able to find it
> or simply is absent and therefore needs to be build if I needed something of
> such nature.  
> I'll definately take your suggestions and see where it'll take me.
> Best regards

Let me / us know the final result! :-)
Have a good job..

Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------