Best practice / Kentico style Aspx Templates Workflow

Tom F asked on December 1, 2016 02:07

Hi guys, I'm coming from umbraco razor land where things are a bit more straightforward than what I'm currently experiencing.

I am trying to work out what people generally do with logic around specific fields in Kentico.

an example of this is in umbraco if a content item exists I'll wrap some markup around it but then inside be checking for the existance of some other model properties etc.

i.e. if a page title exists display a wrapper and inside check for a subheading and some other random content to display iconography etc..

From my brief intro to kentico it would appear I need to use some kind of ascx transform or the like. How much of this is done inside an aspx template and if so do you create a <cms:Transform control or refer to a user control and try and eval etc?

Thanks, Tom

Recent Answers


Brenden Kehren answered on December 1, 2016 05:02

All of this can be done using Portal development method without writing any code. You might check out more information about the Kentico Development Models/Modes and research webparts like a repeater.

0 votesVote for this answer Mark as a Correct answer

Tom F answered on December 1, 2016 05:16

Thanks Brenden, A repeater doesn't really work in this instance as I'm only using single fields not a collection of items.

Can you write a completely custom web part? finding documentation working in VS rather than going through portal to write bespoke stuff has been tricky to track down. i.e. doing parts of things like hierachical transforms in the admin area but then using those in an aspx file.. feels like I'm missing something.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.