Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Content boxes on the Page Item View modes: 
User avatar
Member
Member
Leandro Brito - 9/15/2011 8:51:13 AM
   
Content boxes on the Page Item
Hello guys,

I have one page item for my home and show 3 boxes with news (document type) contents.

The customer want place the news document inside the boxes so simple, maybe using drag in drop of content management (left side of cmsdesk).

The process will be:

Create a new document and drag and drop it to the box.
I got something using "page items" for each box, and drag/drop the document type inside it, but how can I filter and organize the contents in my home page?

In home page and content management the structure will be:

Box 1 - Page item
--new1
--new2

Box 2
--new3
--new4



If I drag and drop the new3 for box 1, automatically the home page need show:

Box 1 - Page item
--new1
--new2
--new3

Box 2 - Page item
--new4

I created a custom form control to choose the box, but I want know if is possible to do some transformation for search the document items by "page item".

Sorry about my grammar mistakes.

Thanks

User avatar
Kentico Support
Kentico Support
janh-kentico - 9/16/2011 3:44:06 AM
   
RE:Content boxes on the Page Item
Thank you for your message.

You can create a document structure like this:

User image

Now please add two repeater web parts to the "test" page with the following properies:

Repeater1
Path: /test/Box 1/%
Document types: CMS.News
ORDER BY expression: NodeOrder
Transformation: (select some news transformation)
Web part container: (your box container)

Repeater2
Path: /test/Box 2/%
Document types: CMS.News
ORDER BY expression: NodeOrder
Transformation: (select some news transformation)
Web part container: (your box container)

After this, the "test" page will be displayed in your required behavior.

Best regards,
Jan Hermann

User avatar
Member
Member
Leandro Brito - 9/16/2011 5:55:59 AM
   
RE:Content boxes on the Page Item
Thanks Jan, works fine!

User avatar
Member
Member
Leandro Brito - 9/18/2011 5:51:37 PM
   
RE:Content boxes on the Page Item
Hello,

One question.
How can I do for a repeater inside box 2 not inherit the configurations of the box 1? When I configure the path on box 1 the box 2 inherit the path and vice versa.

Thx!

User avatar
Kentico Support
Kentico Support
janh-kentico - 9/19/2011 2:16:08 AM
   
RE:Content boxes on the Page Item
Thank you for your message.

Of course, please fill the following macro into the Visible property of the Box 1 repeater:

{%not(StartsWith(currentdocument.nodealiaspath, "/test/Box 1/"))%}

Best regards,
Jan Hermann