I am trying to display my own HTML file inside of a Liferay Portal.
Is this possible? If it is, how do I do it?
Thanks!
Liferay is a CMS too, so what you need to learn is its Web Content Management system.
How are you trying to display HTML file.?
Yes, your custom html files can be loaded in liferay portal.
Download Eclipse Juno from here (already including the Liferay SDK). After that create new project in Eclipse FILE-->NEW-->Liferay Project. This will show you an additional windows to enter some details about your portlet. After you are done with this just follow this link.
Follow the tutorial and you will be ok. There they explain how to customize the look of the portlet. In the ".jsp" files you can just paste the html code and its going to work. Just dont forget to include the html tag library in your JSP file. Just paste:
<%#page contentType="text/html" pageEncoding="UTF-8"%> on top of the document and you are done!
Hope that helped!
Good luck with your portal development!
Related
I am a begginer with JS. I am deploying Bullhorn app on a Squarespace website. Squarespace does not provide the luxury to add app.JSON files into it.
I am so created respository on Github and added the cdn links into the site:
https://cdn.jsdelivr.net/gh/Muhammad-waqas732/Ripple-Effect-Recruitment#latest/runtime-es2015.js
https://cdn.jsdelivr.net/gh/Muhammad-waqas732/Ripple-Effect-Recruitment#latest/runtime-es5.js
https://cdn.jsdelivr.net/gh/Muhammad-waqas732/Ripple-Effect-Recruitment#latest/polyfills-es5.js
https://cdn.jsdelivr.net/gh/Muhammad-waqas732/Ripple-Effect-Recruitment#latest/polyfills-es2015.js
https://cdn.jsdelivr.net/gh/Muhammad-waqas732/Ripple-Effect-Recruitment#latest/main-es2015.js
https://cdn.jsdelivr.net/gh/Muhammad-waqas732/Ripple-Effect-Recruitment#latest/main-es5.js
My respository is this.
Now the code for fetching the (it's in: https://github.com/Muhammad-waqas732/Ripple-Effect-Recruitment/blob/main/main-es2015.js) is:
this.http.get("./app.json") [Whole code is too big to qoute it's in the respository]
which is unable to fetch API as there is no "/app.json" on the Squarespace website.
Any thoughts? Thanks in advance
I figured it out. I hosted the bullhorn app on a new server and used that iframe on my Squarespace site
I have a website that is ASP.NET Webforms VB. I need to add to it a HTML text editor with file upload so images (for example) can be uploaded and inserted or selected from previously uploaded and inserted.
I have seen TinyMCE can do this but seemingly with me having to work on the Plugin.
Can anyone advise on something that can achieve the above but kind of working "out of the box"?
Free ideally but can look at commercial.
Again it is Webforms so not MVC or anyting like that.
HZ
The ajaxtool kit has two kinds of file uploaders, and also has a html editor, and the editor does have a up-load option that can be added as a custom button.
You can find the demos here, including the HTML editor:
http://www.ajaxcontroltoolkit.net/
You can install using nuget if you wish (the most easy).
I have been trying to link other webpages using
<li>About</li>
but when I try it it shows me the following error:
This localhost page can’t be found
No webpage was found for the web address: https://localhost:5001/Pages/a.cshtml
HTTP ERROR 404
I'm using visual studio on mac version 8.6.6
I'm using ASP.NET
From your anchor tag link url ~/Pages/a.cshtml it seems that you are working with MVC project.
In order to navigate (or link) pages you need something like this:
About
You don't need to add the .cshtml.
If you are using ASP.NET 3.1 you can use the Anchor Tag Helper asp-page to go to other pages.
Below is a peice of code that works on one of my Razor Page websites:
<td><a asp-page="About">About</a></td>
So in your case just make sure to include the correct path to the page
Check out this link for more information on Tag Helpers in ASP.NET. Pretty cool stuff.
I seem to be running into a problem. I am wanting to upload my website to github but see that one needs to have the main page as index.html. This is an issue as i have created an empty ASP.NET MVC application with views and controllers that have the .cshtml tag.
How can I create an index.html as the main page and then call my other main page which will be a view, this way all I am doing is getting github to look at index.html and then my main page will be displayed? by index.html calling it.
I have tried to use the following as I saw them mentioned in a few other posts but can not seem to get it to work, I know that it did change my URL but still displayed index.html
routes.IgnoreRoute("");
Here is a picture of my project folder layout
Thanks for the the future reply's! Sorry if this post is a bit messy it is my first time posting here. TO add i am trying to host on gitHub through username.github.io
As far as I know Github does not support ASP.NET, but you can use a free Azure account. Take a look at:
http://www.asp.net/hosting
find answer by S.Spieker
kindly have a look on Deploying from ASP.Net MVC to GitHub Pages using AppVeyor if you want to do via AppVeyor
I have been using Dreamweaver for simple html web development and have been using .dwt templates for my html pages. There are both static and dynamic pages. I have migrated to Aptana for my IDE, but not sure what to do with dwt templates. How can I migrate them to Aptana, do they have a similar feature as I am willing to rewrite them in Aptana.
There is a page here: https://wiki.appcelerator.org/display/tis/Creating+a+new+template that shows how to add to the available templates and a question here: How to add to the "New from Template" list? that shows how to add them to the File > New from template menu.