none
Add project sites list and libraries in Project Detail Page(PDP) RRS feed

  • Question

  • I am creating the project detail pages (PDP) in project online and in that i am trying to put project site list and libraries .So that when i create a new project in that project detail pages (PDP) the list and libraries related to that project will be visible . As well as when i saved the data in those list and libraries those data will be saved in the list and libraries of that particular project site.Kindly suggest any solution.

    Thanks in Advance.

    Sunday, November 24, 2019 8:54 AM

All replies

  • Hi Ashish,

    My simple suggestion is, display the project site in an Iframe of the PDP and make sure the URL Should be dynamic so that for every project it should fetch and display its own Project site.

    Also, make sure that you enable the "User Permissions sync" so that the project team permissions will sync accordingly. 


    Rajkumar Allepu (MCP) , | https://sharepointprojectserver.com ** Please mark it as answer if my answer would resolved your issue.

    Monday, November 25, 2019 9:20 AM
  • Hi Raj,

    Thanks for the reply. I tried this but the issue is that i have to add multiple list and libraries in one PDP. So when one list or library is working than other is giving 404 error. As well as ribbon of that list or library is also coming. So is there any way to hide ribbon.

    Can you have any query regarding the same.


    Monday, November 25, 2019 2:12 PM
  • Hi Paul,

    Thanks for the reply. I tried this but the issue is that i have to add multiple list and libraries in one PDP. So when one list or library is working than other is giving 404 error. As well as ribbon of that list or library is also coming. So is there any way to hide ribbon.

    Monday, November 25, 2019 2:13 PM
  • Hello,

    That solution starter included in my blog post link handles multiple lists (Risks and Issues in that example). There is no query string parameter to hide the ribbon like we can for the page header / nav. Not sure if will work in the iframe approach above but here is an example using jQuery to hide the ribbon: https://davidlozzi.com/2014/10/28/sharepoint-hiding-ribbon-and-more-with-isdlg/

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Monday, November 25, 2019 11:04 PM
    Moderator
  • Yes, you can hide the ribbon. 

    Use the below script to hide the ribbon.

    <script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

    <iframe id="myiframe" width="1400" height="1500" src="<<Your project site URL>>"></iframe>

    <script type="text/javascript">
        $(function () {
            $('#myiframe').load(function () {
                $(this).contents().find('#ribbonBox').hide();  // or u can use :
    s4-ribbonrow also   
            });
        })
    </script>


    Rajkumar Allepu (MCP) , | https://sharepointprojectserver.com ** Please mark it as answer if my answer would resolved your issue.

    Tuesday, November 26, 2019 5:29 AM
  • Thanks for reply Raj It worked. But after that one issue that i am facing that auto height adjust of content in iframe. Now as we provided the height and width of content in iframe .can we do something so that content in iframe with auto fit without any scroll bar.
    Thursday, November 28, 2019 8:47 PM
  • Yes, you can auto fit the Iframe  size. Try below

    <iframe src="..." frameborder="0" scrolling="no" onload="resizeIframe(this)" />

    <script>
     
    function resizeIframe(obj) {
        obj
    .style.height = obj.contentWindow.document.body.scrollHeight + 'px';
     
    }
    </script>


    Rajkumar Allepu (MCP) , | https://sharepointprojectserver.com ** Please mark it as answer if my answer would resolved your issue.

    Friday, November 29, 2019 4:50 AM