Displaying page contents (including webparts) on aggregation page

CASE: Publisher can dynamically create pages in document library. Single page can have webparts embedded inside body text field. We have archive page which should aggregate all those pages and display them one under the other including webparts. In order
to do it, we have a caml query which takes body of all pages and in user control we are creating html using repeater and eval function. As an output we get rendered just text of each page without webparts. Html output code for a single page with webpart looks
as follow:
<p>body test</p> <div class="ms-rtestate-read ms-rte-wpbox"><div unselectable="on" class="ms-rtestate-notify ms-rtestate-read dd3ab381-9fbc-457c-8eba-3c75ad29f5fd" id="div_dd3ab381-9fbc-457c-8eba-3c75ad29f5fd"></div>
<div unselectable="on" id="vid_dd3ab381-9fbc-457c-8eba-3c75ad29f5fd" style="display:none"></div></div> <p><br /></p>
Q: How to render webparts along with the rest of the (styled) content using a repeater?

Hi,
According to your description, you might want to aggregate the content of other pages into one page.
Other than using Repeater, a workaround I would more recommended is that you can use the OOTB web part “Page Viewer Web Part” which can help to get the content of
other pages easily.
More information about
Page Viewer Web Part:
https://support.office.com/en-gb/article/Display-a-Web-page-on-a-SharePoint-page-by-adding-the-Page-Viewer-Web-Part-7f61feec-9b3d-4805-a960-07636ba59527
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • How to center a content editor webpart on a page

    I've a content editor webpart with a linked js that display a searchbox. I'd like center my webpart in the page
    Here is the html in my js file
    <div style="display:table; margin:0 auto;width:100%">
        <div style="float:left">
            <input type="text" id="tbSearch" name="tbSearch" class="ms-sbplain" style="width: 368px;" onkeydown="if (event.keyCode == 13){launchSearch();return false;}">
        </div>
        <div style="float:left;border-width: 1px; border-style: solid; border-color: #c3c3c3; border-left-width:0 ">
            <img  onClick="launchSearch();return false;" title="Search" class="srch-gosearchimg" onmouseover="this.src='\u002f_layouts\u002fimages\u002fgosearchhover30.png'" onmouseout="this.src='\u002f_layouts\u002fimages\u002fgosearch30.png'"
    alt="Search" src="/_layouts/images/gosearch30.png"/>
        </div>                                  
    </div>

    You could wrap the contents of your content editor web part in a div and apply styling/attributes
    to the div to center it on the page.
    as 
    You should be able to get the ID of the Search Web Part and then use the align center code.
    align="center"

  • Does not display all content after first loading of page

    Hello all,
    I am having quite strange problem which is hard for me to figure out.
    I have 8 buttons on my web site. Each button will display different content. My page is: www.itconnect.co.nz
    When you go to my page first time, by default "Design & Software" button will be active. Here when you look on first photo you can see that the bottom part is missing - logos.
    However when i click again on "Design & Software" button the missing content will appear.
    What could be the problem ?
    Thank you to everyone who would like to help.

    I am little confused as i don't use flash - only for the Captcha.
    The way i did is:
    <div class="sp">
        <div class="tabs">
                    <span class="repairs">Repairs</span><span class="design">Design & Software</span>
                   <span class="security">Security</span><span class="networking">Home Networking</span>
                    <span class="communication">Communications</span><span class="cloud">Cloud Solutions</span>
                    <span class="maintenance">Maintenance</span><span class="remote">Remote Support</span>
          </div>
          <div class="panel_container">
                    <div class="panels">
                                    <div class="panel repairs">
                                                    <div class="panel_content">                       
                                                                    HERE GOEST THE CONTENT
                                                     </div>
                                    </div>
    <div class="panel design">
                                    <div class="panel_content">
                                                                    HERE GOES THE CONTENT
                                                    </div>   
                                    </div>
                                    AND SO ON FOR THE OTHER PANELS
                        </div>
    </div>
    </div>
    For my CSS I have:
    .sp {
                    width: 960px;
                    position: absolute;
                    margin-top: 0px;
                    margin-right: 0px;
                    margin-bottom: 10px;
                    margin-left: 0px;
    .sp .tabs {
                    width: 41%;
                    float: left;
                    height: 450px;
                    display: table-column;
    .sp .panel_container {
                    width: 58%;
                    float: right;
                    overflow: hidden;
                    position: relative;
    And for the animation I use JavaScript.
    Thanks in advance

  • Include Apple blog pages "content" in a "Normal" web page

    I am currently reading up about this - but if someone outthere has already done this then please let me know.
    I have an Xserve running 10.4.x and have the blog software active. I want to include the content from one of the blogs into a web page... ideally NOT a frame but i suppose i could do it that way.
    Is there any easy way to include the blog content?

    just about every programming/scripting language has libraries for reading RSS feeds. you could possibly use RSS-2-JavaScript ( http://www.rss-to-javascript.com/p/RSSRDF-Converter_138.html ). plugin your RSS feed url and it will let you customize the output. be sure to use http:// at the beginning of the feed url rather than feed://
    if you are using php, jsp, asp, etc... for your site you do have many more options.
    powerbook   Mac OS X (10.4.8)  

  • In a Frame someother page content gets loaded (always I get indianrail.gov.in home page content in frames of all pages)

    If I load any page using Mozilla firefox, I find Indian Railway site home page coming up in some of the frames. This problem does not occur in Internet Explorer.
    I have uninstalled and reinstalled Firefox but this problem continues. If required I can provide a screen shot of the problem. For example : If I need to design a template for any site, I should get a blank box for template design. But in Firefox, this blank box is filled with Indianrail.gov.in website home page not allowing me to do any work. Pl help in solving this issue.

    You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks.
    You can't recover from this 'forget' unless you have a backup of the affected files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Spry vertical menu causes page content to move outside of page layout

    In live view the problem can not be seen, but when viewed in Dreamweaver CS4 design view, see attached .jpg you cna see the problem quite clearly.
    Is this something one has to live with or can i make the menu sit back on the side bar as one would expect it to. Thx
    Amber

    Its more a dreamweaver thing than a Spry thing. I suggest you post the topic at the dreamweaver forums.

  • Unable to see page-content control filed in subsite level for responsive sharepoint site !!

    Hello.
    Actually, I am facing unexpected issue with responsive design package for SharePoint 2013 environment. I
    am done with lots of try here and there but no luck yet so finally putting my issue here to get the help on this.
    I have applied responsive design package from this codeplex solution - http://responsivesharepoint.codeplex.com/
    Which is working as expected , however when I add the following snippet in "Banded" Page layout , I am unable to see the Page Content field on pages at subsite
    level, however I can see the same field on root site pages of site collection.
    <!--CS: Start Page Field: Page Content Snippet-->
    <!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--MS:<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify)--><div id="ctl02_label" style="display:none">Page Content</div><div id="ctl02__ControlWrapper_RichHtmlField" style="display:inline" aria-labelledby="ctl02_label"><div align="left"><div nowrap="nowrap"><span nowrap="nowrap">Page Content</span></div><div><div>Page Content field value. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div></div></div></div><!--PE: End of READ-ONLY PREVIEW-->
    <!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
    <!--CE: End Page Field: Page Content Snippet-->
    can you please direct me to resolve this issue ? ( I wonder
    if anyone has face the same )
    Even , I don’t see the page content field in sub site pages for default "Blank Web part Page layout".
    I have also noticed that in responsive design webpart page layout is having only
    "Page Image" field in first row as shown in following screen:
    While in default publishign design , I can see many page content fields as shown
    in following screen:
    Is this by responsive design ? or Is there any problem in page layout - I am not sure !! :(
    Looking really forward for the resolution on this issue.
    Thanks and Best regards,
    Dipti Chhatrapati

    Hello,
    Just sharing the root cause of this issue which may help to others facing same.
    The reason behind this behavior was actually silly :) which is always the case once we know it !
    somehow , page content types was not having "Page-Content" filed rather it was using publishing columns but not page layout columns and hence I was unable to see the page layout columns in my page.
    Thanks and Regards,
    Dipti Chhatrapati

  • Content Query Webpart not getting displayed in Mobile view

    Hi,
    I am having a Content Query Webpart in my page.
    In the mobile view it is not getting displayed.
    I read that you can create mobile adapters for the control. But I didnt get how to do it for Content Query Webpart.
    Any help appreciated..

    Is deactivate "Mobile view" a option for you? if then then CQWP will work in same page. You can deactivate that feature from site feature.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Shift or Adjust All Pages/Content for Print

    Is there a way to shift all content in an entire publication by specified amounts, from one central location or command - as a temporary "effect"?
    I work with a document containing a set of labels (@70) that print the variable, b&w text portions of products onto otherwise pre-printed labels (color background images and logos).
    I export the document to PDF for printing the labels, because the production crew that prints the labels on demand doesn't have access to InDesign (nor do I wish to teach them to use InDesign). So I'm actually printing from the PDF, but nevertheless all the content therefore has to be shifted in InDesign.
    When printing, the printer always prints off by @ 1/16" in one or more dimensions. (Changes with the weather, too; or maybe with wear on the printer.) This printer does not have functionality in its driver to shift the page images.
    (Getting a different printer is not an answer. We have to have certain printers because they set the ink hot enough to make it stick to the labels, but are still affordable enough. Besides, every printer ends up having its quirks - even our larger printer that is the exact same as those used by Kinkos for more routine color printing.)
    Given the quirks printers always have, I'd be sorely surprised if InDesign doesn't offer some functionality to easily allow shifting of all content before printing, exporting to PDF, or other purposes; but I can't find any sign of such a feature. This would be a useful feature, Adobe folks (hint, hint ).
    My prior solution for smaller label sets I've created in InDesign, is to create a new layer, copy all content, including those on master pages, and then shift that content, thereby maintaining an exact, true layout for future needs, too. I really don't want to do this for 70 labels, though; plus it'd be nice to not have the worry of potentially creating out-of-sync content between the different layers.
    I see Liquid Layouts, but I don't think that'll accomplish what I need any better. I need the page to stay the same size with the content in a slightly different place on it, not to change sizes. Can Liquid Layouts be made to work anyway? It could at least keep the content synced.

    I tried to dig up some links for  you re: InDesign's excellent support for automation in Javascript, but it seems like recent changes to Adobe help resources have caused link breakage, e.g. what should have been a link to the CS5 Scripting Guide was actually a page about how cool InDesign CS6 is going to be. In Turkish. You don't read Turkish, do you?
    If not, forums regular Jongware has a bunch of really useful Javascript reference material publicly available in a variety of formats.You may want to pay a visit to the InDesign Scripting Forum if you are interested in that kind of thing.

  • How can I insert multiple page contents in the page layout properly?

    I wanted to create 4 columns on the page layout. These 4 columns are of page contents.
    After creating new web page based on that page layout, I attempted to enter 4 different inputs on all 4 columns.
    Then, the result (from all columns) becomes the same.
    Image - edit the web page based on 4 columns page layout:
    Image - after edit & save:
    How can I insert multiple page contents in the page layout properly?

    First, I copied the HTML snippet for the Page Content on Sharepoint's Design Manger. The code of Page Content HTML snippet is shown below:
    <div data-name="Page Field: Page Content">
    <!--CS: Start Page Field: Page Content Snippet-->
    <!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField"
    Namespace="Microsoft.SharePoint.Publishing.WebControls"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--MS:<PageFieldRichHtmlField:RichHtmlField
    FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify)-->
    <div id="ctl02_label" style="display:none">Page Content</div>
    <div id="ctl02__ControlWrapper_RichHtmlField" class="ms-rtestate-field"
    style="display:inline" aria-labelledby="ctl02_label"><div align="left"
    class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer"
    nowrap="nowrap"><span class="ms-formfieldlabel"
    nowrap="nowrap">Page Content</span></div>
    <div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">
    Page Content field value. Lorem ipsum dolor sit incididuntet dolore.</div>
    </div></div></div><!--PE: End of READ-ONLY PREVIEW-->
    <!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
    <!--CE: End Page Field: Page Content Snippet-->
    </div>
    After I published the page layout, I found the code for Page Content from its ASPX page. The code is shown below:
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/></div>
    So, I attempted to create 4 columns by using 4 HTML snippets of Page Content on the same page layout. The page layout is generated from HTML file to ASPX file.
    Then I edited some parts in ASPX page layout:
    <asp:Content runat="server" ContentPlaceHolderID="PlaceHolderMain">
    <table>
    <tr>
    <td style="width:70px;">&nbsp;</td>
    <td style="width:250px; text-align:right;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:40px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:175px;">&nbsp;</td>
    </tr>
    </table>
    </asp:Content>
    The 4 columns for Page Contents appeared on the web page when I created new page using that page layout. But the problem is that all 4 columns displayed the same result from 4th column.

  • I need help using multiple content types in a wiki page library

    I currently trying to used multiple custom content types based off of the wiki page content type in one wiki page library. 
    EDIT: "Allow management of content types" has been enabled with the designer
    The way i would like this library to work is:
    Click the "Files" tab in the ribbon
    Click the "New Document" drop down menu
    Select one of the content types (Client, Contact, Project)
    SharePoint Will Ask for the Page Name and content type fields
    Click create
    Then it will take you to the new created page.
    This issue I'm currently having is when i click on one of the options (Client, Contact, Project) it will ask for a page name then you have to check it in to get to the edit form. The edit form it then loads is the default content type and not the selected
    content type.
    So my questions are.
    Is there any way i can combine the page name and edit steps together into one step?
    How can I get the edit form to pull from the selected content type?
    Thanks in advanced
    James T.F

    Wiki library isn't really designed for customizations... it's a "special" library that overrides a lot of default behavior... similar evidence can be found if you're trying to add metadata columns to wiki pages... they're just not really designed to handle
    it very well.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How can I resize a pdf page content with annotations and highlights in Acrobat Pro?

    How can I resize a pdf page content with annotations and highlights in Acrobat Pro while maintaining page size and annotation/highlight interactivity? I've tried to use the crop tool in Acrobat Pro (9) and the page does resize, but the highlights and annotations go all over the place. I specifically need to scale the page content smaller (83%) but maintain page size and annotation/highlight to content connection and interactivity.

    An old trick (not recommended) would be to print to a new PDF with the page size selected but a scaling of the content. Only print the document, not the markup, to a new PDF. Close that PDF when done and reopen the old one (or maybe a copy of the old one for safety) and use Document Replace pages and select the new document to replace your current pages. You will then have to go back through the markup to locate it all correctly. There may be a more elegant way, but this may be the fastest.

  • Multiple Page Contents Page Fields In Custom Page Layout SP2013

    I'm rather new so bare with me.  I'm trying to add multiple page content page fields with snippets to a custom page layout html file in SP2013 Designer.  Once I add the snippet and publish, I review the page and any text written
    in the last created page content box saves for both page content boxes instead of saving unique text in both.  How do you change the snippets to where they are unique snippets and won't be referenced as the same one? 
    Any help is greatly appreciated.
    Thanks,
    SP2013Newbie

    ok thnaks a lot for the reply. in my form has 6 pages. so i want to copy only first page half page data ( content & fillble fileds) in to new pdf page. so is this possible ???

  • Using Content Query webpart for specific Document library with multiple managed metadata - Document with multiple metadata tags not showing up

    Hi,
    I am having an issue where when I insert a Content Query webpart into a page, and filter to managed metadata, all the right documents show up except one document that happens to have two metadata tags attached to it.  The content query webpart is set
    to only look through a specific document library.  I'm not sure what I am doing wrong.
    Here is the one document with two metadata tags:
    Below is the Content Query:

    Hi,
    As I understand, you did not get the results with multiple metadata tags through Content Query web part in SharePoint 2013.
    Check things below:
    1. Check if you have set the item limit more than the display items in Presentation section of the web part. If the item number more than item limit, the rest items will not show.
    2. Check if the item you cannot find uses the content type you have set in the content type section of content query web part.
    When you edit the properties of the item, you will see the content type the item is using.
    Best regards
    Sara Fan
    TechNet Community Support

  • Content Query Webpart -- Display part of the Page Content field

    Hi,
    I am using the following to display the first 200 characters of the Page Content field. However, when the Webpart is loaded, it displays not only the Content, but also the html (please notice that this has a html field type)
    Code:
    <div class="description">
      <xsl:value-of select="substring(@PublishingPageContent, 0, 200)" disable-output-escaping="yes"/>
    </div>
    In the Browser, the content looks like:
    <span id="ms-rterangepaste-start"></span><div>Test</div><span id="ms-rterangepaste-end">Page Content</span>
    As oppose to just :
    Test
    Page Content
    Is there something missing from the code? Please advice, your help would be greatly appreciated.

    Hi,
    If you writing the content within the Richtext filed you may not this kind of issue.
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

Maybe you are looking for