As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [component]

Components are the main functional units of Joomla!; they can be seen as mini-applications. An easy analogy would be that Joomla! is the operating system and the components are desktop applications.

Filter by
Sorted by
Tagged with
40 votes
6 answers
34k views

What is the proper way to make an AJAX call in component?

I am developing a custom component for Joomla! 3.x and want to make an AJAX call inside it to retrieve some data. What is the proper way to do it?
Dmitrijs Rekuns's user avatar
24 votes
1 answer
8k views

How to save Custom Fields in Core components

I'm trying to add a single, simple field to each #__content item, and I've very carefully followed the tutorial at Adding Custom Fields to Core Components, substituting "content" for "contact". I now ...
GDP's user avatar
  • 7,705
23 votes
4 answers
14k views

Joomla 3.x extension development tutorial for a beginner developer

I worked extensively in Joomla 1.0.15 version and developed multiple extensions. Also, I continued my developed in Joomla 1.5.x But, my developed discontinued after this release. Now, I want to start ...
ursitesion's user avatar
6 votes
3 answers
3k views

Programmatically Add Menu Item in Component

I am trying to create a component where the user can add a menu item to an existing Menu after creating the article (or selecting from a list of article). The closest I could come across to an example ...
sifu's user avatar
  • 1,105
3 votes
3 answers
2k views

Overriding Core Components Model Form XML

I want to change the Field type for the Article's Links, from input text to DropDown List with internal menu items. I am looking for a convenient way to do this with the minimum work. I can't find ...
FFrewin's user avatar
  • 19.6k
13 votes
1 answer
4k views

Adding drag-n-drop ordering in component

I've developed a small component based on the Joomla Hello World tutorial, and now I would like to implement the same drag-n-drop reordering that many other Joomla components include: By sorting by ...
Bogowoe's user avatar
  • 1,178
5 votes
1 answer
2k views

How can I completely and safely remove the subject field in com_contact?

I work mainly in overrides as much as possible, so am using /templates/.../html/com_contact/contact/default_form.php I know I can just remove the code that shows the subject line: <div class="...
user avatar
5 votes
1 answer
4k views

Click on custom button opens modal window

I've got some custom buttons in my Joomla component and I want them to open in a modal window like with the batch button in the com_content component. Anyone has got any idea on how to do it? Thank ...
republicca's user avatar
3 votes
2 answers
798 views

Displaying more articles in the article view

I'm using joomla 3.3.6 and I designed content page as I want, but I need one more thing. Is there a plugin or a component to display all/other articles as a list, so the user can move to them. The ...
Ya Basha's user avatar
  • 231
1 vote
2 answers
2k views

Filtering com_content in the backend by url in Joomla 3.3.1

I am trying to filter the article manager in the backend via the url like: index.php?option=com_content&filter_category_id=18 but it doesn't seem to work. Instead it gives me a warning: ...
FFrewin's user avatar
  • 19.6k
11 votes
2 answers
5k views

Add a custom button to a core backend component

Is it possible to add a custom button (with a custom action, of course) to the JToolbar of a standard Joomla 3 component (com_contents) without modifying the original source code? Background: I need ...
mHouses's user avatar
  • 419
10 votes
1 answer
426 views

Adding Tags Functionality To Existing Component

I'm looking to get tags working inside of an extension. I saw this and have gotten the field to appear in the edit view, but of course it doesn't save anywhere. Looking at com_content article tag ...
Milton Bryant's user avatar
10 votes
2 answers
6k views

How can I use a model of other component in my component?

I'm building a component and It needs access the #__content table. The component com_content does everything that my component needs to do in that table. How can I import the com_content models into ...
csbenjamin's user avatar
9 votes
4 answers
10k views

Custom Component - Need to verify if user is logged in

I'm developing new MVC custom Joomla component (com_helpdesk) and need to verify if user is logged in to site. If not then it should redirect to the login page with "return" parameter. Could someone ...
Sahil Purav's user avatar
  • 1,292
8 votes
1 answer
13k views

How to create a view with filters and pagination

I want to create a view with filters and pagination for Joomla 3.x, but I'm not sure about what I have to include and where. For now, my model extends JModelList and I started using the getListQuery(...
mattosmat's user avatar
  • 317
7 votes
2 answers
3k views

What is the recommended way to structure a Joomla 3 custom component view using angularJS?

