Questions tagged [joomla-component]

Joomla Components are the main Joomla extensions, which provide vital functionality for every Joomla website. They are usually displayed in the center of the page.

Joomla Components define the most vital parts of Joomla page functionality. While a Joomla site may exist without modules or plugins, it could never work without components.

Some components are hard-coded into Joomla, like com_content, which provides the basic Article functionality, or com_users which provides the interface into managing Joomla users. The com_installer is the component responsible to allow for new extension installations.

If you are inexperienced in developing Joomla extensions, you may start with modules or plugins, before getting into components.

For the more experienced, you can read how a component works, here.
To start creating your own component, you can go here.

182 questions
0
votes
1 answer

accessing data linked by foreign key in site view of custom component

In my custom component, in site view, I have a list of countries (view: countries). Clicking on a country, another view is displayed (view: persons) showing all persons living in that country. Now, in persons view, I want to display the country's…
michi
  • 6,565
  • 4
  • 33
  • 56
0
votes
1 answer

Joomla 2.5 custom component: create path on install

My custom component needs a certain path, say /images/example/photos. How can I create it on installation, but only if it doesn't exist yet?
michi
  • 6,565
  • 4
  • 33
  • 56
0
votes
1 answer

Joomla 2.5 component: How to set directory for media field in admin form?

I created a custom component, in the admin-form, I have a field to select a photo. In administrator/models/forms/example.xml I can define that field:
michi
  • 6,565
  • 4
  • 33
  • 56
0
votes
1 answer

joomla JViewHTML constructor and "Layout Path Not Found"

please read last line of question. JviewHtml constructor contains following statement $this->paths = isset($paths) ? $paths : $this->loadPaths(); i am setting the default path of myview using $path variable and passing it to constructor. $paths =…
arslan
  • 565
  • 1
  • 7
  • 25
0
votes
1 answer

Can't implement jroute functionality properly in joomla mvc component

I've made joomla 2.5 (works in joomla 3 too) component. To test component I've created a menu item "mycomtest-main" and placed component in that menu item page. So full local testing url is "localhost/joomla/mycomtest-main". Component lists many…
developer
  • 78
  • 1
  • 13
0
votes
2 answers

Echo a Joomla component variable in a module position

I have a custom Joomla portfolio component that outputs the following code (below). What i want to be able to do is to echo the name variable in a module on the same page but my current attempts have not worked. Is this possible and if so where am I…
user2317093
  • 746
  • 4
  • 8
  • 25
0
votes
1 answer

Joomla component building Views contradiction

Link1: http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_backend_actions#Adding_an_editing_view Link2 :http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_a_view_to_the_site_part#Setting_the_view In the above two links Link1…
arslan
  • 565
  • 1
  • 7
  • 25
0
votes
1 answer

Using one menu in multiple views of a component in Joomla 2.5

I wrote a component in Joomla 2.5 and I use this JSubMenuHelper::addEntry('Alpha', 'index.php?option=com_teams&task=showA'); JSubMenuHelper::addEntry('Beta', 'index.php?option=com_teams&task=showB',true); JSubMenuHelper::addEntry('Gamma',…
jost21
  • 1,084
  • 3
  • 15
  • 29
0
votes
2 answers

Accepting form input in Joomla front end to separate system

I'm creating an MVC Component for Joomla 2.5 as a front end to another PHP database system I've built. Instead of just wrapping the other system's web interface in the wrapper component I'm building a native Joomla component that talks calls methods…
David Findlay
  • 1,296
  • 1
  • 14
  • 30
0
votes
1 answer

Joomla 2.5 MVC Model prepareTable function

while developing a MVC Component, I'm faced with the following problem: Before saving the posted data from the default.php, some data should be revised, if necessary. From what I know so far, the protected Function prepareTable(&$table) in the…
0
votes
0 answers

Joomla 2.5 -Adding sortable columns to a table in a component

I'm coding my own joomla component based on Joomla 2.5.13 and I'm struggling with the "Adding sortable columns" tutorial. Extending the MVC-model with the provided code-snippets from this tutorial does not lead to the expected result, the columns…
0
votes
1 answer

How to display web service results as a front-end component view using Joomla 3 MVC Standards

I need to take the results of a web service and display them in a front-end component view. I am returning the results and they are in JSON format but am not sure how the component should be built. I don't need a debate on the best way, just some…
mackdoyle
  • 5
  • 1
  • 3
0
votes
0 answers

Joomla create menu item from component

Here is my current component setup. I have a very dynamic page generation component that syncs with data from a external API to create pages for products without extra data entry. Right now it works at a simple button click to populate all and…
Jordan Ramstad
  • 169
  • 3
  • 8
  • 37
0
votes
1 answer

storing array injoomla 2.5 component development

I am developing a Joomla 2.5 component. So I'm using Hello world example component for reference... In the edit view of the admin back end form->getFieldset('details') as $field): ?>
label; echo…
Praveen Kumar
  • 206
  • 4
  • 14
0
votes
1 answer

Joomla component - how to convert standard php form into joomla component

Currently i have been using an iframe component to display a php page that i have written. the reason i used iframe rather than writing a joomla component in the first place was for 2 reasons, the information that is displayed in that page is from a…
Mike
  • 511
  • 3
  • 10
  • 28