Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Regarding the collapsable functionality.. View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/18/2012 7:32:33 AM
   
Regarding the collapsable functionality..
Hi,

In my left panel, I want to display 5 records and an and icon in bottom when user click on that icon all the record will be displayd in the left panel..

Please guide me

Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/18/2012 9:31:34 AM
   
RE:Regarding the collapsable functionality..
Hello,

You can use a combination of repeater's TopN property with querystring macro and its Content after property with a link to show more records:

TopN macro: {%ToInt(topn, "5")%}
Content after: <a href="?topn=0">all records</a>


Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/18/2012 11:03:38 PM
   
RE:Regarding the collapsable functionality..
Hi Jan,

Thanks for reply..I added repeater webpart, but I did not filnd any option "TopN macro" in the webpart settings. In top N documents when I enter {%ToInt(topn, "5")%}
it did not take this, please guide me where to write the TopNMacro..


Thanks
SAnsugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/19/2012 1:11:18 AM
   
RE:Regarding the collapsable functionality..
Hello,

I'm sorry, I didn't mention, how to add a macro to a field, so the repeater web part contains the Select top N documents property and there is a small black arrow next to it -> click it and paste the macro there.

Please make sure, that you are using Kentico CMS with the latest hotfix, because there was some difficulties with macros in integer's fields.

Best regards,
Jan Hermann

User avatar
Member
Member
sansugoi_sayounara-hotmail - 1/19/2012 2:20:51 AM
   
RE:Regarding the collapsable functionality..
It is giving error,

"Require integer value"

Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/19/2012 2:56:04 AM
   
RE:Regarding the collapsable functionality..
Hello,

Yes, that's why I mentioned, that the latest hotfix is needed, so please apply the latest hotfix and it will solve this issue.

Best regards,
Jan Hermann