Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Calculated field function for current site

$
0
0

1. I am using a calculated field in a list. The calculated field displays a particular URL. The Url should be in the below format:

<current site>+"Images_KPI/abc.jpg"

Eg. http://abc:3000/sites/trial/Images_KPI/abc.jpg

The current site will keep changing based on where the application is deployed. Is there a particular function to use to get the current site.

2. Same is the case with a hyperlink i used on the homepage. Source code as below:

<div class="ms-rteFontSize-4 ms-rteThemeBackColor-5-1" style="text-align: left"><a href="/sites/trial/Lists/abc/Item/newifs.aspx">​New</a></div>

I need the section "/sites/trial/" to change based on the site/site collection the application is deployed to. Is there a particular function to use to get the current site.

 


Viewing all articles
Browse latest Browse all 2319

Trending Articles