Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Put UserControl in a article text View modes: 
User avatar
Member
Member
kalle-internetbudget - 3/9/2011 3:24:22 AM
   
Put UserControl in a article text
Hi, is there a way to put a UserControl (.ascx) directly into an article text.

So that it looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pulvinar blandit scelerisque. Suspendisse at pellentesque nibh. Proin et velit felis, in tincidunt nisi. Praesent et orci a quam mollis molestie in ac orci. Praesent dignissim, arcu et euismod auctor, mi enim viverra lorem, vitae porta enim nisi interdum libero.

[UserControl]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pulvinar blandit scelerisque. Suspendisse at pellentesque nibh. Proin et velit felis, in tincidunt nisi. Praesent et orci a quam mollis molestie in ac orci. Praesent dignissim, arcu et euismod auctor, mi enim viverra lorem, vitae porta enim nisi interdum libero.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/9/2011 8:08:08 AM
   
RE:Put UserControl in a article text
Hello.

I would recommend you to use Inline control for this purpose, what is basically standard Web user control, inheriting from CMS.ExtendedControls.InlineUserControl class.

You can find more info here: http://devnet.kentico.com/docs/devguide/how_to_develop_inline_controls.htm

Best Regards,
Radek Macalik

User avatar
Member
Member
ctaleck IPAGlobal - 3/11/2011 2:27:13 PM
   
RE:Put UserControl in a article text
For an example see the ShowNodeList in the marketplace.