There is very little information out there from users who have successfully integrated angular js in a joomla custom component list view. I found the following: https://stackoverflow.com/questions/...
user2097091's user avatar
7 votes
1 answer
3k views

Pagination confusion - Pagination uses start, PopulateState uses limitstart?

I'm a bit confused. When I look at the link created by pagination in the front end, I see a query parameter called start included in the individual page number links and Start and End links. ...
Nick Weavers's user avatar
7 votes
2 answers
4k views

Get full link from menu item field type

I am developing my own slideshow component and module for Joomla. The component is used to select the slides along with captions and links etc. The module shows the slides. In the component, for each ...
DesignSubway's user avatar
7 votes
2 answers
4k views

How to call a model method from a system plugin?

I have a component ('com_foo') which has a model called 'foobar'. The class declaration is like this: class FooModelbar extends JModelItem This class has a public method called getFooBar(). I also ...
sifu's user avatar
  • 1,105
7 votes
3 answers
927 views

Standard CSS classes / id naming conventions

When building a custom component, and while designing the layout file to render the view, I'm having difficulty determining what CSS classes / id's to use in my HTML elements to ensure it takes ...
user3804927's user avatar
6 votes
3 answers
705 views

Website speed is awful

I work as an apprentice web developer who has been left in charge of the web team (all of my colleagues have left) and have been left with an impossible task. We have a 10-core Windows server, with ...
LukeBurke_PremierEPOS's user avatar
6 votes
1 answer
2k views

Get all installed Joomla extensions and their version

I'm not really familiar with Joomla, but I need to write a script that is supposed to list all the installed extensions and their version number, if possible. I've already done this for WordPress, ...
R.G.'s user avatar
  • 163
6 votes
4 answers
13k views

How can I set the page title from a component

I have built a 3.x component using Component-Creator.com and I want to be able to set the page title to the item heading (taken from the component itself). I have tried the following code but it's not ...
RustyJoomla's user avatar
  • 2,066
6 votes
2 answers
955 views

Override a component view for a specific menu item

How can I override the component view for a specific menu item? For a global overwrite I can use template/html/com_xxx/. But how can I do it only for a specific menu item? Example : Joomla! has a ...
Fedik's user avatar
  • 644
6 votes
2 answers
1k views

Site Vulnerability Check

With the recent security announcement regarding SQL injection, I was wondering what I could do in order to 'review' my current Joomla sites, and ensure none of them have been compromised. Apart from ...
jonboy's user avatar
  • 3,543
5 votes
2 answers
7k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
johanpw's user avatar
  • 13.3k
5 votes
3 answers
5k views

How to set get('Items') limit?

By default, populateState seems to limit a call to any model's get('Items') function to 20 items. How can this be overridden - by re-writing populateState? By writing a separate function in the model?...
codinghands's user avatar
  • 2,295
4 votes
3 answers
396 views

When will the JxxxLegacy classes be deprecated?

Is there any estimated time frame for the validity of JModelLegacy, JControllerLegacy and JViewLegacy? When will the switch to native 3.x ones occur?
ilias's user avatar
  • 725
4 votes
3 answers
604 views

How to modify article structure?

Sometimes, we need to customize the structure of Joomla! articles with custom fields in order to propose to users different textarea / input where he can enter datas such as date, location, text 1, ...
Sébastien Gicquel's user avatar
4 votes
2 answers
3k views

Custom component no-cache setting

I have a custom component I've built, and it has a search filter toolbar to filter results. The problem is that when Joomla caching is turned on, the filters get cached along with the page data-- so ...
user101289's user avatar
  • 1,109
3 votes
1 answer
95 views

Techjoomla's API Module

I am trying to write a plugin to use Techjoomla's api component on my Joomla 3 site. Their documentation gives sample code which I am altering to fit my needs. I am trying to make a very basic API ...
Huw Evans's user avatar
  • 351
3 votes
1 answer
117 views

How to install a new component version automatically during development

I develop my first full component, following my tutorial. When I reached a point for check I do some steps: create the zip file open the backend tab in my browser click on "browse installation file" ...
lars k.'s user avatar
  • 368
3 votes
1 answer
142 views

Can the Access List of a Front-End menu item be limited to certain User Groups?

Can a component view be configured to show a only a subset of available User Groups when adding it to a menu? My component has a front-end view that must never be allowed to be viewed by anyone ...
GDP's user avatar
  • 7,705
