Questions tagged [custom-component]
For questions related to custom component development
282
questions
2
votes
1
answer
178
views
Your list XML update URL failed, please check the XML file's structure
To whom it may concern:
I uploaded a new extension in JED using submit extension button.
the message I got after saving is : Your list XML update URL failed, please check the XML file's structure
the ...
1
vote
1
answer
609
views
Need some help by custom component routing and menupoints
I am trying to write a custom component router. I have these admin and site uri structures: http://localhost/administrator/index.php?option=com_{component_name}&... and http://localhost/index.php/{...
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 ...
2
votes
1
answer
395
views
Custom Login Component - Redirecting depends from entered data
I'm administratior of several sites and have exp. with Joomla over 4 years, mostly worked with creating websites with this great builder using different modules, but haven't a lot exp. with PHP. ...
2
votes
1
answer
641
views
Bulk insert records in database from excel
I am developing a component from which user can upload excel sheet and the data must be saved into database. When excel sheet rows are 250 then insertion works fine but when the rows are 2500 or more ...
1
vote
1
answer
205
views
Drag and Drop at the frontend does not save new order
In my Joomla3.6 component, I am trying to implement drag and drop ordering at the frontend. I followed Adding drag-n-drop ordering in component and I can move the list-items, but it never saves the ...
1
vote
2
answers
2k
views
Loading custom classes in a component automatically
I am writing my first Joomla component. I found there are 3 so called entry points.
installer
site entry
admin entry
I'd like to use some common utility classes by all of these entry points. These ...
1
vote
1
answer
173
views
Update component, where to retrieve the old version number from?
I found by Joomla 3.x, that I can use an install script something like this:
class Com_ExampleInstallerScript
{
public function install($adapter)
{
// create tables
}
public ...
1
vote
1
answer
64
views
What is the fastest way to integrate with Joomla?
I promised to dev a small caritate project for the local government. It consists of a few pages, db tables, queries. I don't need tutorials about how a database works, what is MVC and other design ...
2
votes
1
answer
551
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
0
answers
726
views
404 component not found backend
I developed a component extension, I Installed it on my Joomla in a regular server. I also received the success message after Installation.
It's table is added, all files under administrator and ...
0
votes
2
answers
155
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
2
answers
2k
views
How to add custom search tools for custom component
I have created Custom component from component-creator website now I want to add Search tools to this component, Search component like Article search provides.
can anyone guide me from where I can add ...
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 ...
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#...
0
votes
1
answer
68
views
Spanish language of my custom component is not working
I have created English and Spanish language file for my Joomla component but when I trying to change Joomla default language then my Spanish language file not working or not overwrite . Please give me ...
1
vote
1
answer
958
views
Custom component joomla.searchtools.default won't display filter
I'm developing a custom component that displays data from an external API, and in trying to add filtering options to the request, only the limit field will display. The additional fields I'm using are ...
2
votes
1
answer
94
views
Joomla session not passed to custom component
So I'm having trouble with a Joomla (version 3.6.4) project that I need to solve for my work.
The problem is that whenever I log in on my homepage, I get logged out when going to my custom component ...
1
vote
1
answer
469
views
How to add column if not exists when installing a component?
I would like to know when installing a component over an existing one, if it's possible to add a new column if it doesn't exist.
For e.g. inside install.mysql.utf8.sql, I shall have something like:
...
0
votes
1
answer
926
views
How do I save Repeatable data in my component model?
I've used Repeatable fields in component Options in the past, and am now trying to use that field type in a Form within my component, but the values are not being saved.
Using Firebug, I can see that ...
2
votes
0
answers
62
views
Clear component toolbar task
I've added a custom toolbar button to export the items from a custom component as a CSV.
The CSV is getting exported correctly but my custom task is then being triggered when navigating the ...
1
vote
0
answers
571
views
Using CodeMirror editor in custom component
I am trying to use CodeMirror as the editor for a field inside a component I am developing. I have specified the editor as codemirror in the form.xml file but I get a javascript error on the page:
...
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 ...
1
vote
1
answer
65
views
Weird chars in the beginning of SEF url
I'm developing router to my custom component. Almost everything is working ok. But with one url I have problem.
It seems to be build properly by build method:
dodaj-zdjecia/addphotos.html
But after ...
1
vote
1
answer
647
views
Override View path in the Controller is only partially working
In my main controller, I'm successfully incorporating a custom path for the Model, but seem to be missing something for the custom path to the View.
The component path is:
\components
\...
1
vote
1
answer
1k
views
JDeveloper component sort and ordering does not work (bug and fix)
For those using the (in my opinion excellent) JDeveloper component
on Joomla 3.6 to create custom components, I've noticed that there is an issue on the admin table layout whereby you can not sort ...
0
votes
1
answer
325
views
Can a model display itself within the view of a different model?
This isn't a question about getting model data into another view. I can create a huge form with data from multiple models. But, is that necessary? Can a model display its view within the context of ...
1
vote
0
answers
91
views
How to implement nested submenus in the administrative sidebar?
I'm using JHtmlSidebar::addEntry() to build a menu in the sidebar. However, I need a better way to organize the menu items in there. I don't see a way to easily create a nested menu structure. I'm ...
0
votes
1
answer
509
views
How to implement a phone number field mask in custom component?
How can I implement an input field mask for JForms in my component? Specifically I want a phone number mask something like ()-____. I only want users to enter digits and not have them enter ...
0
votes
2
answers
171
views
What is the proper comments @package and @subpackage convention for custom extensions?
I develop a custom triade component-module-plugin and I wonder how I have to properly enter comments.
What does @package and @subpackage mean? Is this somehow tied to how I pack my extensions for ...
2
votes
1
answer
340
views
Trash button not working
The Trash button isn't working properly in a custom component in Joomla 3.x. It's behaving a bit weirdly. What happened when I tried to select a particular file or file list and then click the Trash ...
0
votes
1
answer
441
views
How to get sidebar in joomla admin [duplicate]
I am new to joomla.
I am trying to develop component.
How can I have sidebar in Joomla admin component.
Please help me solve this.
-1
votes
1
answer
78
views
Joomla insert article in helloworld component [closed]
I would like to insert an article inside my component, does someone have an example on how to do that?
I created Helloworld component , I need to show items of articles in site component , How to ...
2
votes
1
answer
461
views
Purpose of metadata.xml
Can somebody explain what is the purpose of metadata.xml in components files? For example /components/com_content/metadata.xml
As it almost has no content and I've never seen this in use.
0
votes
2
answers
89
views
Upgrading a Joomla! 2.5 component to Joomla! 3 - JToolbar in Administrator doesn't work
I am attempting to upgrade an old (custom) component for Joomla! 2.5 to 3.0, and I've been having issues with a few things, mainly JToolbar.
When I click on any button, I get this in my error console:...
2
votes
1
answer
184
views
Save multiple fields in DB
Please help advice. How to save multiple Fields in the database. I have a form with X number of fields. Fields added using JQuery
<input type="text" value="" name="jform[phone]">
<input type=...
2
votes
2
answers
939
views
How to generate random token?
I am trying to generate a token using JCryptCipherCrypto and I wanted to generate a string which will contain a-z, A-Z, 0-9 and length must be of 16 characters.
I have done this:
$crypto = new ...
0
votes
1
answer
101
views
define custom permissions in J3.5.x
I work on an extension that defines a number of custom permissions. We've done this through elements in the access.xml file, and up until J3.5.x it was working fine.
Now we're finding that the ...
1
vote
1
answer
75
views
What is the proper way to handle models that use other models in MVC?
I'm developing my first component and I'm not sure how to best handle models that use other models from a design and implementation standpoint. For instance, I have a contact model (person or business)...
1
vote
0
answers
18
views
Need some suggestion regarding strategy of scraping article view times from another webpage to use in K2 item
I am building a video blog page using Joomla 3.0 + k2 hosted on my own Ubuntu 14.04 server, the videos will be uploaded to sites like youtube or vimeo too. I want to show the viewed times of the ...
2
votes
3
answers
412
views
Filter does not work after clicking grid.published-button
I created a filter for the backend of my component like this:
<field name = "category_id"
type = "category"
label = "JOPTION_FILTER_CATEGORY"
...
1
vote
1
answer
845
views
Use JTable to save frontend-data
I would like to save user-inputs (Form with multiple text-fields) from the frontend of my component using (admin-) JTable.
In this case I would like to save a new comment to the database.
I guess I ...
1
vote
1
answer
845
views
Show Form Field if AJAX-response is false
I would like to extend my component with some interaction. For this purpose I try to show fields in a form only if necessary. This works fine with showon-declarations in my form.xml.
Now I would like ...
2
votes
1
answer
711
views
Importing Joomla CMS to custom PHP script (outside root folder)
I am trying to import Joomla CMS to a custom PHP script by this :
define( '_JEXEC', 1 );
define( 'JPATH_BASE', realpath(dirname(__FILE__).'/' ));
require_once ( JPATH_BASE .'/includes/defines.php' );...
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 ...
0
votes
2
answers
103
views
After upgrade to 3.5: return $row->id (last saved item) does not work
I would like to get the ID of an item that I recently saved using store-method.
On Joomla 3.4.48 I was able to use this source:
$data['userid'] = $userid;
$data['title'] = $title;
$...
1
vote
1
answer
425
views
Search in custom component
How can I improve the Search component in joomla 2.5 to set search by my custom component?
Can't find, where I can modify the search request to database.
UPDATE:
With help of Rene Korss I solve the ...
1
vote
1
answer
992
views
JHtml::_('jquery.framework') No Conflict Mode
I'm writing an add-in, and I need to use JQuery.
Are there any ramifications to using JHtml::('jquery.framework') in No Conflict mode so that JQuery is accessed via the jQuery namespace (rather than $...
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 ...
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 ...