All Questions

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

How to Update a field only when another filed is changed

My scenario is that I have a field in a table called Stock_Qty that when it is changed I need to update the Stock_Date field with the current date and then the user can replace the date if they don't ...
1
vote
1answer
12 views

use router.php in simple component

I am having a simple component, basically a list view and a single view. I want to nice URLs so I copy pasted and modified the router.php from com_content like this: class BookstoreRouter extends ...
0
votes
1answer
6 views

How to setup Joomla with multiple languages all under the same menu

I want a bilingual website and I want all articles, regardless of their language to be in the same article listing (menu). For example, I create a french article in the blog category, and an english ...
0
votes
1answer
53 views

Any way to redirect (301) pages for unpublished articles/links (404)?

I am wondering if where is any way in joomla to solve following issue: I am having URLs (articles) which may have been externally linked Now I want to disable this links (unpublish) but if I ...
0
votes
0answers
27 views

How to customize amount of columns in Joomla megamenu?

My website has a mega menu dropdown in the main menu which shows up nicely, but the problem is that I had to choose the design for six columns to be able to implement my five desired columns in the ...
1
vote
3answers
38 views

How to remove image from Joomla cache

I have to make changes to an image on an old Joomla site (V 3.7.4). Logging into the backend causes a server error 500. I've updated the image (which is located in templates/shaper_helix_ii/images), ...
1
vote
0answers
7 views

Getting user submitted product properties programmaticaly in j2store

So I'm developing j2store plugin to calculate price for item based on product's width and height (these values are entered by the user). The form is rendered as following: function ...
0
votes
1answer
13 views

How to set date format to English when using a non-English language?

After I have installed the Persian language in Joomla; now all English dates are changed to Persian dates. How can I have the Persian language and English dates?
0
votes
0answers
12 views

Can't access websites hosted on GCP after updating joomla core

I host multiple Joomla sites on a Single Google Computer Engine VM. It has been working very well, but after I performed a Joomla core update I suddenly found that those websites can't be accessed ...
0
votes
0answers
10 views

How to change a language constant on the fly with PHP?

