Questions tagged [custom-component]

For questions related to custom component development

Filter by
Sorted by
Tagged with
5 votes
1 answer
1k views

Joomla Terminology: view, layout, task and component development

I'm a developer and I am very confident with MVC patterns and have already developed a lot of web apps from scratch using PHP frameworks like symfony and yii. However, I'm a little bit confused about ...
user2548436's user avatar
5 votes
1 answer
493 views

How to generate a dynamic note field for a custom component?

I am attempting to develop my first custom component called com_image. Because of the structure and function of my project requirements, it made best sense to clone the com_contact folder and ...
mickmackusa's user avatar
  • 4,781
5 votes
1 answer
423 views

Joomla custom session data is overwritten

I'm writing a custom component cart, and using a form post to save cart data in the Joomla session. It works initially, but then if the user goes back to add another item, the original item is ...
James's user avatar
  • 642
5 votes
2 answers
261 views

Redirect after completing the package installation

I got a package that contains few extensions. I want to redirect to my custom view once the package installation is fully complete. I thought of trying via installer script using the postflight ...
Malaiselvan's user avatar
  • 2,721
5 votes
1 answer
2k views

How to set name for Administrator Menu Section of a Component?

According to Developing a MVC Component/Developing a Basic Component, proper place of setting Menu Section name is helloworld.xml file. Particularly <administration> <!-- Administration ...
Andrii Muzychuk's user avatar
5 votes
3 answers
770 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', '', ...
MyFault's user avatar
  • 677
4 votes
3 answers
688 views

New files in Joomla 4 components

In Joomla 4 there are new files in the components, like: services/provider.php Extension/XxxComponent.php Service/HTML/AdministratorService Are there available documentation about how to implement ...
framontb's user avatar
  • 237
4 votes
1 answer
1k views

with insert on duplicate key update - updating multiple rows at once

