Author Archives: Joao Livio

Want to convert to Json a list.getItems collection? this is the way using ECMA Javascript Declare SP.js   JavaScript Function   UPDATE   In order to use JSON.parse() you must change the [Object<Array>] like this   It will give you a [Object],[Object],[Object]

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

Using metadata navigation in SharePoint 2013, although all problems identified and documented over the Net, is very powerful. As in all features, this one is no exception, as to be configured properly. Narahari Patro, have a sample for creating with Powershell, i made some small modifications bellow, see original post. This samples are based in 2 Levels, change for more, this is only to provide a sample of it, enjoy   The advantages are enormous, like you can deprecate one item without delete it, then can be reused. I made a sample with c# Server Side to read this items.

the “Unable to get property ‘showModalDialog’ of undefined or null reference” error display because you are not calling the sp.ui.dialog.js Wrong Way:   Good Way:   Sample Calling:

From TechNet we can read “The object cache stores properties about items in SharePoint Server 2013. Items in this cache are used by the publishing feature when it renders web pages. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. The object cache makes its queries as one of two out-of-box user accounts: the Portal Super User and the Portal Super Reader. These user accounts must be properly configured to ensure that the object cache works correctly. The Portal Super User account must be an account that has Full Control access to the web application. The Portal Super Reader account must be an account that has Full Read access to the web application.” The problem is that assigning accounts like SuperUser and SuperReader to your Web Applications is not enough, you need…

Read more

SharePoint 2013, like 2010 have Trimmed Controls in order to define display rules for Authentications Roles. In SharePoint 2013 we have the Suite Bar, you must hide it also as Trimmed like this Find the <body in Master Page and add the <style>   Add the Trimmed Control for before <div id=”s4-titlerow” for permissions PermissionsString=”AddAndCustomizePages”  

In SharePoint, the object “PlaceHolderPageTitle” is responsible to render the Title. So if you have a property to bind the text, you should be able to render like this: Property to include object titles In the Master Page   The Span that Renders the Place Holder is:     Using jQuery, you can change what ever you want, in this case the object Title. I suggest to use ExecuteOrDelayUntilScriptLoaded because in this case you are sure that the DOM is loaded, preventing conflicts between jQuery functions Change Title   Change if specific number of characters reached     Good Luck 😉

If you don’t want to create a site collection for a Community Site, this is your option: Activate Features over the Site Collection Activate Features over the Web Site   Good Luck 😉

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 😉