Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Re-using Content in Kentico CMS - Part 2 of 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
617 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 7, 2009

In this tutorial, I show you how I re-use content in Kentico CMS, a web site content management system that I use. (Part 2 of 2)

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Just few notes ... you are using way too many DB accesses to get that data. 1) Get NodeID, 2) Get the node data and convert it to object (very expensive), 3) Get the Document itself. You can do all this with just single GetDocuments call like this:

    DataSet ds = TreeHelper.GetDocuments(CMSCon­text.CurrentSiteName, "/%", culture, className, "NodeGUID = '" + nodeGuid + "'", null, -1, true, 0);

    string content = (string)ds.Tables[0].Rows[0]["­Content"];

    This way you save the most of overhead.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more