There is some changes in order to get the Publishing url from an image, here is my code. This is Server Side Code.
You may find Log4Net needs to be initialised in order to grab the definitions in the XML file. If you use a Public Class or a Static Class this may cause some confusion because You’l need to initialise in ant method (XmlConfigurator), or not? Use it like this
Sometimes, when you don’t want to use Powershell, you can set your branding from a Feature, it’s the old procedure but very “elastic”. In the bellow sample, I’ll give you the option to change you master page to Front Office and Back Office, you can also define your CSS File. I’m processing all Sub Webs also, just change what you want. This is a Feature SCOPE Site
In this post, i will help you to generate a Tag Cloud based on the TaxKeyword, the default enterprise TAG for SharePoint. This sample is for OOTB or not. I’m using SharePoint Search. Let’s roll to the search method: Now that we have the DataTable let´s get the Tags from the TAGS Field Let’s replace all “L0|#” and remove all Guid’s After having our tags, let’s take a count for each TAG, I’m taking 11 for my render So? Let´s render. I’m having a bug :), but let´s remove the first 2 characters THE TAG CLOUD This is an example, but you can refine it. I’m taking the total, that is 11, and passing the xCount
Property Bags are very powerful, they can store information in an Hash Table in IIS at several levels Property Bags can be defined in the following levels: Farm (SPFarm class) Web application (SPWebApplication class) Site collection (SPSite class) Site (SPWeb class) List (SPList class) I wrote an Article for 2010 in here, take a look
Working with Taxonomy Fields that created in Visual Studio without OOTB, it’s not a peace of cake. You have to follow some rules: In a Feature Receiver, Scoped SITE use the bellow Override Then you have to activate your field (Bind) to a specific GUID, if you not it become disabled “Grayed” Use class bellow “Taxonomy” For XML Declarative find here you may find other options also Good Luck 😉
Let’s see, a easy tag field is the “TaxKeyword”, the default for “Enterprise Keywords”. The advantage is that he is already at the Search Schema an Indexed, so you can use in all objects that you want, Page Layouts for Publishing Pages, Lists, whatever. How to do it in a SharePoint Feature Receiver? SCOPE: Web How to add it to a Page Layout? ……