Expression Engine CSS Changes - expressionengine

My CSS is located at below location
<link rel="stylesheet" href="/site/css/style.css" />
I ant see from where should i edit that CSS from admin
I checked on Googled no use, i checked all the files under
CP Home >> Design >> Template Manager
But it didnt help am i missing something ?

Your templates are likely calling the CSS from a flat file, stored outside of ExpressionEngine entirely. Many developers prefer this approach, and it is arguably more performant as well.
Look in your site's web root via FTP for the site folder, and then the css folder inside of it.

Related

My asp.net core app doesn't find favicon.ico when it's deployed to IIS

When I run my app in visual studio 2017 using IIS Express it is able to locate the favicon.ico in the wwwroot folder.
When it's deployed to IIS on a server then it can't find it.
I think it has to do with the url...
in development the url is https://localhost:44359
The favicon show up and if I manually type https://localhost:44359/favicon.ico then it returns it.
in production the url is https://localhost/reporting
The favicon doesn't show up and seems to be looking for it at https://localhost/favicon.ico (which returns a 404).
If I change that to http://localhost/reporting/favicon.ico then it returns the icon.
Can someone please suggest why it's not automatically looking for the icon under /reporting/ ??
I have a couple of routing issues as well, but other than that the app seems to work fine. I think the routing issues may have the same cause as the favicon.
Browsers only check example.com/favicon.ico - they don't check in subfolders.
If you're putting it somewhere non-standard (you are!), you'll need to point browsers to it. In the <head> of your pages:
<link rel="shortcut icon" href="/reporting/favicon.ico">
There is an issue with finding static resources for applications that are in subfolders of a website. However, in Razor pages, in the <head> you can use:
<link rel="shortcut icon" href='#Url.Content("~/favicon.ico")'>
where the ~ refers to your application's wwwroot folder.

Opencart stylesheet.css not updating

I am using Opencart porto theme. But i am facing issue when i am updating stylesheet.css. Stylesheet.css effect appear on front end after an hour and more then an hour. That is too much frustrating for me. I have disable .htaccess file. disable vqmod. Clear browsers cache as well as cache in opencart. but not any effect. I have also checked extension there are no any cache extension found. Also i have checked path of stylesheet that is also fine because that effected after an hour.
Any help please?
On a single System
CSS and JS files cache are saved in browser cache. You can force browser to reload all CSS and JS cache by pressing "CTRL + F5". By pressing this, all CSS and JS files reloaded again on browser and it takes more time to load.
On all customer's System
If you have a website that customers are using and you want to change the CSS in all customer's end. You can pass parameter in your CSS file.
Ex. Suppose you are using stylesheet.css in your header file, it should be included in header.tpl in common folder in your theme template folder as
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
Whenever you make some changes in your CSS files, just change the parameter in header.tpl as
<link href="catalog/view/theme/default/stylesheet/stylesheet.css?version=1" rel="stylesheet">
since the file URL is changed, browser will have to reload this file on all customer's system. So your changes will appear on simple reload of web page.
Next time you change the stylesheet.css file, just modify header.tpl to
and so on.
Hope, it helps.
You want to clear vqcahche in vqmod folder on root.
Are you sure that your file is saving properly after you upload it?
If you are using FileZilla there is a log on the top that says what is happening, check if you have an error for permission.
To debug it even further that you have the right stylesheet, make a backup and delete it, if nothing happens than this stylesheet is not the one you are looking for.
Also for further testing try putting some random CSS code in your header.tpl file to see if the issue is from caching or FTP access

Liferay only html and js