In Joomla! (currently 3.9.13) the language constant COM_INSTALLER_TYPE_TYPE_ is not defined. The constant is used in the error message that is displayed if the Joomla extension update system (the 'one-...
0
votes
0answers
8 views

Changes into in Joomla\Http\Http in Joomla! 4.0?

I have a part of code in my componenent which works in Joomla! 3.9.x, but in Joomla! 4.0-beta-dev i get a 503 error. My code is the following : use Joomla\Http\Http; use Joomla\Http\Transport\Stream ...
0
votes
0answers
18 views

How to update database module params

Could someone kindly help please? I'm creating a plugin and part of its job is to automatically add a 'Menu Class Suffix' to a chosen menu. I know it can be done manually from the advanced tab of ...
0
votes
0answers
8 views

Creating pricing calculator for J2Store

I'm creating j2store app for calculating price based on product dimensions. I'm using GetPricingCalculators event to register my custom calculator like that: function onJ2StoreGetPricingCalculators(&...
0
votes
1answer
23 views

Module creation reusing functions

I have a module that uses comAjax . Default uses the standard way of calling: 'option' : 'com_ajax', 'module' : 'available_stock', This works fine and in the module calls the relevant ajax function ...
1
vote
1answer
14 views

Is there a way to remove component media files on update?

In my Joomla component I have a bunch of Javascript files in media that change on update ( basically a compiled Angular app ) and because of the way the system is structured, I need to only have the ...
0
votes
0answers
8 views

Why am I getting an editors iframe popup in tiny mce editor when I embed a canva button in it

I am trying to embed a canva button in tinymce editor. Everything works fine. The canva url get loaded in a iframe but at the same time an iframe is also loaded in the back with the home url. How to ...
0
votes
0answers
12 views

Is having too many subform will affect website performance?

I'm creating a module that has 5 subforms (for theming options purpose), and each subform has about 10 fields. So far I don't see any significant performance issue on my website (except the module's ...
0
votes
0answers
19 views

How to login joomla from an external php file?

I am using ( Joomla! 3.9.11) define('_JEXEC', 1); define('JPATH_BASE', realpath(dirname(__FILE__) . '/..')); require_once JPATH_BASE . '/includes/defines.php'; require_once JPATH_BASE . '/...
0
votes
0answers
16 views

Is there any way to put subcategories in a Joomla menu?

I've been trying to change the way my website works. Currently, I have a menu that displays categories, but now I want to also display subcategories in it. I know that I can display articles of that ...
1
vote
2answers
225 views

UPDATE query to add 1 to multiple columns

I have a website for my football team. I have some statistics and so on in there, for example how many games each player has played and so on. What I would like, is for me to write in the names of ...
0
votes
1answer
30 views

How to extend the article search to take into account the values of custom fields?

In articles I have added a series of custom fields, now I need to be able to filter through these fields, while being in the article manager view. I have searched about it but without success, I just ...
0
votes
0answers
6 views

tinymce how to prevent adding p element?

I am using tinymce with Joomla 3.9 and 4 , I canot find the way to avoid it adding a p thanks for helping
5
votes
3answers
1k views

How to trigger javascript on a date selection on JHTML::_calendar

I am using the below code to show a calendar in my form. echo JHTML::calendar("", "timetable_slot_date", "id_timetable_slot_date") What I need is to implement an onChange or onDateSelect javascript (...
2
votes
3answers
785 views

Text search within single article content

I have inserted the Joomla search module in an article. Now I wish that this module would allow me to search only in the article in which it is present and not throughout the site! Is it possible?
2
votes
1answer
33 views

Do Joomla sessions for guests expire at different periods of time than logged in users?

I've been trying to track down some odd behaviour on a test site of mine and it appears to be due to guest sessions. I could be wrong, but it seems like Joomla sessions for guests are expiring at a ...
0
votes
0answers
13 views

how to make blog list view of protostar template joomla

I am using protostar template for creating blog but on home page it show whole content of blog but we want short description of blog. we want to display blog as list view. I have check on home page ...
1
vote
1answer
50 views

RSform!pro rounding

I have a bunch of Input radio groups with two values (yes = 1 and no = 0) So what I would like to have is to sum logically, means a {input1:value} || {input2:value} || {input3:value} || {input4:...
0
votes
1answer
12 views

Displaying the only the last 6 files of a category in article using Phoca Download Plugin

Phoca Download has a plugin to show a list of files in certain category using {phocadownload view=filelist|id=XX|limit=YY}, where XX is the number of category and YY is the number of files to show. ...
0
votes
2answers
244 views

How to add line break into placeholder text area?

How can I add a line break into the placeholder text area of the RSform? Tried without success: - \n - <br/> - &#10; A sample of the form with the non working text area can be found here ...
0
votes
1answer
22 views

Send email upon publish/unpublish of an item in custom component

I have created a hello world component based upon this documentation https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/ I want to send a notification to users if an item's ...
1
vote
1answer
87 views

Joomla BuildRule adds language code at the back of setPath

I'm having a problem with building the rule for a particular URL. Here's what I have in my system plugin: //... function onAfterInitialise() { require_once '/path/to/myhelper.php'; $router = $...
1
vote
1answer
27 views

How can I display the first name of the currently logged in user in content

Matthew Murphy asks the following on the Joomla Facebook Group: Anyone know of an extension for content that replaces the name with the person who's logged in? For example I have been working on a ...
0
votes
1answer
22 views

Is it secure to work with JCE?

I read https://blog.sucuri.net/2019/10/throwback-threat-thursday-jce-vulnerability.html We use JCE and it is so WYSIWIG, i.e., easy for a user that have access to frontend. I am from the "light side"...
1
vote
1answer
24 views

Extra fields Vs. float numbers

Well, I am trying to develop a simple web system that uses Joomla CMS. The project is simple and becomes from a thought of working with Joomla categories, subcategories, articles and extra fields ...
3
votes
1answer
43 views

htaccess 404 Redirect Not Working

I recently redesigned a site and there are loads of 404 pages, so to simplify things I want to add a redirect to my htaccess, redirecting any 404 pages to the home page. I though it was as simple as ...
1
vote
2answers
51 views

Individual user fine grained ACL is it possible in Joomla! 3.x

I was wondering if it was possible in Joomla! 3.x to have permissions down to individual user level. Eg: user A can see item X but not user B even if user B is in the same group or have the same ...
0
votes
1answer
87 views

How to remove username field from the reset password confirmation form?

Does anybody know how to remove the username field from the reset password confirmation form? I edited the reset_confirm.xml file in /components/com_users/models/forms to remove it from the front end,...
0
votes
0answers
14 views

How to use Joomla fields as texonomy [closed]

I know I have tags and categories for texonomy purpose but I want to use Joomla fields as texonomy. If there is any extension or core functionality then please help me.
1
vote
0answers
29 views

CLI for joomla 4 not working for me

Joomla 4 PHP 7.3.1 Composer and NPM node modules installed Following this doc on Joomladocs, CLI Update, php cli/joomla.php - and whatever command I add after doesn't work. I get an error message (...
0
votes
1answer
281 views

Custom fields - JS in template override

We need to add some enhanced ecommerce tags to standard Google Analytics tracking on few pages. We think the best way to do it would be to use Joomla Custom fields so we created a custom field for ...
0
votes
1answer
15 views

Only show joomla custom fields on certain category levels

Is it possible to only show a field on for example the 3rd level of categories? Now when I link a field to a top level categorie, the field is shown on all articles on all levels of categories, but is ...
0
votes
1answer
871 views

How to display social sharing buttons in k2 category items, tag list, and item's page?

The native K2 CKK social sharing feature don't pop by default so i spent some time and came up with this social sharing codes i want to share with the community. See my answer below and hope it helps ...
1
vote
1answer
15 views

JS file not loading on IE, works on Chrome in Joomla Seblod

I have added JS as a field on Joomla Seblod, which calls a JS file in my file system my_profile.js as follows- jQuery.getScript("/components/com_msp/js/my_profile.js") .done(function(script, ...
0
votes
2answers
13 views

Redirect a specific page on one website to a specific page on another website

I am hoping someone may be able to help me. I am not experienced enough with .htaccess and rewrite etc to understand what is needed. I have the following already switched on in my Joomla global ...
1
vote
1answer
19 views

how to route url - JRoute get wrong itemid and wrong sef url

Joomla 3.9.12, JoomGallery 3.4 I have a site with joomShopping for e-shop and JoomGallery for portfolio. The site has 2 menus where some menu items of the first are menu item aliases of the second. ...
0
votes
0answers
44 views

Redirect administrator login page of multiple Joomla websites hosted in Apache server

I have around 10 Joomla websites hosted on Apache server. The admin URLs are similar to below patterns. http://m1.aa.example.com/administrator http://m2.aa.example.com/administrator . ...
1
vote
1answer
59 views

How to programmatically set the value of a custom field of type checkbox?

In articles, I have created a series of custom fields, including two date fields and a checkboxes field. Now, through a plugin in the onContentBeforeSave event I need to verify that if date 1 is less ...
0
votes
0answers
12 views

Joomla! 3.9.12 ignores error.php when URL rewrite is turned on

I try to implement a 404 error page for my Joomla! theme without using the way to create an article. I simply want to use the error.php file as described in the documentation. Unfortunately, when "SEO ...
0
votes
2answers
42 views

was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)

The files are loaded as so: $document = JFactory::getDocument(); $document->addScript('media/breezingforms/slider-radio/slider-radio/slider-radio.js'); $document->addStyleSheet('media/...
0
votes
0answers
16 views

joomla 4 beta 1 Invalid controller class: display

Php 7.2 localhost MAMP I am having the same issue as here with Joomla_4.0.0-beta1-dev-Development (Monday, 28 October 2019 02:01:09 UTC) 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 ...

15 30 50 per page