Kashif Nizam Qureshi

Adding Link in Project Detail Page (PDP) to Project Site List

Leave a comment

To add a link in PDP that will navigate to Project Site List, add the following script in a content editor.


<p>
<a href="/PWA/SiteAssets/jquery-1.10.2.min.js">/PWA/SiteAssets/jquery-1.10.2.min.js</a>

function proj1() {

var projuid= PDP_projUid;
var url="/PWA/"+ PDP_projName +"/_layouts/15/start.aspx#/Lists/Assumptions%20and%20Constraints/AllItems.aspx";

window.open(url,'_blank');
}
<a href="javascript:proj1();">Click here to Enter and Preview Assumptions and Constraints Details </a></p>

//var $j = jQuery.noConflict();
//function getParameterByName(name) {
//name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
//var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
//results = regex.exec(location.search);
//return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
//}

<p>
</p>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s