I have maven project which I want place as portlet in liferay. This portlet will be single page application (inside portlet). I want to deploy this portlet which contains only html, js, and css.
I want expose ./src/main/webapp/index.html and other files js, css, html without updating portlet.xml or liferay-portlet.xml.
Is it possible to expose all content inside src/main/webapp as static resources. As my starting point index.html. I dont't want use any jsp. Is there any easy solution for that?
I.e
If I'll have index.html (src/main/webapp/index.html) and preview/invoices.js (src/main/webapp/preview/invoices.js). I want to put inside index.html and it will work. Without any additional configuration. Is it possible?
It seems like you didn't try this already: A portlet is nothing but a standard java web application with a few more deployment descriptors. Thus, your application is available as static resource out of the box. You won't gain anything from the portal integration if you don't go through portal URLs (e.g. who's the currently logged in user?), but you do totally can access all of your content from the browser.
In order to blend well into the portal, you should not render index.html out of the box but at least have a portlet with static HTML UI - reason is that a portlet is not supposed to include <html>, <head> and <body> markup, and out-of-the-box it doesn't have access to the head-section of your document where you might want to have css or js includes (same with the footer). With the portlet you can easily add your js to the end of the page and then go from there.
If you need information like the currently logged in user, their permissions etc., you should go through portal URLs instead of your webapp directly, because you'd just get the information you need this way.
"I want to integrate as a portlet without writing a portlet" sounds a bit like "I'd like to go swimming without getting wet". Make sure that this is not your case - a basic portlet (that delegates all of the implementation to JS) is no magic and not complex.
The easiest way to use html, css and js (if the development is not big) is to use the content-viewer portlet and insert all ass the content in html format
If what you want is bigger and you want to have over source control and deploy as a portlet, using the liferay ide(or eclipse with the liferay plugin) is really easy to create a maven portlet and then edit the default jsp.
Regards

OpenLayers's CSS breaks after publishing to Azure Web Site

I've created a very simple ASP.NET 4.5 MVC4 web site which uses OpenLayers 2.12. It's got only one page that shows a map with a few points and lines on it. If I run it locally, it runs fine, but after publishing to my Azure Web Site, the OpenLayers' CSS files won't load. I have now added the OpenLayers CSS hard coded in my bundleConfig, and now it works fine. But of course, this is not what I want, because OpenLayers has specific CSS files for other platforms and browser versions etc.
Locally, I just have to include openlayers.js and OpenLayers then adds the right css files. Does anybody know why this doesn't work after publishing to Azure?
From the docs in openlayers.js:
Please remember that when your OpenLayers script is not named
"OpenLayers.js" you will have to make sure that the default theme is
loaded into the page by including an appropriate <link>-tag,
e.g.:
(code)
<link rel="stylesheet" href="/path/to/default/style.css" type="text/css">
(end code)
Because Azure changes the file names that are included, I indeed should be adding the reference to the default style myself. Also, I can just link to style.css, the other css files for e.g. IE6 or Mobile won't be uses automatically, these are just there for yourself to use it when appropriate.

Orchard CMS Adding a links in HTML widget

I'm trying to add links to pages in the HTML widget.
I'm currently running orchard as a virtual directory, so I can't use '/'. Also since I'm working on a dev site then copying over to a live site, I'm not sure if the site will be running as a virtual directory or from the root.
I've just realised that all links entered via the HTML widget will have a problem, since you can't use '~', also it looks like the image links are fixed, so deploying to a different location won't work ie. from localhost\dev to localhost\live
Any ideas?
If you're entering it from the html editor, you don't have any choice but to use a rooted path (/foo). Sure, it can cause problems if you then publish from a vdir into a site without a vdir, but that's how it for now. We're looking at solutions but in the meantime your best bet is to have a dev site that is as close as possible to the production setup.
As pointed out by randompete on codeplex, another solution could be implementing your own IHtmlFilter. I wrote a simple implementation which you can find here: http://orchard.codeplex.com/discussions/279418
It basically post-processes the BodyPart text by replacing all occurences of urls starting with ~/ with a resolved url (using the UrlHelper.Content() method)
If you need to display a link pointing to a static resource, you can use:
#Html.Link(string textlink, string url)
But Html.Link doesn't supports application relatives urls (~/[...] ones)
if you need only the href (as for an img ). It supports ~/ urls.
src='#Href(string url)'
If you need to display a link to an action
#Html.ActionLink(...) <-- lots of overloads.

Resources