Profile

Cover photo
Craig Odar
Attended University of Maryland, College Park
Lives in Arlington, VA
65 followers|9,881 views
AboutPostsPhotosVideos

Stream

Craig Odar

Discussion  - 
 
How is everyone handling sitemap.xml generation since 6.0 came out with canonical URLs?  It's not an out of the box feature, and I don't see it in the roadmap (yet).

+Radoslav Georgiev posted something about a module he was developing  in April:  https://plus.google.com/105924849940590264025/posts/CjZg766ZBRF

Did anything come of that?
1
Steve McNiven-Scott's profile photoCraig Odar's profile photo
2 comments
 
The sitemap project is still there, but it doesn't take advantage of canonical URLs.  It was last updated in late 2011.
Add a comment...

Craig Odar

Discussion  - 
 
Can anyone from Telerik (+Ivan Osmak?) comment on the status of custom fields for pages in the 6.0 release?  We'd like to use them to attach images, descriptions, etc. that we could use to build mega menus w/o a lot of individual customization.  
3
Basem Emara's profile photoIvan Osmak's profile photoStephen Pittman's profile photo
Add a comment...
In his circles
60 people
Have him in circles
65 people
Michael Kato's profile photo
Sam Reed's profile photo
James Wood's profile photo
Eric Fair's profile photo
Shanna Pearson's profile photo
Caroline Bergmark's profile photo
Sini Salminen's profile photo
Jeff Bobish's profile photo

Craig Odar

Discussion  - 
 
What is the correct way to schedule an item to expire on a set date? I've tried the obvious:

item.ExpirationDate = DateTime.Today.AddYears(1)

but the item didn't unpublish as expected (the correct value was persisted in the DB).  Is there a different method, or is there something else going on?
1
Djovani Cuteaux's profile photo
 
This code example might help you set an expiration date even create an item in the past:

public void ScheduleNewsItem(string newsTitle, string newsContent, DateTime publicationDate, DateTime expirationDate)
       {
           NewsManager nManager = NewsManager.GetManager();
           var newsItem = nManager.CreateNewsItem();
 
           newsItem.Title = newsTitle;
           newsItem.Content = newsContent;
           SummarySettings newsSummarySettings = new SummarySettings(SummaryMode.Words, 20, false, false);
           newsItem.Summary = SummaryParser.GetSummary(newsContent, newsSummarySettings);
           newsItem.AllowComments = false;
           newsItem.Visible = true;
           //You need to set the UrlName and replace any special characters,  the manager will take care of recompiling the item URL
           newsItem.UrlName = Regex.Replace(newsItem.Title.ToLower(), UrlNameCharsToReplace, UrlNameReplaceString);
           newsItem.PublicationDate = publicationDate;
           newsItem.ExpirationDate = expirationDate;
           //The item needs to be chacked out so we can pass it to WorkflowManager for scheduling
           nManager.CheckOut(newsItem);
           nManager.SaveChanges();
 
           var bag = new Dictionary<string, string>();
           bag.Add("ContentType", typeof(NewsItem).FullName);
           WorkflowManager.MessageWorkflow(newsItem.Id, typeof(NewsItem), null, "Schedule", true, bag);
       }
Add a comment...
Liz Odar was tagged in Craig Odar's photo.

Craig Odar

Shared publicly  - 
1
People
In his circles
60 people
Have him in circles
65 people
Michael Kato's profile photo
Sam Reed's profile photo
James Wood's profile photo
Eric Fair's profile photo
Shanna Pearson's profile photo
Caroline Bergmark's profile photo
Sini Salminen's profile photo
Jeff Bobish's profile photo
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Arlington, VA
Previously
crofton, md - college park, md - washington, dc - vancouver, wa - arlington, va
Links
YouTube
Education
  • University of Maryland, College Park
    Philosophy, 1996 - 2001
Basic Information
Gender
Male
Apps with Google+ Sign-in