ASPX templates
Version 5.x > ASPX templates > Use the Kentico CMS in a separate project aspnet View modes: 
User avatar
Member
Member
dipastena-intralot - 1/25/2011 11:11:43 AM
   
Use the Kentico CMS in a separate project aspnet
Hello everyone,
I apologize in advance for my English!

Question:
we have developed a dotnet project - C #.
the project is already at an advanced stage and there is now sought chance to manage content on our site using the Kentico Content Management System (CMS - for example, create a template with cms that inside contains a textbox header and ensure that when you change the text in this textbox, the change is applied to all textbox header of the site) ...
If it had been thought of before this solution, we created the site starting from the logic of Kentico CMS and integrating the pages within it, but unfortunately so it was not!

so now we should, if possible, be able to hook in our template created with Kentico CMS (now totally exempt from our project) our aspx pages.
do you know if there is a way to do this?
Or know an easier way for centralized management of content with CMS Kentico?
if I was not clear do not hesitate to let me see,

Thank you so much
Ale

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/2/2011 2:02:18 AM
   
RE:Use the Kentico CMS in a separate project aspnet
Hi,

since I do not know any additional details about your existing system, I can only suggest to integrate Kentico CMS with it and use our API to get or set values from/into this system.

How to integrate Kentico CMS with other application is described here.

Best regards,
Juraj Ondrus

User avatar
Member
Member
alex_intralot - 2/8/2011 10:17:30 AM
   
RE:Use the Kentico CMS in a separate project aspnet
hello and thanks for the reply.

I would need a API (dll) that goes to interrogate the table CMS_PageTemplate.
At the moment I use the object: = new CMS.TreeEngine.TreeProvider objTreeProvider CMS.TreeEngine.TreeProvider ();

Through this object, I'll get the value of the fields in the table CMS_Document by the syntax:
objTreeProvider.SelectNodes (Site, Node, "en-us", true, "", "", "", 10, SelectOnlyPublish) ..

this syntax by default only to the table top CMS_Document.

There is a syntax similar to point instead to the table CMS_PageTemplate in order to manage the data within it?
I hope I was clear:)

hello and thank you again
Alessio

User avatar
Member
Member
seanbun - 2/9/2011 5:51:16 PM
   
RE:Use the Kentico CMS in a separate project aspnet
Do your own project database and kentico database sit on the same server?

I had a project like your situation. I created document types (only a container) and created queries to interact with my own project database.

e.g. select * from [own project].dbo.[tablename]
e.g. exec [own project].dbo.[stored procedure name]

I could also execute any stored procedures as well. This approach quite handy and manage all code in the CMSDesk.

Just my 2 cents.