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
6answers
33k 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?
21
votes
4answers
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 ...
24
votes
1answer
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 ...
6
votes
3answers
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 ...
3
votes
3answers
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 ...
13
votes
1answer
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 ...
1
vote
2answers
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: ...
5
votes
1answer
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="...
5
votes
1answer
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 ...
3
votes
2answers
757 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 ...
8
votes
1answer
12k 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(...
5
votes
2answers
6k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
8
votes
4answers
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 ...
7
votes
2answers
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/...
4
votes
3answers
602 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, ...
10
votes
1answer
411 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 ...
6
votes
2answers
957 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 ...
2
votes
1answer
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 &...
1
vote
2answers
456 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 /...
11
votes
2answers
4k 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 ...
7
votes
2answers
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 ...
7
votes
2answers
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 ...
6
votes
4answers
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 ...
4
votes
2answers
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 ...
3
votes
3answers
797 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" ...
3
votes
1answer
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('...
3
votes
1answer
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 ...
2
votes
1answer
62 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 ...
9
votes
2answers
5k 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 ...
7
votes
1answer
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. ...
7
votes
3answers
909 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 ...
6
votes
2answers
905 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 ...
6
votes
3answers
637 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 ...
5
votes
1answer
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, ...
5
votes
3answers
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?...
4
votes
3answers
388 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?
3
votes
2answers
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 ...
3
votes
1answer
478 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/...
3
votes
1answer
107 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" ...
3
votes
1answer
138 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 ...
3
votes
1answer
71 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 ...
2
votes
1answer
456 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?
2
votes
1answer
978 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 ...
2
votes
1answer
476 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 ...
2
votes
1answer
369 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 ...
2
votes
2answers
371 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 ...
2
votes
1answer
238 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 ...
1
vote
3answers
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.
1
vote
1answer
187 views

Testing Joomla extensions

After recently having started developing a Joomla component, the question of how to systematically test it for bugs has entered my head. I already have some experience in using testing frameworks for ...
0
votes
1answer
89 views

How to trouble-shoot alert error message with no information

I am receiving the following error on a site component list view "Error An error has occurred." That's it. Nothing said of what caused it, where the error occurred or anything else. By searching ...