Get GUID in custom WPC page layout

I'm developing a custom WPC page layout with an embedded Visual Composer flash file. Since KMC web pages are stored in KM I can use the KM Java API to access properties on the document in KM. I want to use this technique to let users store a value at design-time and use this value to generate the code to view the VC flash file at run-time. I've managed to get everything to work except for one small detail: The only way I've been able to get a reference to the document in KM (as an IResource object) is by reading the GUID from the URL, and this is only available at design-time and when previewing the WPC web page, not at run-time when the web page is opened through portal navigation.
Does anybody know of a way to get the GUID (or any other reference) to the current KM document from a page (JSP file)? I have the page and WPC taglibs available, and of course the request object.
Thanks,
Terje Bjørgum

It's all in the DOCTYPE declaration that  you see in a typical HTML page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
SAP/WPC usually don't have this properly placed or is missing from any of the pages you create. Once you publish the page you created, view its source by right-click -> view source on the browser. You may be surprised that the DOCTYPE declaration is not there at all and the DOCTYPE declaration tells the browser how to render the page along with the CSS that you may have.

Similar Messages

  • Custom publishing page layouts have undesirable overlapping effect in edit mode

    I am very new to SharePoint branding.
    I've created several custom page layouts using SPD.  They are used in publishing site collections with basic web part zones in various <div>'s for layout purposes.  The issue I've run into is that while in display mode the pages work fine,
    but in edit mode there is an undesirable overlap that causes the web part editing panel to become obscured or unusable. 
    I have ran across a few search hits that seem to dance around this topic, but nothing I've found thus far has truly addressed my issue.  Am I editing the CSS, master page, page layout or something else to ensure the edit mode is functional?
    Thank you all for your time and expertise.

    I have solved my own problem, but felt it might be necessary to document it here for those just starting out.  For a page layout to display properly, at least for me, I had to invoke the corev15.css classes in my <div> tags to convert to table
    elements when switching to Edit mode.   While this is ultimately not my first choice, I was able to add some custom styles in this CSS file to style my div's in a more suitable fashion. 
    On a publishing page, you may have code inside your <asp:Content> tag like:
    <div class="welcome welcome-splash">
    <PublishingWebControls:EditModePanel runat="server" CssClass="edit-mode-panel title-edit">
    <SharePointWebControls:TextField runat="server" FieldName="Title"/>
    </PublishingWebControls:EditModePanel>
    </div>
    From here, I had begun to style my <div>'s with inline CSS but it will break in Edit mode. Here's where I realized you needed to keep consistent with the corev15.css. Here's what should follow: 
    <div class="ms-table ms-fullWidth">
    <div class="tableCol-75">
    <div class="cell-margin">
    <WebPartPages:WebPartZone id="g_E35F979436254554ABCD54B2AD28A4BF" runat="server" title="Header"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    <div class="ms-table ms-fullWidth">
    <div class="cell-margin tableCol-50">
    <WebPartPages:WebPartZone id="g_A61037130DF64BF09145576D6DB1C679" runat="server" title="Middle Left"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    <div class="cell-margin tableCol-50">
    <WebPartPages:WebPartZone id="g_F8C0B2FDD77749B3B9274445692F056B" runat="server" title="Middle Right"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    </div>
    <div class="cell-margin">
    <WebPartPages:WebPartZone id="g_7BBC1C180FD84BF08E9E96ED9C5D2B33" runat="server" title="Bottom"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    </div>
    <div class="cell-margin tableCol-25">
    <WebPartPages:WebPartZone id="g_A32DD6684EF447559FF3D6A1539735D4" runat="server" title="Right"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    The above code makes a typical 75:25 2-column page with two additional spaces in the left side for extra web parts. I hope by posting this example I can help other young budding SharePoint branding people to get their feet wet. Thank you all for viewing my
    issue and I think this can be marked as closed now.

  • How do I get back the e-mail page layout I had in previous version?

    In previous version of Firefox, in SmartZone, I could do away with the ads on right side by clicking arrow and widening screen to show list of e-mail messages. I also had boxes next to each message to check to delete message. After I downloaded message I could click on each file and get a thumbnail version of file, usually a photo. CAN'T DO THAT NOW!
    How can I customize my screen to the way it was? Do I just revert back to previous version?
    Please advise.
    Thanks

    See also:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    The "Use custom settings for history" setting allows to see the current history and cookie settings, but selecting that setting doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" setting as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".<br />

  • Customized Page Layout templates

    How to develop new customized community page layout templates.
    Eg, I need to have a template with more than 3 column layout and also a 3 column page laypout template on which the first column will be the widest.
    Anyone can help me on this or guide me to some documentation reg this. Can ping me at [email protected]
    Regards,
    Satish

    Satish,
    I believe you are talking about portlet layout, not page layout. Page layout is related to navigation, while portlet layout deals with how you want your portlets to display and Developing custom portlet layout is very hard.
    It is not the layout aspect that is hard - you can edit MyPortalContentView to tweak the layout and use Activityspaces override to plugin your custom MyPortalContentView (see devcenter.plumtree.com for documentation on this) - it is all the other parts.
    For example, you can create a 4 column layout, but that would mean that you need to add this new portlet layout to the layout picker in the Edit Page editor, and you need to figure out how to store portlet to the 4th column and deal with wide and narrow portlets in the new column.
    The only situation where it would be feasible to create new column is if you have put one or a few hardcoded portlets there to avoid the management issues, but that is not trivial either, as you have to write custom code against the Server API.

  • Working with master pages and page layout, what I have been doing wrong

    I have worked on customizing the page layout and the master pages for a couple of site collections.
    But now I read two restrictions which I was not following 100%:-
    I should avoid directly modifying any default templates, and instead of that I should take a copy and modify the copy. So that any future updates will not override my modifications.
    Also I should avoid directly modifying the .aspx files, and instead of that I should edit the html file which will automatically reflect on the .aspx files.
    So currently I have these cases inside my SharePoint sites:-
    Inside my enterprise wiki site collection, I have being modifying the Enterprisewiki.aspx page layout, for example I added new columns such as Page title and I remove the page rating, also the chnaged the color and format for the page fields.
    Inside my team site I took a copy of the seatle.master master page (I name it seatle_copy.master)and I apply my modification to the seatle_copy.master directly and not inside the .html file. Even I do not have a html version for the modified seatle_copy.master?
    So can anyone advice how I can fix these two issues. For the first issue how I can make sure that my modifications to the EnterPriseWiki.aspx page layout will not get override during any future update.
    also how I can generate an html version for my current seatle_copy.master file so that I can modify the seatle_copy.html instead of the seatle_copy.master in the future?
    Please can anyone advice?

    Hi johnjohn123,
    1. I would definitely make a copy of the EnterpriseWiki.aspx page layout and make changes to that. You can then set your pages to use your custom page layout. Typically, I provision these via Visual Studio and a module for uploading them to the SharePoint
    master page gallery.
    2. For the master page, the html version is new to 2013 and is meant to simplify branding, however, it's not required. You can still work within master pages and provision those via features if you'd like. The key is to create your own master page and never
    modify the default.
    If you need code samples for any of the above, let me know and I can supply it.
    Shereen Qumsieh http://sharepointdeveloperhq.com @msshushu

  • Custom Master Page for Cases in eDiscovery

    We are creating eDicovery site using custom site template. Site gets created using custom master page that we have set. Now, there are two option to create New Case.
    #1. Use "Create New Case" button on Right Top Corner on home page
    #2. OR Go to cases link on Left hand side menu i.e. ('ViewCases.aspx'  page)
    Problem 1...
    this viewCases.aspx application page from _layouts uses seattle.master by default. how to change this?
    Problem 2...
    If we hover on "create" link on cases page, we see URL as [URL]/newsbweb.aspx?ID=3300.
    if we click on this link custom templates for creating cases are not visible. obviously, if I create case using OOB template it will use seattle.master page.
    If we remove ID=3300 from browser URL string and refresh, custom templates are available and I can create cases using custom template with my custom master page.
    interestingly, "Create New Case" button mentioned in #2 redirects to same page newsbweb.aspx but with no ID parameter and works fine.
    Please help how to set master page for viewCases page and what is this 3300 and how to remove it from create link.
    Thanking in advance in anticipation of useful pointers.
    ++

    By default SharePoint 2013 detects and display the content based on the mobile device. Refer to the following post on how to disable the default view and create a custom mobile view
    http://academy.bindtuning.com/deactivate-sharepoint-2013-mobile-view/
    Cheers,

  • Custom control in custom page layout not getting shown

    Hi,
    I have created a site column for Date field:
    <Field ID="{GUID}" Name="MyCustomPageLayoutDate" StaticName="MyCustomPageLayoutDate" Group="TestGroup" Type="DateTime" Format="DateOnly" DisplayName="Date" Required="FALSE" ><Field ID ="{guid}" Name ="MyCustomLayoutDateDisplay" DisplayName="Date Display"
             Group="TestGroup"
             Type="Calculated"
             ResultType="Text"
             ReadOnly="TRUE"
             Required="FALSE">
        <Formula>=TEXT([Date],"MMMM dd, yyyy")</Formula>
      </Field>
    This is added in the page layout content type:
    <FieldRef ID="{guid}" Name="MyCustomPageLayoutDate" />  <FieldRef ID="{guid}" Name ="MyCustomLayoutDateDisplay" />
    In the custom page layout, it is added as below:
    <Publishing:EditModePanel ID="EditModePanel5" runat="server" CssClass="edit-mode-panel">
    <tr>
    <td>
    Date
    </td>
    </tr>
    </Publishing:EditModePanel>
    <PublishingWebControls:EditModePanel ID="DateEditModePanel" runat="server" PageDisplayMode="Edit" SupressTag="True">
    <tr>
    <td >
    <PageFieldDateTimeField:DateTimeField ID="DateTimeField1" FieldName="GUID" runat="server">
    </PageFieldDateTimeField:DateTimeField>
    </td>
    </tr>
    </PublishingWebControls:EditModePanel>
    <PublishingWebControls:EditModePanel ID="DatePublishModePanel" PageDisplayMode="Display" runat="server">
    <tr>
    <td>
    <SharePoint:CalculatedField ID="CalculatedDateField" FieldName="guid" runat="server" />
    </td>
    </tr>
    </PublishingWebControls:EditModePanel>
    In the edit mode, the date is getting shown, and I am able to select a date. When the page is published, the entered date is not getting displayed.
    How to fix this?
    Thanks

    Hi,
    I tried to reproduce this issue like this:
    1. Create a DateTime site column “MyDateTimeCol01”;
    2. Create a Calculated site column “MyCalculated03” with formula “=TEXT(MyDateTimeCol01,"MMMM dd, yyyy")”;
    3. Create a Page Layout content type contains the two site columns above;
    4. Create a Page Layout with the Page Layout content type, the source code of this page layout as below:
    <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
    <PublishingWebControls:EditModePanel runat=server id="EditModePanel1" PageDisplayMode="Edit">
    <SharePointWebControls:DateTimeField FieldName="9492c1ff-851f-4d1c-bcbf-5637b69ebd63" runat="server"> </SharePointWebControls:DateTimeField>
    </PublishingWebControls:EditModePanel>
    <br/>
    <PublishingWebControls:EditModePanel runat=server id="EditModePanel2" PageDisplayMode="Display">
    date time text:
    <br/>
    <SharePointWebControls:CalculatedField FieldName="9c00c4dc-6a53-4abd-9fa4-6b4dd266c898" runat="server"></SharePointWebControls:CalculatedField>
    </PublishingWebControls:EditModePanel>
    </asp:Content>
    5. After that, create a publishing page with this custom page layout:
    In Edit mode:
    In Display mode:
    I suggest you follow the steps above to make another test to see if the issue persists.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Custom page layouts are not getting displayed in ribbon

    Hi,
    I have created a custom page layout under welcome category. This is getting displayed in pages library while creating a page and also in page layout option from site settings which is fine. But when a page is in edit mode if we click page->page layouts
    from ribbon, all the default page layouts are getting displayed except my custom page layout.
    Please advise.
    Regards,
    Chaitanya.

    you have a subsite in a site collection •the publishing feature is activated in the subsite, but not in the site collection •you want to edit/add page layouts on the site collection level, to be used within your subsite •when you open the site collection
    in SharePoint Designer, you can't see Page Layouts in the Site Objects panel You now have 2 options: you can either activate the publishing feature in the site collection (and the Page Layouts link comes back), or you can use the All Files link and browse
    to the master pages and page layouts library (_catalogs > masterpage.) Either option will do, unless you really don't want the publishing feature in the site collection.
    To fix the issue go to Site Actions -> Site Settings in the upper left corner.
    Under "Site Collection Administration" click on "Site Collection Features".
    Look for "SharePoint Server Publishing Infrastructure" and activate it. It might take a moment to load.
    Next return to "Site Settings" and click on "Manage Site Features"
    Look for "SharePoint Server Publishing" and activate it. It might take a moment to load.
    If this helped you resolve your issue, please mark it Answered

  • Placeholder not visible in custom page layout - publishing site

    Hi,
    I have a custom page layout in publishing site.
    I had added a new textbox to the existing page layout as below:
    <tr id="trCustomContent2">
    <td id="tdCustomContent" style="padding-top:5px;">
    <div id="divCustomContent" style="padding-left:6px !important;vertical-align:top; width:450px;" >
    <h3>
    <PageFieldTextField:TextField ID="TextField1" FieldName="fec9f0d3-77a3-4afc-99d3-99d2cb745d2c" runat="server" >
    </PageFieldTextField:TextField></h3>
    </div>
    </td>
    </tr>
    I deployed the changes, but in the edit mode of the page, i am not able to see the page layout.
    This issue is happening when a subsite is created. For the existing sites, the textbox is getting shown.
    How to fix this?
    Thanks

    Hi Venkatzeus,
    For each page layout, it has associated with a content type.
    You can click into the content type in site content types under Web Designer Galleries in root site settings.
    And then click Add from new site column to create and add the new site column to this content type.
    After that you can add this column to the page layout(.aspx page for the page layout) with the code below(you need to change the fieldname value to the corresponding GUID of the column):
    <div>
    <Publishing:EditModePanel runat="server" CssClass="edit-mode-panel">
    <PageFieldTextField:TextField ID="TextField1" FieldName="6bf50814-27d1-4b36-9980-c702c25080d7" runat="server">
    </PageFieldTextField:TextField>
    </Publishing:EditModePanel>
    </div>
    Best regards.
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • WPC Runtime Error in Customer Framework Page

    Hi again,
    after successful proof of concept of WPC we have integrated some WPC Pages and iViews in our standard roles. Pages are displayed well with default framework page.
    But using customer specific framework (via portal url alias /portal/mySite and corresponding display rules) we get an error displaying wpc content in runtime:
    Cannot render container : com.sap.engine.lib.xml.util.NestedException:
    Could not load class: com.sap.nw.wpc.km.service. editor.xslt.XsltHelper
    RuntimeStandard required for extension library. -> java.lang.ClassNotFoundException:
    com.sap.nw.wpc.km.service. editor.xslt.XsltHelperRuntimeStandard Found in negative cache
    I have checked SAP Note 1133788 (Com.sap.engine.lib.xml.util.NestedException in WPC) which seems to be related, but adjusting of XSLT Helpers for Editor setting does not fix the problem.
    I mentioned that settings for standardruntime entry (com.sap.nw.wpc.km.service.editor.xslt.XsltHelperRuntimeStandard) should match to customer Alias insted of default portal, but changing these setting won't have any visible result.
    If I use default framework page with customer layout wpc runtime will work - so we have a temporary solution, but we want to avoid changing default framework page.
    Any hints or documentation?
    Many thanks in advance

    Hi Thorsten,
    maybe you should have a look at this [one.|https://forums.sdn.sap.com/thread.jspa?threadID=599765&tstart=0]
    I think it's the same thing that was mentioned in the SAP Note you provided. But maybe you extract some additional hints for yourself out of the posts.
    Let me know, if you manage to solve the problem.
    Regards,
    Marcus

  • Reg: Custom Page Layouts and Custom iView Templates

    Dear Gurus,
    Can you please guide me with the Business Scenarios on when will we be creating Custom page layout?
    Any links which helps is creating them.
    Thanks & Regards,
    Pramod

    Hi Pramod,
    The only purpose of a page layout is to layout the iviews in a page according to your needs. It could be for WPC or regular portal pages as well. For this I can't think of any other business scenario.
    However, a template in general is like a blue print.
    You can create an iview template, layout template or a page template by setting the property "Is a Template" to YES for any iview, layout or page.
    So, in general:
    If the standard delivered components do not serve our purposes. we create custom components and deploy them onto portal as .par applications.
    Then from the .par deployed onto the portal,
    1. We can directly create an iview (or) create an iview template first and then create iviews using the template.
    2. We can directly create a layout (or) create a layout template first and then create layouts using the template.
    If you create something (iview/page/layout) as a template, then it could be used as a blue print to create similar objects in the future.
    Templates are generally created for ease of use and to maintain standards in the future.
    Thanks,
    Shanti

  • Error in using Custom Page Layout

    Hi all,
    I have created some customs page layouts, and they are working fine in the Portal (EP 6.0 SP2).
    Now I have imported them to another Portal (same version than the first one), I made an EPA pakage with the PCD objects for the new page layouts and deployed the PAR file containing the the JSP for the new layouts into the Portal.
    The result of this is the following:
    - I am able to create a page and choose one of my customs layouts as a default layout.
    - When in the page I try to select 'Edit > Page Layout' I get a 'Portal runtime error', and in the page logger I see the following exception (see it copied below):
    Am I missing any step in the transport? I think no but maybe there is something else I have to do.
    Thank you very much in advanced and regards
    Stella
    Exception ID:06:36_15/03/06_0043
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : com.sap.portal.appdesigner.pageeditor.LayoutView
    Component class : com.sapportals.appdesigner.pageeditor.layout.LayoutView
    User : biaalerein
            at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:853)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:311)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
            at com.sapportals.appdesigner.pageeditor.WorkPlace.drawView(WorkPlace.java:354)
            at com.sapportals.appdesigner.pageeditor.WorkPlace.doContent(WorkPlace.java:206)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:601)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:670)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:555)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:275)
            at com.inqmy.services.servlets_jsp.server.RequestDispatcherImpl.include(RequestDispatcherImpl.java:384)
            at com.sapportals.portal.prt.pom.RootComponentNode.service(RootComponentNode.java:144)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:363)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:376)
            at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
            at java.lang.Thread.run(Thread.java:479)

    Hi Krishna,
    I've been able to solve my problem.
    It was something wrong when transporting the page Layouts with an EPA package from one Portal to another. Some properties were lost.
    What I've done is to recreate manually the page layouts PCD Objects. And all it's working OK

  • How can I change get a 2xportrait page layout in iPhoto 11?

    I am laying out a new wedding photo album in iPhoto 11 (version 9.2.3) using the Formal hardcover theme. A new album appears with a number of pre-set layouts: one of which has two portrait photos side by side.
    There are two pre-set pages with this layout but I want more like this as I have a lot of full length photos from the shoot. However, this layout does not appear in the 2-photo layouts that are offered when I try to change the layout of a particular page. The closest is two landscape photos.
    If I drag a portrait photo into one of these, it gets cropped.
    Is there a way that I get a two-portrait side by side layout? If not, then can somebody recommend an alternaive to iPhoto for producing high quality printed photo albums?
    Gareth

    That theme will only offer landscape for 2 photos per page layouts.
    1 - click on the Layout button at the bottom while viewing the page you want to change:
    In the Layout tray at the right you can select any number of photos per page and layouts for those photos:
    If I drag a portrait photo into one of these, it gets cropped.
    Some themes allow you to Control-click on the photo and select "Fit Photo to Frame Size":
    but the Formal theme is not one of them.
    The Modern Lines theme gives you two portrait per page with a variety of frames under Options and Fit to Frame Size:
    With a gray backgroud you get this:
    HOWEVER, if you have an image editor that supports layers or Pages (part of the iWork suite of apps) you can create a custom page for the Formal theme with the two portraits side by side.  This tutorial describes how: iP11 - Creating a Custom Page, with the Theme's Background for an iPhoto Book
    OT

  • Unable to see the pageviewer in a page from pages library in a custom page layout

    <File Url="Inbox.aspx" Type="GhostableInLibrary" Level="Published" Path="myPages\Pages\Inbox.aspx" >
    <AllUsersWebPart WebPartOrder="0" WebPartZoneID="Header" ID="inboxwp1">
    <![CDATA[<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2">
    <Title>Inbox</Title>
    <FrameType>Default</FrameType>
    <Description>Displays another Web page on this Web page. The other Web page is presented in an IFrame.</Description>
    <IsIncluded>true</IsIncluded>
    <ZoneID>wpz</ZoneID>
    <PartOrder>0</PartOrder>
    <FrameState>Normal</FrameState>
    <Height></Height>
    <Width />
    <AllowRemove>true</AllowRemove>
    <AllowZoneChange>true</AllowZoneChange>
    <AllowMinimize>true</AllowMinimize>
    <AllowConnect>true</AllowConnect>
    <AllowEdit>true</AllowEdit>
    <AllowHide>true</AllowHide>
    <IsVisible>true</IsVisible>
    <DetailLink />
    <HelpLink />
    <HelpMode>Modeless</HelpMode>
    <Dir>Default</Dir>
    <PartImageSmall />
    <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
    <PartImageLarge>/_layouts/15/images/mscntvwl.gif</PartImageLarge>
    <IsIncludedFilter />
    <Assembly>Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <TypeName>Microsoft.SharePoint.WebPartPages.PageViewerWebPart</TypeName>
    <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/PageViewer">/_layouts/15/AppPages/InboxRedirectPage.aspx</ContentLink>
    <SourceType xmlns="http://schemas.microsoft.com/WebPart/v2/PageViewer">URL</SourceType>
    </WebPart>]]>
    </AllUsersWebPart>
    <AllUsersWebPart WebPartOrder="0" WebPartZoneID="LeftWP" ID="wpLeft">
    <![CDATA[
    <webParts>
    <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
    <metaData>
    <type name="myWebParts.ProjectLinks.ProjectLinks, m, Version=1.0.0.0, Culture=neutral, PublicKeyToken=52f3214933d771f7" />
    <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="Title" type="string">myprojectLinks</property>
    <property name="Description" type="string">My Visual Web Part</property>
    </properties>
    </data>
    </webPart>
    </webParts>
    ]]>
    </AllUsersWebPart>
    <Property Name="ContentTypeId" Value="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390076F7B5D03DD146D699D042E1C5D76EF7" />
    <Property Name="FileLeafRef" Value="Inbox.aspx" />
    <Property Name="Title" Value="Inbox" />
    <Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/myPageLayout/myPage.aspx, my custom Page Template"/>
    <Property Name="ContentType" Value="myPageCT" />
    <Property Name="_ModerationStatus" Value="3" />
    <Property Name="FileDirRef" Value="Pages" />
    <Property Name="FSObjType" Value="0" />
    </File>
    I have created a custom page layout in my site collec. using VS 2012 and deployed am able to see the page in the pages lib [inbox.aspx].
    Here, I have added a page viewer web part and I want to redirect to another application page, which is already coded [inboxredirect.aspx] in my solution[its another dll - another SP solution which has appln pages and web parts
    etc - ] 
    The issue is that, i am unable to see the page viewer web part when the page is displayed. inbox.aspx is a page which is created once my custompagelayouts solution is deployed and when i navigate to this page, i am stuck . i am getting
    the  " access denied " message is displayed.  
    can anyone help why this  error is displayed?
    in my inboxredirect.aspx page i am inherting from unsecuredlayoutspagebase class, so  i dont think , access denied message should come.
    using System;
    using System.Configuration;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    namespace myproj.Layouts.AppPages
    public partial class InboxRedirectPage : UnsecuredLayoutsPageBase
    string projectName = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    string siteUrl = SPContext.Current.Web.Url;
    using (SPSite site = new SPSite(siteUrl))
    using (SPWeb web = site.OpenWeb())
    string urlProjectName =Request.UrlReferrer.ToString();
    projectName = urlProjectName.Split('/')[5];
    //end
    SPUser user = web.CurrentUser;
    if (user != null)
    above is my appln page to which i am redirecting.

    Solved it myself guys... (Well the major part)
    Got help from here...
    https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/blank-open-save-dialog-when-browsing-document-library-from-office-clients.aspx
    and
    http://www.sharepointconfig.com/2011/02/vs2010-list-definition-template-missing-file-dialog-view/
    with some tweaks of my own..
    Still working on it because its showing SharePoint 2010 header... And I need 2013 look...

  • How to set tray's background image in the custom page layout?

    Hi all,
    I've developed custom page layout with custom iView tray implementation. I've applied my layout into my page and added some iViews. Those iViews are URL isolated so they are rendered as an iframe. My problem is that an iframe background containing iView content overcast my background image which I have set in my iView tray implementation. Is it possible to set transparent background for an iframe in this scenario?
    I would be grateful for helpful answers.
    Best Regards,
    Micha&#322; M.

    Hi Tamil,
    That's right, I've already used layout tag library do develop custom tray design but my problem concerns iView's isolation method . URL isolation renders iView's content in an iframe which has its own background. I've read some articles about getting transparent iframes but I'm not sure how could I achive this in SAP EP? Is it possible?
    Best Regards,
    Michal M.

