Podemos cambiar el típico logo azul de SharePoint (situado arriba a la izquierda) de todos nuestros sites con el siguiente comando a través de Power Shell: (get-spsite http://mySite.com.AllWeb)s | foreach { $_.SiteLogoUrl = "/_layouts/15/images/NewLogo.jpg"; $_.Update()}
Etiqueta: sharepoint
¿Qué versión de SharePoint tengo instalada?
Para saber qué versión de SharePoint tenemos instalada en nuestro servidor tan solo debemos ir a: 1. Central Administration / Administración Central 2. Upgrade and Migration / Actualización y migración 3. Check product and path installation status / Verificar el estado de la instalación de productos y revisiones. Aquí veremos al detalle lo …
Stop-Start SharePoint Services On Server using Management Shell and their Names
We can start and stop SharePoint server services using SharePoint Management Shell and this Scripts: get-spserviceinstance | ? {$_.Typename -eq "YOURSERVICENAME"} | Stop-SPServiceInstance get-spserviceinstance | ? {$_.Typename -eq "YOURSERVICENAME"} | Start-SPServiceInstance We don't have to know the service GUID, we only need its name. For example: get-spserviceinstance | ? {$_.Typename -eq "User Profile Service"} | Stop-SPServiceInstance …
Sigue leyendo Stop-Start SharePoint Services On Server using Management Shell and their Names
Hide elements in Modal Dialog (SharePoint PopUp)
When a page is loaded in a Modal Dialog, its URL ends with "IsDlg=1", that means that it's being opened in a SharePoint PopUp. If you need to hide some elements when that happens (e.g. hide master page elements) you need to add a new class to these elements: Adding class "ms-dialogHidden" to an element …
Sigue leyendo Hide elements in Modal Dialog (SharePoint PopUp)
SharePoint 2013: Error occurred in deployment step ‘Add Solution’: An object in the SharePoint administrative framework, «SPSolutionLanguagePack
Error Error occurred in deployment step 'Add Solution': An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0 Parent=SPSolution Name=XXXXXXXXXX.wsp", depends on other objects which do not exist. Ensure that all of the objects dependencies are created and retry this operation. Solution 1. Go to Services and Stop SharePoint Timer Service 2. Open C:ProgramDataMicrosoftSharePointConfig(GUID folder). 3. …
Delete SharePoint Page Programmatically
SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("YOURSITE")) { using (SPWeb web = site.OpenWeb()) { //Obtain the page PublishingPageCollection publishingPages = PublishingWeb.GetPublishingWeb(web).GetPublishingPages(); PublishingPage page = publishingPages.FirstOrDefault(f => f.Uri.AbsoluteUri == "YOURPAGE"); if (page != null) { //Allow modifications bool webAllow = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; SPFile file = page.ListItem.File; //Delete file.Delete(); //Restablish default permissions web.AllowUnsafeUpdates = …
Checkin/Publish and Unpublish/Checkout SharePoint Pages Programmatically
Unpublish and Checkout SharePoint Page: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("YOURSITE")) { using (SPWeb web = site.OpenWeb()) { //Obtain the Page PublishingPageCollection publishingPages = PublishingWeb.GetPublishingWeb(web).GetPublishingPages(); PublishingPage page = publishingPages.FirstOrDefault(f => f.Uri.AbsoluteUri == "YOURPAGEURL"); if (page != null) { //Allow file modifications bool webAllow = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; SPFile file = page.ListItem.File; //Unpublish …
Sigue leyendo Checkin/Publish and Unpublish/Checkout SharePoint Pages Programmatically
CAML Query Auto-Created in C# with Loops
This is a function in order to create a CAML Query specified for Filters. Once we have the filters, we've to create the parameters for the function, following this template: Parameters Template Name1|Type1|Operation1|Value1,Name2|Type2|Operation2|Value2... [Operation property can only be "Equal" or "Contains", 'cause that's what I need, but it can be modified] Example Title|Text|Contains|Document,Category|Choice|Equal|Docs [Filter items …
Empty DropDown After Submit your Form and Information Lost
My case: It's a standard register form created in a SharePoint WebPart (but this error could happen even if you're not using SharePoint). When I submit the form, sometimes I loose the information of DropDowns (but not the information of textboxes) and it seems to happen randomly. I checked the packages sent with Wireshark and …
Sigue leyendo Empty DropDown After Submit your Form and Information Lost
SharePoint 2013: Create JS File From HTML Display Template
When you create a custom Display Template and you deploy it, you can see the HTML uploaded, but you can't see its JS (created automatically in theory). Problem: You don't have the correspondent JS of your HTML Display Template Solution: 1. Access to your Site with SharePoint Designer 2. Go To: All Files -> _catalogs …
Sigue leyendo SharePoint 2013: Create JS File From HTML Display Template