3 votes
1 answer
495 views

Overriding a plugin's non-templated layout files?

I've been trying to figure out how to do this, but nothing seems to really work: I want to override the results/pagination renderers from ZOOFilter which I know is in /plugins/system/zoofilter/...
Mark's user avatar
  • 199
3 votes
3 answers
1k views

How to execute an ajax script to update form fields in an .xml file rendered by Akeeba FOF?

I would like to populate the "Owner" select option list by SELECTing the owner column from the #__gscrm_accounts table WHERE the gscrm_account_id (primary key) is the selected "Person or Business" ...
mickmackusa's user avatar
  • 4,761
3 votes
1 answer
3k views

How to get the form of component from module?

I tried to get a component form from my module. I got the model and then tried to get the form, but the result was empty. I tried to define 'JPATH_COMPONENT' and it was useless. define('...
aspirisen's user avatar
  • 183
3 votes
2 answers
2k views

Image-List (Collection of Images) with link to article

i want to create a page on which i want to list images. When you click on an image i want to open the full article with detailed information. how can i achieve this in a simple way? which menuitem or ...
oodoloo's user avatar
  • 75
3 votes
1 answer
1k views

Store multiple form fields as JSON string

I'm trying to store multiple field values in a JSON string in my component but I'm not quite sure how to go about it. I've done some research and it seems that using the load and bind JTable methods ...
doovers's user avatar
  • 499
2 votes
1 answer
277 views

when calling "JRequest::get('FilterForm')" result is empty

When calling the method $this->filterForm = JRequest::getVar('FilterForm');, I get an empty result. But checking the com_banners component on the same system shows a result. What can I do to get ...
DreiBaer's user avatar
2 votes
1 answer
68 views

MVC what stage sets a task if none provided

I am trying to understand Joomla's MVC logic. please help me figure out the processing of the task Unedited code from a Joomla package has the front end article edit form with the task field, but its ...
IberoMedia's user avatar
2 votes
1 answer
402 views

Component in module. addModelPath doesn't seem to work

I am trying to display a component in a module which seems to work using this example http://www.escope.cz/en/blog/94-how-to-load-component-in-a-module I am now facing a problem where my model isn't ...
AdRock's user avatar
  • 133
2 votes
2 answers
385 views

How about storing single records and their categories in one table

I'm developing my own component for Joomla. I know that in many components single records and their categories are stored in different tables of the database. But how about storing them in ONE table ...
stckvrw's user avatar
  • 891
2 votes
1 answer
480 views

Separate Password Changing Form for the Joomla Front-end users?

I want to know is it possible to remove the password changing fields from the Core Joomla profile editor? I want to make a separate page for Password Changing stuff for the front-end users?
saibbyweb's user avatar
  • 2,279
2 votes
1 answer
1k views

Adding an itemid on the Tag component page

I just migrated my bilingual website to joomla 3.3.1 and I am discovering the tag feature, which is awesome! When I click on a tag displayed near the title of an article I am redirected to a page ...
MagTun's user avatar
  • 986
2 votes
1 answer
4k views

Token check not working in custom component admin

I've built a custom component and have three forms that executes different tasks in the default.php view on subcontrollers within the administrator. Within my tmpl view default.php, each form has a &...
RNickMcCandless's user avatar
2 votes
1 answer
478 views

From the model, how I can access the data retrieved in the view?

I'm trying to add some external information to a component, and it retrieves the data in view.html.php. Once it is retrieved, how can I use it the model? I've tried as many of the usual variables ...
Al Knight's user avatar
  • 391
1 vote
2 answers
655 views

How to set noindex on components

Anyone who can tell me how I can disable the component users to provide search engines the noindex, means: <meta name=robots content="noindex" /> for example in all Joomla instances, the URL /...
laendle's user avatar
  • 181
1 vote
1 answer
90 views

Is it possible to remove the "new article" button from all sections in a Joomla website?

A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an ...
Vincenzo Oliva's user avatar
1 vote
1 answer
56 views

What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?

Related: Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them? The answer to that question is "In Joomla 4 it is, but authors ...
Vincenzo Oliva's user avatar
1 vote
3 answers
2k views

how to show article preview in admin panel?

I created a new article. I want to this article preview show only for admin not other user.How to do this? I used plugin "add menu" for this but that plugin not show my problem.
user8228's user avatar