Maybe you are looking for

  • How do I convert to DNG for CS3 without demosaicing?

    Recently purchased the Sigma 60mm 2.8 lens for my Sony NEX-6, which shoots ARW raw files. When converting to DNG (using the newest 8.2.0.94 version), the files increase in size from ~15MB to ~60MB. This appears to be because I have the compatibility

  • Can't get out on the internet

    I have an iPad 2. After I choose to go back to default preference I can not log in on my Wi-Fi. It finds the right netword but still doesn't work. And I can not type in the password. (It has worked before. I even tried to write in username and passwo

  • PO Upload through recording

    Hello All, I m writing upload program for PO through recording (SM35). I m facing problem at item level. I have hundred of items to upload. At item level grid there is no button like 'Insert Row'. In actual screen it is done through scroll bars of gr

  • Gif animation frame number limit?

    Hello, I have created a 35 second (25fps) line animation within AE. Since AE does not export gifs anymore, I exported as QT movie & opened the QT in PS and saved for web as Gif animation. In the save for web dialogue it said "frames 500 of 500" and w

  • Passing multiple ID's in URL variable

    How can I show results from a mysql database from selected ID's using URL variables? Showing results from one ID works fine: mypage.php?id=1 But, My table has 10 rows and I want to show 3 of those rows: mypage.php?id=1&id=3&id=4 Thanks for a point in