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,715
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
13 votes
3 answers
4k 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 ...
Spunkie's user avatar
  • 897
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
12 votes
7 answers
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 ...
pathfinder's user avatar
12 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
  • 429
12 votes
2 answers
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 ...
uozuAho's user avatar
  • 223
11 votes
9 answers
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 ...
web-tiki's user avatar
  • 1,373
11 votes
2 answers
164 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). ...
Al Knight's user avatar
  • 411
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
10 votes
2 answers
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 ...
dev-m's user avatar
  • 1,351
10 votes
3 answers
2k 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 ...
doovers's user avatar
  • 509
10 votes
1 answer
433 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
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
8 votes
3 answers
16k 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?...
weezle's user avatar
  • 91
7 votes
3 answers
15k 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 ...
Danial's user avatar
  • 71
7 votes
3 answers
936 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
7 votes
1 answer
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 ...
Liz.'s user avatar
  • 1,385
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
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
346 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 ...
dev-m's user avatar
  • 1,351
7 votes
2 answers
225 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 ...
AndyGaskell's user avatar
7 votes
1 answer
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 ...
Jonnypixel'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
1 answer
257 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 ...
Nestor Ledon's user avatar
7 votes
1 answer
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....
doovers's user avatar
  • 509
7 votes
1 answer
2k 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,...
Jordan Ramstad'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
1 answer
982 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.
Stefan Sprenger's user avatar
6 votes
4 answers
14k 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,078
6 votes
2 answers
472 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 ...
csbenjamin's user avatar
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,603
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
6 votes
4 answers
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 ...
Piero Marsilio's user avatar
6 votes
2 answers
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 ...
user avatar
6 votes
2 answers
987 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
3 answers
719 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
2 answers
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 ...
nimble's user avatar
  • 418
6 votes
1 answer
4k 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 ...
Rex's user avatar
  • 61
6 votes
4 answers
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 ...
user101289's user avatar
  • 1,119
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
1 answer
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 = ...
saber's user avatar
  • 213
6 votes
1 answer
360 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"> &...
cha's user avatar
  • 387
6 votes
2 answers
150 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 ...
Arter Cadelanne's user avatar
6 votes
1 answer
66 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?
codinghands's user avatar
  • 2,295
6 votes
1 answer
85 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="...
Hobbes's user avatar
  • 300
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

1
2 3 4 5
11