Questions tagged [joomla-3.x]

For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.8.

Filter by
Sorted by
Tagged with
1
vote
1answer
11 views

com_ajax call is hitting function but not returning result from other function call

I'm using an ajax call that hits the immediate function fine, and then returns a dummy value via dump(). However, when I change it to call another function and get my data rather than using the dummy ...
1
vote
1answer
16 views

how to override mvc component in joomla 3?

How to override the any component controller model files using plugin in joomla is there any documentation for that?. I found documentation very old in joomla articles. i have been trying to create a ...
0
votes
0answers
7 views

com_ajax resulting in immediate 500 error in Joomla module

I'm currently using the com_ajax component in order to make an internal ajax call/response in my custom module, but upon the ajax call I immediately get a 500 error. This is the code in my default.php ...
1
vote
0answers
8 views

CB Conditional field not letting me add extra AND rows

I am trying to create a CB Conditional Field Show using an AND row, and it just won't let me. I can add OR rows to my heart's content, but not an AND row. I click on the 'Add AND rows' and not a ...
1
vote
1answer
26 views

Ajax call from module default.php file in order to fulfill a sql query

I have a fully working module in Joomla, but I'm struggling with the last piece which is sending a value from Javascript in my default.php file into the helper file, where it will be used in a sql ...
0
votes
1answer
70 views

Call a function using AJAX from a Joomla-View to retrieve data from the DB

i have coded a little component to administrate books for a histroy club. I added some views to deiplay different tables with book date. So far everythign works. In fact the DB access and the building ...
0
votes
2answers
313 views

Pass xml field inside module's helper class

