Questions tagged [templates]

The Joomla Template controls the overall layout of your site. It brings together common elements, modules and components as well as providing the cascading style sheet for your site. Both the Front-end (Site) and the Back-end (Administrator) of your site have templates.

Filter by
Sorted by
Tagged with
0
votes
2answers
645 views

PHP7.2 Undefined variable: option in .... index.php with Dj-Business004 template

When I update PHP from PHP7 to PHP7.2 the website gives this error: 500 Internal Server Error This is in the Log file: [Thu Jan 24 04:44:56.061781 2019] [proxy_fcgi:error] [pid 30185:tid ...
1
vote
0answers
17 views

Oauth2 in joomla template

**<?php /** * @package Joomla.Site * @subpackage Templates.bdcp * * @copyright Copyright (C) 2005 - 2020 All rights reserved. * @license GNU General Public License version 2 or ...
2
votes
2answers
65 views

Get site application via Factory::getApplication() in Joomla 4

The documentation for J3 instructs using Factory::getApplication('site') to get the site application, however according to the documentation for J4 doesn't have those method parameters anymore. I'm ...
0
votes
1answer
31 views

No such file or directory while using Vina Dongky template

I am using a template called Vina Dongky for VirtueMart content and I'm getting some errors. Warning: require_once(/home/priskork/public_html/libraries/joomla/document/html/renderer/head.php): failed ...
0
votes
1answer
101 views

Joomla custom template parameter tab title

I'm adding a new fieldset with custom params to my template: <config> <fields name="params"> <fieldset name="advanced" addfieldpath="/templates/mytemp/fields"> ...
0
votes
1answer
24 views

Add module to Component area

My main menu is linking category blog which is automatically displayed in component area, and I want to put a slider module in component area too, but only in home page, so modules on "Right"...
3
votes
1answer
69 views

Unable to get (site) template params from my module's backend

Someone at stackoverflow recommend I ask the question here, apologies if this is considered cross-posting... OVERVIEW I am developing a set of custom templates and a set of custom modules. The ...
1
vote
1answer
84 views

How do I make a login page just like Joomla's backend?

I want my homepage to be like Joomla's administration page, meaning there is only a login form displayed on the page. The hard part is, although it is not hard to make a homepage like this and I can ...
1
vote
1answer
84 views

Override order_date but query.php not working

I am looking for a solution to sort a Category-Blog by 'unpublish-date'. What i have done so far: created an own menu-style by copyingblog.xml, blog.php, blog-item.php and blog-links.php to my-*.* ...
3
votes
2answers
3k views

Layout Overrides: Intro Image Link

I have searched everywhere for this answer but I can't find it. I really like the new layout overrides in Joomla 3 but I want to be able to add a link to the intro_image.php file so that when a user ...
1
vote
1answer
171 views

Joomla 3.9 Child Sub Menu Not Showing

I am using a custom Joomla template called 'Portent' built by Joomlanauts -- a @SethWarburton creation. The issue which I am facing is that the Sub-menu under my Child menu items are not showing for ...
0
votes
1answer
48 views

Render a template after a specific route by using system plugin

I am facing a problem to render a template after hitting a specific route. Let me describe it a bit. I have a template structure like- templates |__mytemplate |__|__index.php |__|__component.php |__|...
4
votes
1answer
2k views

Is it possible to load a newer jQuery version?

Is it possible to override the native JHtml::_('jquery.framework') loaded by Joomla, using some line of php? I understand I could replace this line in my template. But since I am using a template ...
6
votes
3answers
1k views

Adding Mathjax to a Joomla website

I would like to add MathJax functionality to my website but I have no idea how to go about doing so. Does this require using a specific template or modifying an existing one? (I'm currently using ...
2
votes
3answers
646 views

How to force auto versioning of css and js to renew on file change within Joomla! template?

I would like the version of css and js within a template to be renewed automatically on file change. I tried JHtml with auto versioning without the desired result. JHtml::_('stylesheet', 'template....
1
vote
1answer
103 views

Error “500 behavior::tabstate not found.” when trying to access SP Page Builder

I am currently using Joomla 4.0.0 Beta 6 with Helix Ultimate 2.0.0 Alpha 3 and PHP 7.2. My website runs on LiteSpeed Web Server, NOT Apache. When I go to The Joomla administrator panel > SP Page ...
0
votes
2answers
45 views

Get template params from the input

Previously I was looking into how to get the template I'm currently editing, now I need to make use of a templates/templateName/helper.php file which would need a different kind of request. // this ...
0
votes
0answers
69 views

Helix Ultimate Template: Error "500 icon::print_popup not found." when clicking on a blog article

I am currently using Joomla 4 Beta 7 with Helix Ultimate 2 Alpha 5 and PHP 7.2. When I go to my website's homepage > Blog and then click on any article, I get the following error: 500 icon::...
2
votes
2answers
39 views

Get the template I'm currently editing

I'm developing a custom form field for my template and I need to know the name of this template from inside this form field. While otherwise I would do a setQuery to look for client_id=0 and home=&...
0
votes
1answer
23 views

Undefined property: stdClass::$showtitle in custom module [closed]

I currently have a problem that is driving me crazy. My module shows the following error in the frontend in the DEV environment: Undefined property: stdClass::$showtitle .../joomla3/templates/system/...
0
votes
1answer
66 views

How to check an extension is namespaced?

I'm working on namespaced templates feature and I came to the point where I need to check if an extension is namespaced or not. One possibility would be to load the templateDetails.xml file and check ...
1
vote
1answer
38 views

The template style option is missing from all menu items

We have a weird problem where at some point our menu styles dropdown has disappeared from all menu items. We can see it in our old site, and we're pretty sure it used to be there, and we're not ...
14
votes
4answers
10k views

How to check what component is being used on current page?

I want to set up my template so it will display different layout depending on what component is being used on current page. How to check for this?
3
votes
1answer
121 views

Joomla 3.9 not reading language override strings for English only

In Joomla 3.9.20, I created a custom front end template. Inside I have the language folder with various languages in this format. For German (example): /templates/mytemplate/de-DE/de-DE.tpl_mytemplate....
2
votes
1answer
318 views

How can I add a local custom javascript file into the bottom of the template's index.php file?

I am writing some custom javascript in Joomla 4 Beta 6 to control various aspects of my custom front-end template's menus. It needs to load after the page has been rendered, so I want to add it at the ...
1
vote
1answer
41 views

Joomla apply SEF route from template's index.php file

I am having a problem recently is that- I am creating a Joomla Site Template and for a specific condition, the template redirects to http://mydomain.com/index.php?templateStyle=10&tmpl=custom. Now ...
0
votes
1answer
24 views

Render template on iframe by template ID

I am facing a problem with the rendering template after duplicating. The situation is I want to load a template on iFrame. So, I've set the URL of the iFrame like- Uri::root(true) . '/index.php?...
1
vote
0answers
62 views

Adding viewport metatag breaks my template layout

I have separate templates for desktop/tablet and phone. I don't feel that viewport meta is needed in my mobile template, but without it Google is saying: Error: The page is not mobile friendly ...
3
votes
0answers
109 views

Joomla 4 template namespace

I'm working with latest Joomla 4 beta, and wondering how can I use namespaces with templates so I can start using and developing custom fields for my templates. I need to know what should I set in the ...
0
votes
0answers
47 views

Possible to add template file to component on plugin installation?

I am making a plugin for a custom component. It's a basic editor extend plugin that allows users to select an item from custom component using a button in editor. It's simular to native editor extend ...
3
votes
2answers
107 views

Randomly render one of the modules in a given position

I have several modules for a given position, but I only want to display one of them (selected randomly) on the front-end in a Gantry template. Is there any way to do this?
2
votes
1answer
51 views

How to assign a template for a specific page

I want to create a template for a specific page: the search result page. I found the options to specify a template for an article or a page but not for a joomla system page. Is possible to specify a ...
3
votes
3answers
1k views

How to remove the type attribute from script tags of an Html5 document?

From the beginning of december 17, W3C XHTML started to point out this error: The type attribute is unnecessary for JavaScript resources. The above warning is generated inside Joomla script itself ...
0
votes
0answers
157 views

A slash is being automatically added after the hashtag in urls

I just wanted to implement a scroll to an element for two anchor tags. The problem is that Joomla is adding a forward slash between the hash mark and the named anchor. When I have something like <a ...
0
votes
2answers
175 views

Custom module best practices. JS inside template file or not?

I am building a custom module for Joomla. Let's call the module "mod_mygallery". Inside the module I have a the files mod_mygallery.php, helper.php and mod_mygallery.xml. And off course I also have ...
1
vote
1answer
63 views

Uploading file using Form class in admin template control panel

I'd like to include an XML form field in my template that allows the user to upload an image file for the company logo. I know how to do this for a regular component's administrator control panel, but ...
17
votes
4answers
33k views

Adding custom CSS styling on some of my pages

I would like to add custom CSS styling to some of my pages to give them a unique style, and override the default template styling. How can I achieve this in Joomla?
2
votes
1answer
60 views

is there any workaround for viewing different admin template according to user role

This will work like e.g. If user is having super administrator access level, then user will be redirected on the default Isis administrator template. But if user is having access of administrator ...
0
votes
1answer
71 views

Joomla php function which prints the pagename

Is there a php function to insert in the template which prints the name of the menu item of the displayed page?
0
votes
1answer
32 views

Inspect Page Doesn't Reflect Color on Web Page

I am driving to change the background color where it says Module1:Initial Configuration. I have changed the css to 0088cc as shown in the image, but the color blue doesn't show on my web page. The ...
2
votes
3answers
1k views

Add Google Webmaster Tools HTML tag in Joomla site

Is there an alternative way to add the Google Webmaster Tools HTML tag (for verification) in a Joomla website? The server doesn't let me connect to it via FTP. I'm in the template section of the "...
3
votes
2answers
412 views

Update Server for template

Is it possible to use update server for managing template updates? I read here that template is not supported. But is the article up-to-date? Because on that article there is also a line that ...
0
votes
1answer
193 views

How to create main menu in offcanvas position with plus signs to expand for their submenus?

I have developed my website, and my main menu works perfectly well; and my main menu also displays well in the offcanvas position if a smartphone or a smaller screen is used. All is good, except for ...
1
vote
1answer
65 views

Define header CSS class if menu items have children

I am using two menu modules to display parent and children items in different locations in the website header. The simplified code below shows how it is written in index.php. I am needing to check to ...
0
votes
2answers
128 views

Count modules function in template not working correctly

I have a split navigation module defined in my custom template. It is set to display submenu items under the main navigation when the parent item is active. The module itself displays correctly, but ...
0
votes
1answer
63 views

Custom fields published state not working as expected

I am using the following code to check to see if my repeatable custom field's state is published/unpublished. If the state is set to 0, the code in between should be hidden, but instead an error is ...
0
votes
0answers
111 views

Joomla datepicker field issue

Can someone help please? I'm working on a simple component which displays events. The component allows events to be submitted from the frontend. The form uses the Joomla datepicker. The problem I'...
0
votes
0answers
25 views

How can I make changes to JoomlArt's "Ja Mero" template's style sheet?

I'm not quite sure how Joomla's file structure works. I am using the Ja Mero template from JoomlArt, but haven't used it much. It looks like the T3 Framework. The generated filepath appears to be: ...
0
votes
1answer
47 views

How to access a custom action page

I have never worked on Joomla so I apologize for my naive question. I have a button on a page which redirects to this URL - https://ttmac.com/en/online-courses/buy?view=order-multiple-courses&...
0
votes
1answer
22 views

Is there a way to change the layout or theme used when editing an article or module from the frontent

I don't have any problem using the back-end for creating and editing content, but my clients do. I want to provide them with some simpler menu options that are targeted for editing or creating ...

1
2 3 4 5 6