Questions tagged [custom-component]

For questions related to custom component development

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

Multiple components on a single page

Is it possible to show multiple components on a single page in joomla? I have 2 menu items, each one shows a different component, i want to show them both on the same page, is it possible?
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
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,...
2
votes
1answer
67 views

Is it possible to create a component "addon"?

I've created a component for handling a multitude of things for my clients, but I frequently get feedback that certain sections aren't needed or that additional sections are desired. The first ...
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
1answer
86 views

'getErrorMsg' is deprecated in Joomla 4 and what would be the equivalent

In my custom Joomla component, I got the below code $db = Joomla\CMS\Factory::getDbo(); //some code if (!$row->bind($this->_formdata)) { if($db->getErrorMsg()){ //do some code } ...
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 ...
1
vote
1answer
56 views

'JEventDispatcher' is deprecated in Joomla 4 and what is the replacement

I am using the below code in my current Joomla custom component Joomla\CMS\Plugin\PluginHelper::importPlugin('captcha'); $dispatcher = JEventDispatcher::getInstance(); $res = $dispatcher->trigger('...
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() ...
0
votes
1answer
32 views

'JModuleHelper' is deprecated in Joomla 4 and what is its equivalent

I am using the below joomla code in my custom component. $module = JModuleHelper::getModule('mod_mycustommodule'); $moduleParams = new Joomla\Registry\Registry($module->params); It seems '...
1
vote
1answer
114 views

Load language files inside custom library

I have a a library inside \libraries\mylib\. That library contains an include.php which uses following to load language files that are also inside a /language folder in the library: $lang = JFactory:...
0
votes
1answer
80 views

How to override "Select an option" header for SQL and list fields

In my custom component, inside the forms, I have several list fields. Some are normal list fields, others are sql fields. All of these show "Select an option" as a header. I can't find the way to ...
4
votes
2answers
729 views

Custom component: Export items to CSV -> Changing searchbar causes a new download

I would like to export all selected items from the items-view of my component. To do so I modified my view and inserted a new button to the JToolBarHelper::custom('items.exportcsv', 'download', '', ...
0
votes
1answer
36 views

Trying to add subform field to existing component xml

I've added the following into my components XML file : <field name="activity_name" type="subform" label="Activity" description="" multiple="true&...
1
vote
0answers
31 views

Using sql field in custom component

I have a custom component, it allows admins to select a related content article from the #__content table using the following: <field name="relatedcontent" type="sql" default=&...
2
votes
1answer
25 views

Show more than two values from array

I have the following fields in a component: <fieldset name="carousel_container"> <field name="carousel" type="Repeatable" icon="list" description=&...
1
vote
0answers
24 views

Codeception Acceptance Testing issue using session snapshot

I think i read almost all similar reccources considering this issue, but nothing helped so far. I am moving our Codeception tests on Github Actions. The whole build process is running but the ...
3
votes
1answer
58 views

Custom Component with ACL not apearing in admin menu

I have been asked to help maintain a custom component that has already been installed on a server, but had no ACL. I followed the sample tutorial in adding both XML files (Access.xml and config.xml) ...
1
vote
1answer
28 views

Show images and caption from array as images in carousel

I have the following fields in a component: <fieldset name="carousel_container"> <field name="carousel" type="Repeatable" icon="list" description=&...
2
votes
1answer
39 views

Select articles to display in custom component

I have a custom component where I was to be able to select other articles to show in the frontend. I have thought the best way to do this would be through the SQL field. This is good that it gives me ...
0
votes
1answer
64 views

Custom module doesn't work, messing up all page, messing up editor

I am using Joomla! 3.7.5 and JA Builder. I'm trying to create a block with custom module. Once I create it, paste code and assign position, then in page editor add block with widget - position and ...
1
vote
1answer
35 views

Codeception Acceptance Test Issue with JoomlaBrowser

When trying to write a simple Acceptance Test only creating a new Joomla Article Blog Menu Item, I'm doing this: $I->createMenuItem('Blog', 'Articles', 'Category Blog', 'Main Menu'); I get this: ...
0
votes
1answer
96 views

What is the proper way to use content.prepare?

I am trying to put a module inside another component. According to https://www.joomlashack.com/blog/joomla-how-to/module-position-component/ I can put <?php echo JHtml::_('content.prepare', '{...
2
votes
1answer
59 views

How to open a new window/tab or modal from within a component

I am trying work out how I can pop up a modal or open a new window or tab when selecting a button on a form that processes the form and passes to another extension? I can't seem to find any examples ...
1
vote
1answer
180 views

Using form XML for custom filter and removing group definition

I'm creating a small component with a search module. I will dumb this example down so that the question will be clear. The component manages books. The book form XML looks like this and its structure ...
1
vote
2answers
62 views

How to use SQL statements not supported by JDatabaseQuery

Recently, I have needed to use some SQL statements that are not supported by the JDatabaseQuery class, specifically REPLACE INTO and INSERT IGNORE. The only way that I am able to get something to ...
1
vote
2answers
97 views

Best practices for Joomla - Get another model in a view from another controller

I need to get data from another model than the view specific controller/model into the view. But I'm not sure if the way I'm doing it now is correct. I do that via the following way in the view.html....
1
vote
1answer
54 views

JTable, new row doesn't get inserted with table->save method

I'm trying to insert a row with the table->save() method, but the method executes an UPDATE instead. There is no row available, so it needs to be inserted. Does anyone know how to get it inserted? ...
1
vote
2answers
54 views

Controller method does not get data passed through jQuery.ajax()

I am developing a Joomla component. In javascript I use jQuery.ajax() for making a (php) controller method put data (from javascript) into the database. However, after installing the component on one ...
2
votes
1answer
515 views

Use Doctrine 2 ORM in Joomla 3.x when developing a custom component

I'm developing a component in Joomla 3 (I'm quite new to it). Because the database schema of the component is quite big, I think it's logical to use some ORM for DB abstraction, but I can't get up-to-...
1
vote
0answers
21 views

Form With Buttons That Don't Submit Data

I am trying to make a page that performs various functions in vanilla Javascript. One of the functions involves submitting form data to Joomla. However the issue I have is that Following the following ...
0
votes
0answers
17 views

Save an article with MVC methods from MY controller without "The security token did not match"?

I'm using AJAX to allow users to add an event, and want to create a new Article when they do that. I've found a number of answers that address using a controller in this manner, and finally found the ...
4
votes
2answers
433 views

Joomla 3.9.1 publish/unpublish no longer working (custom components)

I've recently upgraded my joomla site to 3.9.1, and now my custom components publish/unpublish buttons aren't working and I can't figure out why. The database column is called "state" and this is the ...
0
votes
1answer
47 views

Get the link to the item in the backend edit view of that item

Let me explain. I have created a custom component, when editing the element and saving it once, I would like to display next to the alias the sef frontend link to this element. Here is a screenshot to ...
1
vote
2answers
195 views

How to dynamically reload admin-form-fields in Joomla

In a custom component, I'm developing an admin form with 2 fields, a combo-box for jobTitles and checkboxes for technologies. Both fields are loaded from a database table. The values of the checkbox ...
1
vote
2answers
113 views

How can I show an alternate layout for my view in an MVC component?

I am trying to choose the layout for my view dynamically, which is what I imagined setLayout or loadTemplate on my JViewLegacy view would be able to do, but there seems to be some extra convention ...
0
votes
0answers
27 views

Combine a custom module and component

I have inherited some custom components and modules for development. One module depends on one component very heavily. Is it possible to combine these two into one installable package? If so, how?
0
votes
0answers
43 views

How can I get the values of the form on my admin page

I have a form on my admin page of my component, and I can edit the fields and save them. When I load the page the saved fields show. Say for example in a blog_category menu item. I create a new menu ...
2
votes
1answer
267 views

Joomla 3.9.19 get the constants from global configuration in component display function

I have created a component and need to get a constant value in the component administrator and list the item according to it. I have tried different ways to get the constant value in the display() ...
1
vote
1answer
79 views

Sharing a MVC resources library between two components

Lets say my component is called dumbo. It contains all kind of MVC stuff and works well. Now i have a second component that is called jumbo. I need both components to share some models, controllers ...
0
votes
1answer
29 views

Component development, on installing an update, should/could J! ignore some database errors?

While developing a component the database can go through many changes. Updating the component then either goes through many schema update files, or causes problems. Re-applying a database change file (...
0
votes
1answer
139 views

Where do I define custom global variables in my Joomla project?

I'm using Joomla 3.9.18 and I've got a project including a component and a couple of modules. I've got a couple of variables that are the same throughout the whole project (like some prefixes and a ...
0
votes
1answer
47 views

How to install custom component sample data?

I have a custom component for Joomla. I understand how to install some data using the sql file of component. Now I want to add some data to the database tables in a separate package. I can't find any ...
3
votes
2answers
191 views

Front End Management of Joomla Users

Joomla 3.9.20 I know there's no default way of managing Joomla users on the front end (a huge drawback of Joomla imo). There appears to be some commercial extensions and components that do this, but ...
1
vote
1answer
38 views

Toolbar not displayed in my Joomla MVC component

view.html.php class gezcViewVliegtuigen extends JViewLegacy { protected $editID = 0; // if task is not specifiek in the url als parameter, display will be used function display($tpl = ...
0
votes
1answer
76 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 ...
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 ...
4
votes
1answer
433 views

Joomla and Eventbrite Integration

I am looking for a way to integrate Eventbrite with Joomla. I want to show a list of upcoming events that I have created. There are a number of default widgets available with Eventbrite (copy / paste ...
1
vote
0answers
80 views

Embed custom JS app in Joomla MVC

A before warning: I'm new to both Joomla, PHP and JS. So this might be obvious, but I'm lost. I'm looking to embed a program I made in react/node into Joomla. The program uses JSX to create the HTML ...
1
vote
1answer
47 views

Error Updating Component - does not update

I'm not sure if it's a good title for my question, because my component actually updates - at least that's what Joomla tells me. So, the problem is that I developed a component and now I need to ...

1
2 3 4 5