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?
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 ...
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 ...
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 ...
12
votes
6answers
1k views

Joomla Component Tool or Scaffold?

I have created a couple of plugins for Joomla 3.2 and have recently started on a component to manage apartment rentals. I was wondering if there is a framework out there that had the basic file/folder ...
12
votes
3answers
3k views

Best method to check if a component is installed/enabled?

Between joomla 2.5 and 3.x what is the best way to check if another component is installed and/or enabled? There exist a helper class called JComponentHelper but I believe the isEnabled function will ...
12
votes
2answers
1k views

How to test a Joomla 2.5 component

I've asked this question on StackOverflow, and it was suggested that I ask it here. I'm familiar with unit/system/integration testing, and would like to be able to test my Joomla component. Is there ...
11
votes
9answers
6k views

How to create page only with modules and no component?

In joomla, I need to link every page to a component view. How can I create a page with no component output on it? Example : On my home page I only want a module output. For this, I can link the home ...
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 ...
11
votes
2answers
144 views

How do I add an article to #__content from my component?

My component needs to add articles from the front-end in a non-conventional way. I realize I can just insert them with MySQL, but I'd like to use the core functions to do so (if it's possible). ...
10
votes
2answers
4k views

Adding joomla's default toolbar in a component view page

I am developing a mvc component for both joomla 2.5 and 3.In many components i saw they added joomla's default command buttons like new, edit, publish, trash, options at top of their settings page in ...
10
votes
3answers
1k views

Prevent error message from showing SQL

In my table I have created an index on 'col1' to prevent duplicate entries which works well but the resulting error message displayed to a user when they attempt to add a duplicate entry seems to to ...
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 ...
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 ...
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 ...
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(...
8
votes
3answers
15k views

How to get menu parameters and itemid in component controller

In my custom component controller I have function save(). At the end it displays message and redirects to url $this->setMessage(JText::_('SOME_TEXT')); $this->setRedirect(JRoute::_('index.php?...
7
votes
3answers
14k views

How to get the intro image of a joomla article

I am trying to customize the the category list of my website. So I have a menu option that shows the list of all article is a certain category. In this list I would like to show the into image of the ...
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 ...
7
votes
1answer
8k views

Best way to include helper class in sub-controller : require_once or JLoader

I have created a helper file test.php as following: administrator/components/com_compname/helpers/test.php class TestHelper{ //class methods } In controllers/subcontrollername.php We can use ...
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 ...
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/...
7
votes
1answer
343 views

Understanding mvc way of component coding for both joomla 2.5 and 3 version

I made a component in joomla 2.5 in mvc way which was not working in joomla 3, later found out it's because in joomla 3 previous mvc classes not working so is controller, view, model classes must be ...
7
votes
2answers
171 views

Errors de-crypting libsodium encrypted values from database

I've been implementing some encryption at rest in one of our Joomla components, but keep getting a couple of errors when de-crypting the values when they're written and read from a database. So I ...
7
votes
1answer
3k views

How to create a repeatable xml form field feature?

I am building a custom component and all is good. I thought I would have a go at the new 3.2 repeatable xml form field feature. Although I have it working I don't quite know how to save the data. It ...
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
1answer
243 views

Joomla! CMS Component with Joomla! Framework?

I'm curious about building CMS components on top of the Joomla! Framework mainly because I would like my components to function as standalone applications. Is this doable without hacks? If not, is ...
7
votes
1answer
3k views

How should I use view.raw.php properly

I'm trying to add a custom JToolbar button to my list view that will export the list contents to excel. I created a new task in my list controller to render the raw view class in a file called view....
7
votes
1answer
1k views

JUri::base() issue, losing subdomain

There is a chance this is a bug, but I am pretty sure I must be overlooking something. Basically JUri::base() is removing the subdomain path, this is in siteground with its Joomla staging enviroments,...
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
1answer
951 views

JEvents change "Latest Event"-Module align

Is there a way to change the alignment of the latest events of JEvents to horizontal instead of vertical? Maybe in the div class="jeventslatest"? This should be vertical aligned.
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 ...
6
votes
2answers
431 views

Structure folder of sql files in my component

What folder should I put my sql files in my component for joomla execute them automatically? If in the first version I created a table and in later version I want to change, how should I organize that ...
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 ...
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 ...
6
votes
4answers
7k views

Date/time picker in component

In my custom component, I need to enter date and time. Joomla's standard calendar-element supports a date picker - but no time picker. Can anyone help me and point me to an alternative date and time ...
6
votes
2answers
6k views

What's the purpose of $this->get('Item') in Joomla view.html.php example file?

I refer to the code below, presented in Developing a MVC Component - Front End Function Example: class HelloWorldViewUpdHelloWorld extends JView { // Overwriting JView display method function ...
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 ...
6
votes
2answers
3k views

How to use a custom layout with JForm subform fields?

I want to reuse some forms in my component. The subform field does the job. However, I need to remove some fields and/or field groups when displaying the subform. I tried to use the JForm methods ...
6
votes
1answer
3k views

How to use com_api plugin for REST?

I have installed the com_api component and plugin from the official site for REST calls. I should authenticate user login with a web service at another domain using REST POST. How should I do it? I ...
6
votes
4answers
3k views

Proper folder structure for custom component

I'm trying to use the joomlatools joomla-console in a new project. However, I can't use the symlink functionality because of my directory structure. In the past I've always built components with a ...
6
votes
1answer
2k views

Redirect to previous page after login in custom component

I want redirect users after login Current link in joomla 2.5 custom component I use this code but after login i have error 500 $user =& JFactory::getUser(); $mainframe = ...
6
votes
1answer
342 views

Empty tag is replaced with unicode replacement character

I'm saving rich texts from my custom component. It uses wysiwyg editor. Therefore there are html codes also. <table> <tbody> <!-- More here --> <tr> <td colspan="5"> &...
6
votes
2answers
138 views

Joomla Component Development: Starting Point

So, basically, I've developed an application that gets the data from the database, processes it and then displays it on a webpage and now I need to integrate it with joomla. I've read about MVC ...
6
votes
1answer
63 views

Can components / non-plugins react to events?

Is it possible for components to react to events - i.e. in some way become an observer to plugin events?
6
votes
1answer
80 views

Components: What is the purpose of the option_on and option_off fields in models > forms > viewname.xml?

In a Joomla 3.x component, a parameter that's frequently listed in the MODELS > FORMS > VIEWNAME.XML file is option_on or option_off. For example; <field name="something_amazing" type="...
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?
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?...
5
votes
3answers
3k views

Restrict front-end component access

I'm developing a Joomla component and would like admins to have the option to restrict access to a particular view in the front-end. If a create a menu item for this view, then try and access it via ...

1
2 3 4 5
10