Questions tagged [custom-component]
For questions related to custom component development
282
questions
1
vote
0
answers
163
views
"Joomla is not defined" error when logged in - Pagination
Hi we have 2 different custom componenets running on a website (they aren't loaded together, just have the same issue) and they have pagination.
We are finding that when clicking on the pagination an ...
0
votes
1
answer
157
views
Is it possible to check if a method or function exists in the component controller?
I have a custom component that will be using various AJAX calls, based on outside settings.
How can I load "this" controller from the View or Model to determine if a method/function exists, i.e. PHP ...
1
vote
1
answer
71
views
Joomla Custom-Component Select Field with Editor [closed]
I'm trying to make a dropdown box from my table (#__projectinfo) where I can choose, for example, an article and show in an editor ready-to-use, update or save.
The objective is to choose an email ...
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 ...
1
vote
3
answers
1k
views
Calling Joomla!'s Default 404 Page
I am working on a custom component that displays pages to the user on the front-end. It is possible that a user may try to access a page of the component that no longer exists, and in these instances, ...
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 ...
0
votes
1
answer
106
views
Extension Type "File" execute scriptfile tag in manifest
I have declared a XML manifest file for my extension of type file like this:
<?xml version="1.0" encoding="utf-8"?>
<extension type="file" version="2.5" method="upgrade">
<name>...
0
votes
1
answer
193
views
0 Class 'EngineeringHelpersEngineering' not found
I am developing a custom component and when I try to call my view I am receiving this error. The error occurs at: .\components\com_engineering\views\commentform\tmpl\default.php:24
Here is line 23 ...
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 ...
0
votes
1
answer
129
views
converting component from Joomla 2.5 to 3.x [duplicate]
I'm trying to convert a component from Joomla 2.5 to 3.x.
I can't figure out what I'm doing wrong.
The admin component controller has:
class PatientinvoicesModelPatientinvoices extends JModelLegacy ...
0
votes
1
answer
796
views
Different views on router.php (Joomla! 3.6.4)
I am developing my second custom component for Joomla! 3.6.4 and I have another problem with my router.php. This time I need to dynamically change the view on my router.php but I don’t know how to do ...
0
votes
1
answer
178
views
JTable->check() - Save failed with following reason: (with no reason)
In my component's JTable's subclass, I have overridden the check() method to perform my internal checks, when saving an item with my JModelAdmin subclass.
So when saving an item, if any of those ...
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 ...
1
vote
0
answers
578
views
JModelAdmin - save() method. What's the purpose of $table->newTags?
Can someone explain me why in the save method of the AdminModel class, there is the creation of a new $newTags property on the $table?
How this new property is used? How is it handled later on by the ...
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="...
2
votes
1
answer
976
views
JRoute::_('index.php') no longer adds Itemid since Joomla 3.8.4
I have a custom component that handles generates a page containing a list of events, and a page giving details for the event. Previously, I would have one menu item setup to handle the list page:
...
1
vote
1
answer
36
views
Using a non-numeric ID in a backend component
In a backend component, I have one table that does not have numeric ID numbers. It is instead indexed on a unique alphanumeric value (think like a list of U.S. territories indexed on abbreviation, e.g....
1
vote
1
answer
832
views
Joomla! 3.6.4 router.php for a custom component
I am developing a custom component for Joomla! for the first time and I am stuck on the creation of a router.php. I alredy read the Joomla! Documentation but without clearly understand what to do.
...
0
votes
1
answer
865
views
How do I add custom HTML into a menu?
How do I add custom HTML into a menu? I wish to add this code as a menu item.
<form action="/your-server-side-code" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" ...
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 ...
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 ...
2
votes
1
answer
562
views
Creating a Component menu item via a Plugin
I've been reading over Joomla development documentation for awhile, but haven't picked up as much as I would like. What I'm trying to accomplish seems very simple on the surface, but navigating the ...
1
vote
1
answer
174
views
J3.8 : create folder on save item in custom component
I've created a custom component in which my client can add and manage different accommodations. I would like to automatically create a folder (with name of Alias) inside '/images' whenever the client ...
0
votes
1
answer
37
views
Converting joomla 2x component compatible to joomla 3x
I am updating Joomla component to Joomla 3x
but getting error on code.
Code Line:
$postData = $this->dr_parameters->app->session->get('errorPostData', array() );
Error:
0 Call to a ...
1
vote
1
answer
517
views
Making Joomla 2.5 component compatible with Joomla 3
I have component in Joomla 2.5. I am trying to make it to compatible with Joomla 3.x.
After few changes in the code, I get an error:
Cannot extend from interface JController
Then I change the ...
2
votes
1
answer
987
views
Can't insert iframe in custom created component tinyMCE field
I'm building my own component, and trying to insert a youtube embed url in a tinymce editor field. However, the editor keeps removing the iframe tags from the text.
I followed the recommended ...
1
vote
2
answers
2k
views
Remove /component/ from URL generated from module for a custom component
I have created a custom component with routing that seems to be mostly correct and have now created a module to display multiple items of the component on the homepage.
I have got it to a point where ...
1
vote
0
answers
24
views
JToolbarHelper contents disappearing when cache is enabled
I've setup my custom component using JToolbarHelper for navigation, following the standard set by base Joomla components.
Each view contains some variation of the following:
JToolbarHelper::title(...
1
vote
1
answer
1k
views
How to correctly create dynamic content for Joomla?
I know this is a broad question but I really need to ask it. I started using Joomla a long time ago, and I have build a pretty extensive system that is highly used but I never liked the way I did it. ...
1
vote
0
answers
28
views
When I install a custom component, language is installed but jomla not detect
That's the structure to a custom component.
The installation is OK, but Joomla don't detect the languages that I have to that component.
That is the structure to my xml file.
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-...
2
votes
2
answers
304
views
Custom Component load data
I'm fairly new to Joomla and I'm taking over a project from a previous developer.
In a custom component we are capturing user data in a form. Before the name and address is entered into the database ...
1
vote
3
answers
2k
views
Params in Custom Component List View
I'm fairly new to Joomla and I'm developing my first component. I finished up the backend and I'm working on the frontend. I have most of the functionality figured out but I can't figure out how to ...
1
vote
1
answer
92
views
Creating a module/component that can be attached to a menu item with the Menu Item Type selector
I can create a component/module to fill main page area. I can even embed that in an article, and have that article attached to a Menu Item with the Menu Manager.
However, I want my component to ...
1
vote
1
answer
780
views
Custom Component URL router
So I have read https://docs.joomla.org/Supporting_SEF_URLs_in_your_component and looked at examples both online and in com_content but I still cannot get this routing thing down 100%.
I would like to ...
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 ...
1
vote
1
answer
590
views
Custom dynamic fields - SimpleXMLElement in model and data info fields
Good morning,
I have a question. I create my own fields in my own component. I'm using the "SimpleXMLElement" class. The form generates via getForm work perfectly:
$newfieldset = new ...
0
votes
0
answers
108
views
Create custom HTML page as administrator menu in Joomla 3.7
As we know Joomla 3.7 permits to create custom administrator menus, but is it somehow possibile to create "Custom HTML" administrator single item menu? Something like creating single article menu on ...
1
vote
1
answer
43
views
Decorate Menu Option
I have a component that adds a menu option ("Connect Daily Calendar") to the Joomla Components menu.
What I would like to do is under certain circumstances "decorate" the menu option's text. For ...
1
vote
3
answers
1k
views
Create SEF URLs from a Custom Component that does not search on database
I am creating a custom component that will get data by json from another url. So far it works good but I am having some difficult trying to apply a SEF URL with a router.php file.
Example, current ...
0
votes
1
answer
462
views
Radio form field - can value be a string?
I'm using the Joomla radio button form field type and am having trouble with option values that are strings. I'm not sure if I'm doing something wrong or if there is a bug there.
So in my component ...
1
vote
2
answers
573
views
Load a custom css file from a component into the head tag after the backend template css file
I'm trying to load a component custom css file, placed in the frontend media folder in the media/mycomponent/css folder, to load into the backend after the backend template.css file (Isis) is loaded (...
2
votes
1
answer
1k
views
custom table display - help turning static html to dynamic php
I am trying to modify the list view of my Joomla component to display my table's data in a more user-friendly fashion. It currently simply displays all data in a regular table with columns and rows, ...
1
vote
1
answer
629
views
Custom form field not working on server
I created a custom component and in the form one custom field categoryList to list all categories dynamically. Following is the code:
formname.xml
<fieldset addfieldpath="/administrator/...
1
vote
2
answers
468
views
Set Prefered Template with parent:display()?
I have a site that uses 2 template styles for 2 different domain names running on the same Joomla installation. (Both have the same root template.)
I'm creating a custom component and a specific task ...
2
votes
1
answer
200
views
How can I create a custom attribute/property on a model?
In my custom component, I'm currently stuck with Joomla's way of handling model custom properties. Let's say I have a model Property. To know if this Property is sold, I have to run a query on ...
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) ...
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 ...
2
votes
1
answer
1k
views
Redirect after login by component
I have a component, which requires login. I added a text about this to the components main page. Is there a way to redirect the users to the component after they logged in? Currently all they see is ...
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 ...