With latest joomla version I try to achieve one query to the database and updating multiple rows at once. I want to make a query like this: INSERT INTO `tablename` (`id`,`date`) VALUES ('79','2018-...
user348246's user avatar
4 votes
1 answer
94 views

Extension manifest to set version as 3.4 or greater

As per the link here the version can be either 2.5 or 3.0. But my requirement is to have the version anything greater that 3.4 in 3.x series. How this can be done? Should I go via scrip file? Or is ...
Malaiselvan's user avatar
  • 2,721
4 votes
1 answer
680 views

How can include the component view in plugins

I have custom component and plugins and listing some details in table after click on the table i'll go to details page. i want show the one of details in article, so i created a custom plugins and got ...
SAM's user avatar
  • 83
4 votes
1 answer
1k views

Using external library with a component

My component is using phpExcel library; I put it into /libraries/phpexcel/Classes. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it ...
user4035's user avatar
  • 179
4 votes
2 answers
2k views

Subform multiple data not saving

I'm trying to use the Joomla subform field with multiple="true" on (instead of using the old modal repeatable method). My problem is that the data is not saving to the database. I have read multiple ...
sigil's user avatar
  • 63
4 votes
2 answers
454 views

Standalone PHP calling Joomla APIs

I am writing a cronjob (cron.php) which will have to run under the Joomla root folder which call Joomla functions like JFactory::getDbo(). I have the following code in cron.php define( '_JEXEC', 1 );...
Malaiselvan's user avatar
  • 2,721
4 votes
1 answer
3k 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('...
Malaiselvan's user avatar
  • 2,721
4 votes
2 answers
425 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 ...
jonboy's user avatar
  • 3,593
4 votes
2 answers
508 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 ...
Leanne Seawright's user avatar
4 votes
1 answer
220 views

How to change styling of Joomla Collapsible Sidebar in Backend?

I have created sidebar for my custom component by using the documentation - How do I apply JHtmlSidebar to add a sidebar to my admin view? I have to add some styling to the Joomla Collapsible ...
Joomler's user avatar
  • 1,801
4 votes
1 answer
148 views

How can I clear the cache for the params of a custom component?

I am working on a custom component and it works as intended as long as I do not have cache enabled. In the admin section of the component, I have a view that can change the "component params": $...
jost21's user avatar
  • 239
4 votes
3 answers
565 views

How can I have multiple layouts for a View that are available as a menu option such as &layout=xxx?

I need to be able to specify different layouts of the same View by way of the Menu item, resulting in a url having &layout=blahblah appended. - NOT using a template override. i.e.: index.php?...
GDP's user avatar
  • 7,715
4 votes
1 answer
595 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 ...
jonboy's user avatar
  • 3,593
4 votes
1 answer
443 views

How to implement drag-and-drop ordering in custom component?

I'm developing a custom Joomla component for an application and would like to implement drag-and-drop ordering in a list view on the admin site. I found an excellent guide here: Adding drag-n-drop ...
kalinma's user avatar
  • 153
4 votes
1 answer
123 views

Custom Component Caching

I have a custom realty / information component written for a military related website. There are roughly 220 military installations that are covered by my component and for each installation I am ...
Terry Carter's user avatar
  • 1,812
4 votes
1 answer
118 views

How does a custom component trigger the SmartSearch indexing?

After many months, I've had to come back to a component that was well under way, which I thought was automatically indexing the data I was saving as it was saved. As I'm re-familiarizing myself with ...
GDP's user avatar
  • 7,715
4 votes
0 answers
633 views

(4.1 -> 4.2) Attempted to load class TemplateComponent from namespace Joomla\Component\Administrator\Extension calling $app->getTemplate

I have a file test.php that manually loads the Joomla framework and prints template parameters. <?php // test.php, located in the same directory that index.php is define('_JEXEC', 1); define('...
toblerone_country's user avatar
3 votes
1 answer
864 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 } ...
Malaiselvan's user avatar
  • 2,721
3 votes
1 answer
114 views

Content plugin doesn't add text to articles

I have the following plugin written: defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); class plgContentModifyArticle extends JPlugin { function ...
Cowboy_Patrick's user avatar
3 votes
1 answer
2k views

How to use HTMLHelper to add to the document head

In this post: How to add CSS/JS/an Image to a module backend @lodder shows me how to use HTMLHelper to add CSS and JavaScript. Previously I had followed the Joomla! documentation https://docs.joomla....
Eoin's user avatar
  • 1,889
3 votes
2 answers
700 views

How to query and display a list of nested tags for a particular parent on front end as links?

What is the best way of querying the db to generate a list of tags matching a particular parent and display on the front end as a link with tag title and id? This is for a custom joomla mvc ...
user2097091's user avatar
3 votes
1 answer
163 views

onUserAfterLogin popup - Joomla 3.6.4 Plugin

I need to create a plugin that displays a popup when an user makes a log in on my Joomla 3.6.4 website. I know that I need to create a Plugin and trigger the onUserAfterLogin event, but I don't know ...
OlafGizursson's user avatar
3 votes
1 answer
74 views

Proper Way to Migrate Custom Website to Joomla

Background: Thirteen months prior to this question, I voluntarily updated http://evangelismmission.com to its present state and design. Since that point, I have been maintaining it for Evangelism ...
J. Allan's user avatar
  • 131
3 votes
1 answer
108 views

What is the prefered method for sharing code and SQL queries in joomla 3.9+?

I'm developing a component that is targeting Joomla 3.9+. The code is not using the legacy classes and is instead using the new namespaces. The component will duplicate much of the functionality from ...
nimble's user avatar
  • 418
3 votes
1 answer
325 views

Tags filter field - how to add custom "placeholder"?

I have added a tags filter in my component's list with multiple enabled. <field name="tag" type="tag" label="-Select a Tag-" description="Filter by Tags" multiple="...
FFrewin's user avatar
  • 19.6k
3 votes
2 answers
267 views

How to decide developing a front-end or back-end component?

As we (two volunteers) are going to develop a component with some features mirroring (part of) the processes going on in the (non-profit) foundation, I was wondering if there would be a rule of thumb ...
Wieger's user avatar
  • 253
3 votes
1 answer
92 views

Component getList cache not loading/saving

I've built a custom component, and I'm trying to make it a bit faster, and while I was rooting through model core files I saw that their getItems() uses a caching to reduce DB queries: $store = $this-...
Chaosxmk's user avatar
  • 338
3 votes
1 answer
78 views

Make a checkbox group disappear

I am using BreezingForms and I have a checkbox group that look for files into my database. It is possible that there is no item to select in the database; at this moment, I want the checkbox group to ...
Chènevis's user avatar
  • 131
3 votes
1 answer
286 views

Can I access/use Joomla's Smart Search results in my custom component?

Is it possible to call the Smart Search "engine" from a custom component, hopefully with AJAX? Our component has an exhaustive amount of content that needs to be searched from within the component ...
GDP's user avatar
  • 7,715
3 votes
3 answers
2k views

JToolBar custom button error

I'm working on my own component and i'm trying to add a custom button to my admin view that calls a task. In view.html.php protected function addToolBar() { JToolBarHelper::custom('...
Gicadin's user avatar
  • 53
3 votes
1 answer
33 views

Is there a functional reason for the naming convention for custom actions?

I'm writing a component for which I'd like to implement some additional restrictions on actions. For example, I want administrators to be able to view user details, but restrict some sensitive ...
Sokkensoepje's user avatar
3 votes
1 answer
257 views

How to send data with save2copy button?

I'm developing a component. I want to have the save as copy button appear next to each element on my front end list view. I have copied the save as copy buttons html from the edit view of a single ...
Jonas Borneland's user avatar
3 votes
1 answer
152 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) ...
Mike M's user avatar
  • 33
3 votes
1 answer
829 views

Chosen on AJAX content

I am working on a site (custom component and template) where I want some links to have their content shown in a popup. The popup itself seems to work fine, but I noticed the select boxes aren't ...
Tom's user avatar
  • 43
3 votes
2 answers
129 views

Change multi-language admin panel setup

I am new to Joomla. I want to create a multi-language website using Joomla CMS. I followed the instructions at https://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html#...
Ishan Jain's user avatar
3 votes
1 answer
83 views

Caching a component's view for less than a minute

I have a component which has a feed. This feed updates constantly, pulling information from external sources. To reduce pressure on my server at high traffic periods, I want to give the generated feed ...
RichardB's user avatar
  • 3,072
2 votes
2 answers
272 views

How to create a (better) development environment for Joomla 4

I have been writing a custom joomla 4.x component. It's not working. But rather than getting people here to debug my code I want to know how to set up a proper development environment that will give ...
Huw Evans's user avatar
  • 371
2 votes
2 answers
2k views

Problems with Custom form field select list

I am attempting to modify code that was created by Component Creator. The modification I am trying to make is to get the select list to save the partno instead of the index value. There are two ...
maleman's user avatar
  • 65
2 votes
1 answer
186 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 ...
RustyJoomla's user avatar
  • 2,076
2 votes
1 answer
653 views

Can I add class attribute in JHTMLGrid?

I am trying to add class attribute in the checkboxes. https://docs.joomla.org/API15:JHTMLGrid/id I read the documentation but no luck today :( Please check the image (Thats just an example) So ...
Joomler's user avatar
  • 1,801
2 votes
2 answers
1k views

Component language file is coppied but does not work

I am just trying to create backend component and I can't get the language file to work. This is my xml manifest (the important part): <media destination="com_displaygroups" folder="media"> &...
Thomas Kolasa's user avatar
2 votes
2 answers
691 views

Check a form field for duplicates before saving

I have a custom component where the user can add some data. Here are the two relevant fields: <field name="title" type="text" label="Title" description="Please enter a title" ...
sifu's user avatar
  • 1,105
2 votes
1 answer
139 views

How does a custom component store config.xml information

I've been developing a custom component on Joomla 4 for a few months now and I've finally got round to working on the access and permissions side of things. Whenever I try to access the Options for my ...
Grant Hood's user avatar

1
2 3 4 5 6