ASPX templates
Version 5.x > ASPX templates > Selected News on Home View modes: 
User avatar
Member
Member
info@syncworx.com - 10/17/2012 12:20:36 AM
   
Selected News on Home
Hi Guys!

I have a question regarding the Kentico Implementation. We have on the Home Page three sections for showing News. I want the CMS Desk user to select Which News to show on the Home Page regardless of the News Date.

What is the Best Approach we can do it here with easy user friendly way ?

Appreciate your Help.

Regards,

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/18/2012 6:17:28 AM
   
RE:Selected News on Home
Hi,

I assume that you are using some repeater(s) on home page to display news.

In that case you could set Order By property to NodeLevel, NodeOrder, NodeName. If you also set Top N to 1 the repeater will display the first document from the content tree under some category. This way editor only needs to move the document up in the content tree and it will be displayed on the Home page.

Is this a suitable solution for you?

Best regards,
Ivana Tomanickova

User avatar
Member
Member
info@syncworx.com - 10/18/2012 11:19:17 AM
   
RE:Selected News on Home
Hello Ivana,

No, our scenario is more complicated. We have Three Fixed Div Layers on the Home Page and the User want to select which News should go to Which Box regardlress of the News Date or Order. He may have 100 News and need to select from any one to show in Box one for Example or Box 2. How can we appraoch this in Kentico ?

We are evaluating this so we decide if we go with Kentico on this Project or not becasye this is very important and the most user Friendly it should be.

Best Regards,

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/22/2012 3:20:32 AM
   
RE:Selected News on Home
Hi,

the simpliest solution is to use repeater web part and set its Top N property to 1. This way only one news will be displayed.

Then to select only one news you can configure Where condition property. Something like:
NodeID=45
This way only requested document/news will be selected. The nodeID of the news you can find in Properties - General tab of particular news in the content tree.

Or this is not a user friendly solution? I mean are your editors able to write a Where condition or do you need some kind of selector which would allow user to select only one document in properties of web part without typing the condition manually?

Best regards,
Ivana Tomanickova

User avatar
Member
Member
info@syncworx.com - 10/29/2012 4:22:27 AM
   
RE:Selected News on Home
This Solution will Not Wrok. The User may need to Select Random Articles to Show on a Specific Location on the Home Page. It may be the Latest one or any selected random one.

We can add a Filed on the Document Type with Checkbox for Example "Show on Home Page" but our Issue is that we will have multiple of them by Time and we can not know how to manage them.

We need a Better Solution.

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/29/2012 5:13:11 AM
   
RE:Selected News on Home
Hi,

if user defines Where condition (in properties of repeater), for example NodeID=22 it allows him to select a random document.

The only issue here is if your editor is able to write above condition. The node ID is visible in Properties - General tab of each document.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
info@syncworx.com - 10/29/2012 5:19:43 AM
   
RE:Selected News on Home
This is To Technical for a Backend CMS Article Editor. Do we have any other User Friendly Way For Example a Document Selector on a Web Part so we can define for Spesific web part we want to use this Document?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/29/2012 6:49:59 AM
   
RE:Selected News on Home
Hi,

you could create a custom form control which would work the same way as Document selector form control to make it easy.

The code of document selector you can find here:

~/CMSModules/Content/FormControls/Documents/SelectDocument.ascx

By default this control stores only NodeGUID. You could change value proprety and store something like:

NodeGUID='..GUID..'

This way your editor could use simple selector and do not need to write parts of sql queries.

The last step would be to clone a repeater web part and in its properties change used form control in WhereCondition property. By default there is a Text box. You would replace it with your new custom control. It would be similar like in the step 12 of custom web part development.

Best regards,
Ivana Tomanickova

Best regards,
Ivana Tomanickova