So, wouldn’t it be nice to record particular events in Sitecore – E.g. Publishes – into Application Insights? Well, yes, I thought – and it turned out that this had already been done by Ramkumar Dhinakaran several years ago…
Continue reading “Using App Insights to monitor Publishes in Sitecore”Publishing
Patch Publishing Logging Level
Following up on yesterday’s post, you can patch your logging to increase the level of logging in Sitecore:
<log4net>
<logger name="Sitecore.Diagnostics.Publishing">
<level>
<x:attribute name="value">DEBUG</x:attribute>
</level>
</logger>
</log4net>
Could be useful in diagnosing publishing problems.
Publish to ‘web’|#Exception: System.Reflection.TargetInvocationException
Issue: after updating a UAT server I was getting the following error in the “item:deleted” event after trying to publish anything… Continue reading “Publish to ‘web’|#Exception: System.Reflection.TargetInvocationException”
An example caching class for Sitecore
Previously I posted about the generalities of implementing a Cache in Sitecore using the CustomCache class. Well, I’ve actually implemented a few caches for Sitecore using this; let’s have a look at my general pattern. Continue reading “An example caching class for Sitecore”
Publishing Navigation without the Publishing…
Recently, a few of our customer’s systems that I’ve looked at have had the Publishing Infrastucture site collection feature activated, but purely for the top navigation. That seemed quite a heavyweight approach to me. Continue reading “Publishing Navigation without the Publishing…”
Show Site, List or Item information on Pages
I’ve seen a few questions on Twitter over the last few weeks about how to show properties from Sites or Publishing pages within pages. Actually, this is very easy.
Obviously, if you’re working with Publishing Pages, you’ve got all your publishing controls, which you can see in SharePoint Designer…
But what about site information, such as the Site Title? Or other Page Information, such as the Last Modified time? Well, I want to introduce 4 other controls – ProjectProperty, ListProperty, ListItemProperty and FieldValue … Continue reading “Show Site, List or Item information on Pages”
Content Approval Statuses
I keep getting questions from customers about what statuses are used in Publishing and Content Approval, and who can see what items in what status. It’s a little complex, as it depends entirely upon your configuration of content approval and versioning settings. Continue reading “Content Approval Statuses”
Programmatically create pages – and Add Web Parts
I had an interesting problem recently with a Site Definition. I was trying to create a publishing page, which would not create as the correct content type. I still haven’t got to the bottom of why.
However, time was limited, and we were going to have to create a feature receiver to staple to our site definition anyway, so I had a look at creating a publishing page programmatically.
We needed a feature receiver as the customer wanted the home page of their site to have a ‘Search Box’ which would ‘Search this site’, but go to a custom results page in a Search Center. My plan was to use a Search Box Web part, configured to go to a custom results page, and to append the query term:
site: [url to site]
e.g. site:http://sharepoint/finance/
Naturally, you don’t know the URL of the site until the site has been created – so this web part would have to be created programmatically. Continue reading “Programmatically create pages – and Add Web Parts”
Show a Page's Contact and Picture on a Publishing Page
So, one of our customers is really keen that the new Page Layouts I’m writing show the page’s contact on the page. For those of you who perhaps haven’t had need to use this, the Contact field is a standard field on Publishing Pages (i.e. the Page content type). You can interact with it via the page settings:
… which shows a page with…
These fields are to allow you to select another SharePoint user, or manually enter someone’s details (if they’re not a SharePoint user!) Further, these fields are available in SharePoint designer:
So this looks like it’s shaping up to be a very brief blog post. Open up SharePoint designer, edit the page layout, drag the Contact field onto the page. With that, we get:
Great! Well, no, there are two problems with that…
Continue reading “Show a Page's Contact and Picture on a Publishing Page”
Plan Your Publishing Pages
I was reading Andrew Connell’s book ‘SharePoint 2007 Web Content Management‘ and it made something crystallize for me. I’ve been pondering this for about 8 months or so, but I believe that several of our customers are using the Publishing features of MOSS incorrectly, and that simply basing sites on out-of-box Collaboration and Publishing site templates is a mistake.
(Well, at least without additional planning) Continue reading “Plan Your Publishing Pages”