I am trying to upload image on my custom page and following are the code in aspx source
<px:PXImageUploader ID="edImageUrl" runat="server" AlreadyLocalized="False" DataField="ImageUrl" DefaultLocale="" AllowNoImage="True" FlexRatio="False" MagnifyDefault="False" ShowComment="False" ViewOnly="False" AllowUpload="True" Height="320px" Width="430px" DataMember="lotserailrec" >
</px:PXImageUploader>
The image uploads and attached to custom page if I drag and drop on the image and it is not uploading through file selection.
Related
I'm using blazor c# and i can generate PDF using RDLC, I have this html code with data in it using database and i want to add that image into RDLC
Example code below.
<img class="img-thumbnail" src="#data.QRCodeBase64" title="#data.tbl_req_document_header.qr_code" />
I have an PDF embedded in the page using the following code:
<object width="100%" height="800" type="application/pdf" data="/example.pdf" id="pdf_content">
<p>Insert your error message here, if the PDF cannot be displayed.</p>
</object>
Every browser shows an option to download the PDF when hovered.
Are there any parameters that can be added in order to show the save option?
Thanks
I have created a main site and I have created many subsite under the main site.
When I am in any main page and click on the logo icon, the page redirects to the home page.
But, when I am in any subsite and click on the logo icon, the page redirects to the subsite homepage rather than the main hompage.
I would like to change the navigation URL to the root site. Let me know if I have to edit any masterpage, or is there any common page that will inherit to all the child application.
Thanks
We have 2 ways to do this.
Method 1:
From the Snippet Gallery, copy and paste the default SiteLogo code snippet into your master page into the appropriate place you want it to be displayed.
In the SiteLogo code, search for SharePoint:SPSimpleSiteLink to find the relevant opening and closing tags. Now simply change the tag names to SharePoint:SPLinkButton instead.
Then simply add the attribute NavigateUrl to this tag and set it’s value to “~sitecollection/”.
Example:
Default snippet code:
<!--MS:<SharePoint:SPSimpleSiteLink runat="server" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">-->
...
<!--ME:</SharePoint:SPSimpleSiteLink>-->
Should become this:
<!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">-->
...
<!--ME:</SharePoint:SPLinkButton>-->
Ref link
Method 2:
We are going to add custom js in the master page => our site is a publishing site
We find the site logo in the below hierarchy(in a rendered page).
<div id='DeltaSiteLogo'>
<a href='site url'>
<img src='siteIconPath.png/whatever extension'/>
</a>
</div>
So we may try the following for redirecting to the site collection/root web url on click of the logo.
// Add the following js in the '.html' design file that associates with the corresponding masterpage.
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
$("div#DeltaSiteLogo a").attr("href",_spPageContextInfo.siteAbsoluteUrl);
});
//]]>
</script>
It works.
Edit on the SharePoint Designer Master Pages > seattle.master .
Crtl F - Search for DeltaSiteLogo
DEFAULT:
<SharePoint:SPSimpleSiteLink CssClass="ms-siteicon-a" runat="server" id="onetidProjectPropertyTitleGraphic" >
<SharePoint:SiteLogoImage CssClass="ms-siteicon-img" name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/15/images/siteIcon.png?rev=47" runat="server"/>
</SharePoint:SPSimpleSiteLink>
Change To This (copy & paste the script):
<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">
<SharePoint:SiteLogoImage CssClass="ms-siteicon-img" name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/15/images/siteIcon.png?rev=47" runat="server"/>
</SharePoint:SPLinkButton>
I have a requirement where in a page is to be duplicated. This page has several image appearing with effects. It has images path stored in xml file & effects in flash files. I am using web content display, when i include just the plain swf files output is blank . I have included other .swf files in flash link they are working fine.But this .swf files need images so its blank. I have tried making a portlet, passing images in array and then giving transitions through javascript but the same effect is not achieved more over when i include portlet in my website my theme & other WCD is disturbed so i have dropped portlet way. But other than this how can the image be passed to WCD on a flash link.Please help as how the image & flash to be embeded in web content display.
My Actual page has xml :
<?xml version="1.0" encoding="utf-8" ?>
<slides>
<slide imageUrl="/images/home/A_397x930px.jpg" />
<slide imageUrl="/images/home/B_397x930px.jpg" />
<slide imageUrl="/images/home/C_397x930px.jpg" />
<slide imageUrl="/images/home/D_397x930px.jpg" />
</slides>
My flash code :
<script language="javascript" type="text/javascript">
var so = new SWFObject("/andiosp-flash.swf", "mymovie", "930", "398", "8", "#ffffff");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.addParam("allowFullScreen", "true");
so.addParam("salign", "t");
so.write("flashcontent");
</script>
I am using Liferay 6.1
If you store your images in a theme, e.g. "your-theme", then you should try to access them by URLs:
/your-theme/images/home/an-image.jpg
This is the same for the other Liferay plugins.
The second way is to upload images while creating "Web Content Display" portlet:
Click "Image" button on the WYSIWYG toolbar
In tab "Image Info" click "Browse Server"
Then you'll be able to choose an existing image or upload new image in the repository
After you choose an image, you'll see the URL for this image in the field "URL"
You may also consider to upload images in "Documents and Media" portlet. Choose "Control Panel" -> "Documents and Media" and add your image as "Basic Document". Then you'll be able to click on uploaded image and get its URL provided by Liferay Portal.
I am using the .NET connector to connect to an SQL database. One of this value is a URL. Now I need to display this as a URL.
Any ideas on how to solve this?
In Sharepoint Designer you can edit the read list and go to the field, so for example you have a field called URL, display it as a label so it would render like
<asp:Label runat="server" id="ff1{$ID}" text="{$thisNode/#URL}" />
Then all you need to do is add an "A href" tag to it so it renders as a url like such
<asp:Label runat="server" id="ff1{$ID}" text="{$thisNode/#URL}" />