Returning user profile properties on a page layout in SharePoint Online? - sharepoint

On my SharePoint 2013 dev environment this code in a custom page layout brings back the current users first name:
<SPSWC:ProfilePropertyValue runat="server" TitleMode="true" PropertyName="FirstName"/>
However if I add this to a page layout in SharePoint Online in Office 365 it returns nothing (just blank).
Is this a possible bug or by design?
I want to bring back this property server side rather than with client side scripts as I want to be able to use it before doc ready.

I discovered the answer was because you need to use the 'ProfilePropertyLoader' tag first eg:

Related

SharePoint 2013 online customize personimmersive page

I want to customize the SharePoint 2013 online(office 365) "About me" linked page (personimmersive.aspx) to a custom look and feel.
Even clicking on any SPUser name, for ex in a list item modified by is "John Smith" if we click on it goes to about me page.
This page resides under mysite but I cannot see this page is SharePoint 2013 designer to edit, but modifying SharePoint pages in designer is not always the best way.
Can I just create a new page and redirect all Profile page request to that custom page?
IF I create app parts and edit the page I cannot edit the top portion of the page.
redirecting may not be a feasible approach, specially on the online versions
you can try to take advantage of web parts and css to do what you can
The biggest change is that you can’t edit the entire top portion of
the page. These used to be in a web part zone, and you could choose to
add/remove the web parts. Now they are fixed, with no ability to move
them around or change the parts.
We had removed the Activity Feed web part previously because we were
using Yammer newsfeeds and group feeds embedded throughout the site,
and this part always showed “No activities”. Now this is back again,
with no way to remove it, short of editing the page in SharePoint
Designer.
There are still web part zones on the bottom, but really the problem
is no control over the display of most of the top of the page.
http://weshackett.com/2014/04/office-365-new-profile-page/
There is personImmersive.aspx in SharePoint Designer, you should be able to find it in All Files. Just make sure you connect to [your_domain]-my.sharepoint.com instead of [your_domain].sharepoint.com.
you can't customize the page completely.However you can add custom web part and custom css to change the look and feel to a great extent.
#tiago duarte you can still remove the activity web part.This can be done using script editor webpart and hiding the complete block/div.

How can I get my custom field type (lookup) to render in list view on SharePoint 2013?

I have a custom field type that was built for SharePoint 2010 that I have installed on SharePoint 2013 Foundation. The wsp installed perfectly and I get all the same functionality.
The one problem I am having is how the information is displayed in the list view. I am inheriting an SPFieldLookup and am not doing anything to override how this is displayed in the list view.
On SharePoint 2010 it renders perfectly as a hyperlink to the item which opens the standard pop out window on click etc. On SharePoint 2013 Foundation however the html doesn't render properly at all- it is almost as though it is displaying as plain text.
SharePoint 2010:
SharePoint 2013 Foundation:
My question is how can I get the lookup value to render properly on SharePoint 2013?
The same version of the wsp in installed on both machines.
Unsure as to whether this was simply a browser or client side issue I added a standard lookup field to the list and it renders fine!
I had the same issue with my codeplex project which is based on Lookup field. I added a link to dummy JS file and overrode the JSLink property of the field class. I have blogged about it here: http://sharepointnadeem.blogspot.in/2013/12/sharepoint-2013-upgrade-sharepoint-2010.html
In SP 2013 by default field rendering is done on client side. Concept of JSLink has been introduced if you want to change the look and feel of field.
However by ClientRender=False in new form url you can force it to server render mode.
So after an afternoon of head scratching it turns out that this is not a deployment issue. It probably didn't even warrant a question but for anyone who has the same problem as me...
If you edit the page and modify the listview settings you will see that there is a new setting called "Server Render".
I guess this ultimately gives you more control but in may case it prevented my fields from rendering as expected- turning this on meant my custom fields we once again displayed 'normally'.

Create Dynamic TFS Query in SharePoint Portal

We have recently moved our project over to TFS 2010 for CM control and issue tracking. For the most part we have been happy with the move. However, we have found that we need a way to allow users (notably our help desk) to write dynamic queries against our Product Backlog. The Query Results Web Part works fine for displaying information like Outstanding Work Items and Recent Issues, but our users need the ability to query for specific information that can change from support call to support call. Is there a way to allow a user to create a custom, dynamic query in TFS? If not are there any 3rd party tools that integrate with SharePoint that would allow this?
Thanks.
TFS 2010 has a web based user interface called Web Access. Users can create and view their own queries from there with the queries part of te app; they can also search for work items by words contained in their titles
By default, there is typically a link on the upper-left to it from the SharePoint site that TFS 2010 creates. If the link is not there you can access it directly its (default) URL: [http://address-of-your-TFS-server:8080/tfs/web]
I decided to use the Page Viewer Web Part to embed the actual query form from the Team Web Access to the Project Portal. Everything seems to work great when doing that. The only downside is you get a 'Nag Dialog' whenever you leave the page.

SharePoint 2010 Visual Web Part Vs. User Control on the Masterpage

I'm new to SharePoint 2010 development and I was wondering if it was possible to add the new "Visual Web Part" to a masterpage. In 2007, I would create a user control and put the ascx reference in the masterpage. Should I continue to do the same thing for 2010 or I can I use the Visual Web Part prototype to do the same thing?
A Web Part is just a control that can be placed on a page (via a Web Part Zone) by an end user rather than a developer. But it's still a control. So, as a developer, if you want to place it on a page (or master page) at design time, you can do that.
However, if this web part is only going to be used on the master page, then you might want to continue using a custom user control like you did in SharePoint 2007. There is no need to have the extra overhead of making it available to end users if it is only meant to be used once on the master page.

Title Bar with a picture in Sharepoint

We have the standard Sharepoint site for our group at work and was wondering if we could add into the title bar where our group name is (like to the right of it), or above the announcements/calender widgets a
picture that resembles our group
and a mission statement right next to it
Does anyone know if this is possible? Thanks.
If you have the appropriate permissions, you can edit the page (More likely the master page) for the site using SharePoint Designer which is free from Microsoft. If you upload the image you want to a document library you can use that url for the img src.
SharePoint Designer 2010
SharePoint Designer 2007
But a simpler solution would be to edit the page, add a new web part and choose the Content Editor Web Part where you can put your mission statement and an image (that you previously uploaded to a document library).
You don't specify which version of SharePoint you are using, but changing the logo of a site hasn't changed much since the 2003 version. Office.Microsoft.com shows the user perspective of changing a logo. You could change the same setting through the API.

Resources