How to modify the HTML tag in Joomla 1.5? - joomla

I need to define an appcache manifest on the login page. I found the same question asked about Drupal 6, but the file mentioned, page.tpl.php, does not exist. Where is the counterpart in Joomla?

The HTML tag should be in the template index.php found here -
JOOMLA INSTALL/templates/YOUR TEMPLATE/index.php

Related

How to override cms-full-width.xml in Magento 2.4..3-p1

In my Magento 2.4.3-p1 I want to change the layout of the CMS pages to be the same as the product page. Currently, the CMS page contents are shown in full width. It is adding the class page-main-full-width to the maincontent tag. This is added from the file vendor\magento\module-page-builder\view\frontend\page_layout\cms-full-width.xml. How can I override this file in my theme? I have tried luma_custom/Magento_Page_Builder/page_layout/cms-full-width.xml but is not working. Please help.

Prestashop 1.7 custom CMS page CSS best practice

I have created a custom page in prestashop 1.7 by creating a new controller.
I saw that there is a way to create CMS pages in the backend. How can I create a template for this CMS page that contains the custom CSS and JS for this specific page?
In a page cms, you can identify it in css and JS thanks to its ID "cms" and then thanks to its class uniquer: cms-id-x
See the body tag of a CMS page:
<body id="cms" class="lang-fr country-us currency-usd layout-full-width page-cms tax-display-disabled cms-id-1">
Regards

Hide directory in source code

Actually my question is How is folder path hidden ? Firstly I am using Joomla.
I found a website 4 months ago, so i don't remember name of the website which is Joomla site. They hide their folder path.
Between to head> sth. head(tags). If you look at source code, you can see this part. And then this part include template name.
For example:
<link type="text/css" href="http://www.site.com/templates/template_name/css/style.css" rel="stylesheet"></link>
So we can learn to what the name of the template. But they hide this part. When i looked this part(http://www.site.com/templates/template_name/css), i can see only /style.css.
Do you have any idea?
You need two things to accomplish that.
A (system) plugin, that changes every template related URL to the 'official' format, eg.
$url = str_replace('/templates/template_name/css/', '/style/', $url;
An .htaccess redirect reverting the change.
RewriteRule ^style/(.*)$ templates/template_name/css/$1 [R=301,L]
If you want obscure template names, and a few modules and plugins from HTML source, the easy way is use a CSS and JS compressor like jbetolo or RokBooster.
But keep in mind that you will make a bit more hader to find your template name, but still possible via other ways. Like some images if they are not compressed in HTML.

Joomla. Where article is outputed?

I'm new in Joomla and so need some help with basic.
I have write template for Joomla 1.7 and use it in such way:
Template have one position called "main".
I use custom HTML for building page structure and include modules with ModulesAnywhere plugin.
Now I have module which list all articles from category. When I click on the link I am redirecting to my_site/category/article_name. But where article text is outputed?
It seems like that it should be ouptuted in position. If so how could I dynamicly add this tag in my custom HTML?
The articles are showed by default (or any other component content)where this tag is located in your template:
<jdoc:include type="component" />
Normal content does not require any position like modules.

Joomla 1.5 jdoc include type head works only on homepage?

I have a problem withjdoc include head. On any other page than Home, the <jdoc:include type="head" /> result is not complete, it does not include jQuery library etc. but only the title and favicon. Any idea how could I keep the JS libraries and all from jdoc head on all pages, not just the homepage ? I don't know why they get loaded on home but not on login for example, or search...
Thanks.
By default header in Joomla doesn't contain jQuery... It loads Mootools.
If you need to load jQuery you have to use a plugin like this one.

Resources