I have a custom Joomla module. In the helper.php class, I need to pass XML field data. Here is what I have so far. class modcatbanerHelper { // I need to pass here public $selected_cat = $...
0
votes
1answer
69 views

JRoute does not show the URL it is supposed to

I have the following problem: I set a URL with JRoute like this: JRoute::_('index.php?option=com_gallery&view=gallery'); This gives me example.site/gallery, which is correct, however, if I ...
0
votes
1answer
2k views

How to change the default page in the Language Switcher?

I am creating a multi-language page in Joomla with 5 different languages. Everything is ok except for the language switcher. My home page is set for English, when I try to change the language from ...
1
vote
3answers
332 views

How to iterate over the "params" of an item ZOO Joomla?

The item of my interest is in the __zoo_item table. My query: $query ->select($db->quoteName(array('params'))) ->from($db->quoteName('#__zoo_item')); $db->setQuery($query); $...
1
vote
1answer
111 views

Contact Form Non Unique id #jform_id

Joomla 3.9.14 When I open a contact to edit their details and look in the browser console I can see the following notice; [DOM] Found 2 elements with non-unique id #jform_id: (More info: https://...
0
votes
1answer
29 views

Is it possible to get the page data in json format?

Wordpress offers the the ability to get the page in json format by adding /wp-json/ to the url. Now my question is, does Joomla offer a similar option where I could retrieve the page in json format?
0
votes
3answers
350 views

Joomla 3 call model function inside controller

I want to call a function from model inside controller my model : httpdocs/components/com_storemanager/models/searchmanager.php <?php /** * @version CVS: 1.0.2 * @package ...
0
votes
2answers
201 views

article view - com_content not triggering content plugins when article is split

I've created a template override for the article view where the intro and the full text are invoked separately. So, instead of <div itemprop="articleBody"> <?php echo $this->item-...
1
vote
1answer
213 views

Joomla 3 return view with parameters

I'm using Joomla 3 and I have a controller with the function abc that should call a view with some parameters title & address My controller :components/com_storemanager/controller.php <?php /...
2
votes
1answer
50 views

Joomla Tagged Blog of articles

I managed to create a 2 column blog view of articles on a Joomla 3.9 website using the guidance in this post, along with some additional linked advice on adding a "readmore": How to show ...
2
votes
1answer
86 views

Display instructions or other text in Plugin

I would like to display some basic text, instructions and maybe a change log in HTML would be nice, under the first tab of my Plugin, what methods or techniques are available? In my sample screen shot ...
1
vote
2answers
21 views

Share code between component templates

In a complex component, there will be a number of /views/viewname/tmpl/default.php (or similar) files. It is quite likely that different views will share common features. Duplicating code is generally ...
5
votes
1answer
2k views

SQL Injections using Jfactory::getDBO and setQuery() with LIKE condition

$db = JFactory::getDBO(); $searchP = JRequest::getVar('key'); $sql = "SELECT name FROM people LIKE " . "'%" . $searchP . "%'"; $db->setQuery($sql); $fileR = $db->loadObjectList(); Will ...
0
votes
0answers
30 views

Manipulate values of form before sending

A customer of mine has a Joomla website with several forms. When submitting these forms an email is sent to my customer with the content. Unfortunately the preset values ("value if empty") ...
2
votes
1answer
164 views

Get menu-meta_description from menu item

I need to add meta description inside a component page. That's what I tried: $menu = $app->getMenu(); // Load the JMenuSite Object $active = $menu->getActive(); // Load the Active Menu ...
1
vote
2answers
30 views

Database query with OR WHERE and AND WHERE not working

I'm creating a custom search form in Joomla! to search articles from certain categories. Here is my query: $categories = array('2', '12', '16'); $query ->select(array('id', 'title', 'catid')) ...
1
vote
1answer
313 views

Product url problem after updating VirtueMart

In my VirtueMart Configuration under the SEO tab, I've checked "Use full category tree for product links" so my products detail page default routing was like this: example.com/cat1/subcat1/subcat2/...
0
votes
2answers
64 views

Multple urls for a product with multiply categories

I have a cctv camera shop and I'm using the last version of joomla and virtuemart. I have a "bullet hd camera" the categories are: camera --> hd-camera --> bullet-hd-camera bullet-hd-camera is ...
0
votes
1answer
298 views

Joomla 3.9: Menu item set to Separator is not clickable to reveal sub-menu items

I am building a website in Joomla, and I'm trying to make a menu in which some menu items should not have any article associated with it; clicking on them should only reveal the sub-menu items, but ...
0
votes
1answer
338 views

Fatal error: Call to undefined method InvalidArgumentException::getlevel() in l/libraries/legacy/error/error.php on line 536

I've done a website transfer from one hosting provider to another one. I managed to make the website live in the new hosting, but can't access the Joomla! administration area. I get this error: ...
0
votes
1answer
177 views

Tracing source of this error: Call to a member function reorder() on boolean

Is there a way to trace this error: Call to a member function reorder() on boolean I'm checking my PHP Logs but this particular error isn't showing up there. It happens when I'm trying to create ...
2
votes
1answer
1k views

"Failed deleting inaccessible file" error while updating JCE editor pro to 2.8.1

I am trying to update JCE editor pro to 2.8.1, but I get the following error: Joomla\Filesystem\File::delete: Failed deleting inaccessible file controller.php We are using PHP7.2 and Joomla 3.9.13 ...
0
votes
1answer
31 views

Why are all permissions allowed for every user group

For some reason I can't deny permissions to some actions. Everything has in green: Allowed (Super User). Even when the setting is set to denied. For example here: in the public user group I set site ...
0
votes
0answers
12 views

How to redirect virtuemart user to orders page after registration

I used the VirtueMart component on the Joomla website and users must register an account through VirtueMart. Users do not need to confirm their email address after registration and after registering, ...
1
vote
1answer
38 views

How to add GET parameter to CSS filename in plugin JCH Optimize (Joomla)

I cannot find an answer to for several weeks. Perhaps my experience in development is not so great :) One site uses the JCH Optimize plugin and I noticed that after clearing the old memory (cache), ...
2
votes
1answer
90 views

Ask for confirmation before extension update via update server

We are implementing an update server feature for our custom Joomla extension. Is it possible to add confirmation text after selecting the extension and require the click of the update button before ...
0
votes
1answer
28 views

Connect to External Mongo

Is it possible to connect to an external mongo db or some other no sql database to get some data? I don't mean to have no sql database as the main joomla installation. Joomla is installed to mariadb ...
1
vote
1answer
79 views

How to add default values to Joomla subform fields?

CMS Joomla has a standard subform field type. How to fill in the default values in it? Field code in XML: <field name="field-name" type="subform" formsource="exampleform....
3
votes
4answers
4k views

What is the best way to create REST/SOAP/JSON Web Services for Joomla?

If I have to create Web Services (REST/SOAP APIs) for Joomla based website. I have MySQL DataBase running with Joomla website and I wanted to create mobile apps for that. By using same Database how ...
0
votes
2answers
34 views

Form-Fields-Fieldset-showon issue

For a component I have a field item_type that needs to be saved in its own database column for ease of searching, filtering etc, and a set of configurations which have global option defaults so are ...
0
votes
1answer
90 views

Install Joomla On Windows 10 And Use MS SQL As Back-End

I have Windows 10 and IIS up and running, I was wanting to know if there was a way to set-up Joomla with MS SQL on windows 10 and IIS?
0
votes
1answer
20 views

SEF url and custom view

Was able to create a custom component and a custom view which I went ahead and attached a js library to. Now to achieve my desired functionality I need to create a custom url(SEF) in my route.php file,...
0
votes
1answer
445 views

How to remove category from URL?

I have a little problem - I want to remove categories and submenus from URL in Joomla 3.9.3. Of course, I did basic things like removing ID from URLs, but removing category is like a milestone for me. ...
1
vote
1answer
23 views

When a user logs in it always goes to edit-your-profile page

Joomla version: Joomla! 3.10.1 Stable PHP: 7.4 This joomla website doesn't have many plugins. I only have OneSocial plugin. Anyways, I am willing to try any suggestions at this point, I have tried to ...
0
votes
1answer
126 views

Remove index.php - file on multlilingual Joomla Site

As supported by various posts, I did : change the htaccess.txt - file name to .htaccess via FTP set the URL - Rewrite Option in the Joomla Configuration Options to "YES" Result: - index.php is ...
0
votes
1answer
27 views

Getting Editor to show on front (site) of website

I'm trying to display to users an editor in the front end of my website (in a logged in area) I have: // IMPORT EDITOR CLASS jimport( 'joomla.html.editor' ); // GET EDITOR SELECTED IN GLOBAL SETTINGS ...
1
vote
2answers
97 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 ...
1
vote
2answers
1k views

Any “Link Preview” (like the facebook feature) in joomla editor?

I'm writing articles commenting diverse sources from the web (youtube video/news articles, blogs...). To show which article I'm commenting I'm using an image (thumbnail + some text). So my article ...
0
votes
1answer
40 views

Change boolean field in JModelList table like "published"

Joomla 3.9.10. I have custom component. In admin panel I show items list from one DB table with JModelList. models/mycom.php: class MyComModelMyCom extends JModelList { public function getItems()...
0
votes
2answers
137 views

Custom Component - Copy / Archive record when values change

For a custom component, I want to incorporate a way of keeping track of changes made to records in specific tables. For example, when the mileage value of a car is changed, the record having the old ...
0
votes
1answer
35 views

Joomla - User Custom Fields (Required for user on frontend, but not required on backend)

I am using custom fields in the user section. I am needing to set this required for the front-end users when they are editing their profile, etc. This is working as intended, however, I am needing a ...
0
votes
1answer
22 views

Visual code is unable to identify method inside model

I am using Microsoft Visual Code for custom Joomla development. The below code is from one of the controller php file. Public function savecontact(){ Joomla\CMS\Session\Session::checkToken() ...
1
vote
1answer
122 views

Which one to use? grid.sort vs searchtools.sort

I have been looking at why column sort orders wouldn't change in the front list view of my component and found by changing <?php echo HtmlHelper::_('searchtools.sort', 'JGRID_HEADING_ID',...
0
votes
1answer
34 views

How to conditionally filter the presentation of category when creating a new category/article?

I am looking for a solution for the following requirements: Display only the category of first level when creating new category. Display only the category of second level when creating article in ...

1
2 3 4 5
62