How to store html page in liferay and get a href link to the html page. I have some old html pages and I dont want to recreate as theme css are different.Please guide.
I suggest you to create a folder in $LIFERAY_HOME/webapps/html (for example) and put your html pages there. So you can link any page in your domain, like:
www.yourdomain.com/html/page-you-want-to-display.html
Related
I have developed a SharePoint Web Part where I have an iframe that I need to load with several pages depend on different values.
For instance, I have this files
file1.html
file2.html
file3.html
And I need to pass the path of one of this elements to an iframe
Where can I put this files and How can I retrieve the right path of this pages?
Regards
Try to save the html files in a library and set the iframe url dynamically.
$('#iframeId').attr('src', url)
I'm attempting to link to another site from the main navigation on my Modx Revolution 2.2.13-pl site.
I tried to create a weblink resource, but it simply loads up a page with the URL in the content of the page, then redirects to the homepage as if you had hit a page that did not exist.
Can anyone chime in on how to properly create a weblink in Modx?
Thanks.
Update: I am using a fully qualified URL to an external website.
Weblink setup:
HTML Output:
I tried to get a SS of what happens when you click the link, but it redirects too fast. It's basically my template with the resource title in H4, then the URL in the weblink field on the page as a link in the content area. Then it redirects to the homepage (which is our default 404 action)
This is works as expected. Compare with what you got.
Page:
Wayfinder output:
This may be a simple question for SP2010, I am trying to get the query string from a page url and pass it to the url of a page viewer web part.
https://mysite.com/subsite/default.aspx?TeamID=X
The content in the page viewer webpart comes from a different site, but needs the TeamID.
https://othersite.com/page.htm?TeamID=X
I can set the query string manually in the page viewer url, but this is something that will be replicated many times, and I really want to find a way to set up the page viewer and not have to edit it each time I replicate the page.
Thanks in advance,
KB
You can do it by JS. There are some libraries for URL parsing to get value from URL. Then you can append that value to IFRAME's SRC attribute in your page. IFRAME is generated by page view webpart.
I have a Joomla (nginx + mysql) site running as UI and some JSP (tomcat + mysql) handling calculation logic.
I want to integrate JSP pages in to Joomla as iframe. I succeeded doing that, but the question is:
How do I make JSP pages NOT visitable to public but only visitable via Joomla site?
For example,
Joomla site is under mydomain.com/Joomla
JSP pages are under mydomain.com/JSP
When a user visit mydomain.com/JSP in the browser, the user cannot see the JSP page(see error or empty page instead).
But when the user open mydomain.com/Joomla in the browser and go to the page that contains the JSP site within an iframe, the user can see the JSP page there.
I am thinking about changing folder/file owner and permission. Am I on the right track? How should I approach exactly?
Thanks,
Milo
You need to change the way you're currently workin on.
1) Use composent JUMI to create virtual Joomla component based on your scripts.
2) On each page add this code at the very beginning of each of your scripts:
<?php
defined( '_JEXEC' ) or die ('Restricted Access');
?>
It'll prevent users for loading directly your scripts without any active Joomla session.
In Sharepoint, how can I link an image in a content editor web part to another URL link by clicking on it?
I pasted my link into the Content Link space but when I apply the change it turns my image into a - and I cannot click the link
a content editor webpart is just raw html. so the way to wrap an image in a link is to use the a (anchor) tag like so.
<img src="yourimagefile.jpg" />