Recovery Manager for SharePoint Premier Edition
Migration Manager for Sharepoint
Server Administrator for SharePoint
Migration Suite for SharePoint
Migrator for SharePoint Online
I am using a qlist web part custom field to parse a section of a url.
We need to get the current item url, and display any one of the segments of the url for example:
If the URL = https://servername/sites/subsite1/subsite2/subsite3/doument.doc
How do we display the value of a portion/particular segment of this url?
For example, I want to display /subsite2 in a custom column using the qlist web part.
Could someone please provide me a code snippet that can be used in the calculated element in the custom field? Is there any alternative ways of performing this, if so could you elaborate?
You can try to use the ‘Calculated Value’ setting in Custom Field, something like this:
<a href= https://servername/sites/subsite1/subsite2/subsite3/<%Name%>>/subsite2</a>
Thanks for the quick reply, unfortunately this is not what we are trying to do. We need to enumerate the current item URL automatically and have it parsed into segments that we can display each segment in its own custom fields when viewing the list in the qlist web part.
Custom column1 - https://
Custom column2 - server.domain.com
Custom column3 - site collection
Custom column4 - sub site1
Custom column5 - document or item name