How to develop a server-side application (e.g. chat in chat) in sdl tridion?

I would like to develop a chat application so that web users can communicate with clients or with each other.

What are my options?

  • I created some custom ascx elements to provide functionality.
  • How to do this on my page?
  • In the page template building block (TBB), I wrote code to represent / render the components.

I want to know if I need to create a user control as a component on the page, and if so, how to do it.

For component rendering, I used:

<!-- TemplateBeginRepeat name="Components" --> <!-- TemplateBeginIf cond="ComponentTemplate == 'HomePageCT'" --> @@RenderComponentPresentation()@@ <!-- TemplateEndIf --> <!-- TemplateEndRepeat --> 
+7
source share
2 answers

My usual way to get something to work with Tridion is to first develop it without Tridion.

Start by saying that your application runs on IIS or Tomcat, or what you use for your delivery platform.

Once you are satisfied with this, start moving it to Templates. In your particular case, I assume that this functionality is something that editors can add to pages, so the component template makes sense. Make sure that the output of your template contains all the code you need (including any controls, javascript links, etc.), and everything in your output that may require customization should be in the component associated with this template.

Remember that you can publish something from Tridion, you should focus on making it work, and then adapt your Tridion templates.

Repeating your question, it seems that you are stuck in the very basics of Tridion ... Yes, you can use RenderComponentPresentation, just make sure that the component template creates the necessary code on the delivery side.

+7
source

Although you can build almost everything that happens on the Tridion website, you need to wonder about each requirement that the added benefits create it in Tridion and weigh those strong> extra construction costs in Tridion.

Nuno already offers to first create this functionality outside of Tridion, and then port it, which is really a good approach. But even with this approach, I seriously doubt what benefit you will get from this in Tridion.

Tridion is a Content Management system , and I doubt that you need to manage a lot of content for this application. And if there is no content management, I would just leave the ASCX control in the ASP.NET web application and simply <asp:chatcontrol> it using <asp:chatcontrol> (assuming you created this custom tag) in my DWT.

+5
source

All Articles