Questions tagged [custom-component]
For questions related to custom component development
282
questions
2
votes
1
answer
653
views
Can I add class attribute in JHTMLGrid?
I am trying to add class attribute in the checkboxes.
https://docs.joomla.org/API15:JHTMLGrid/id
I read the documentation but no luck today :(
Please check the image (Thats just an example)
So ...
0
votes
1
answer
83
views
Components Use form.xml without the use of any legacy classes?
How do I without using any legacy structure or classes, use the Joomla feature wich allows you to define forms in an XML file in the folder:
JCOMPONENT_PATH/models/forms
And then import and use ...
0
votes
1
answer
99
views
Creating a category from inside any 3rd party model
Hi I need some help creating a category from inside an upgrade method for a custom component.
This is what I have tried to do, any help will be great!
// start up the DB
$db = JFactory::getDBO();
$...
2
votes
2
answers
1k
views
Component language file is coppied but does not work
I am just trying to create backend component and I can't get the language file to work.
This is my xml manifest (the important part):
<media destination="com_displaygroups" folder="media">
&...
1
vote
4
answers
602
views
Joomla 3.x custom backend component - how to use link table in new and edit view?
I'm extending Joomla 3.x with a custom component.
At this point, my model has
workers: Peter (id: 1), Paul (id: 2), Mary (id: 3)
roles: manager(id: 1), teacher (id: 2), advisor (id: 3)
links: link ...
2
votes
2
answers
691
views
Check a form field for duplicates before saving
I have a custom component where the user can add some data. Here are the two relevant fields:
<field
name="title"
type="text"
label="Title"
description="Please enter a title"
...
5
votes
3
answers
770
views
Custom component: Export items to CSV -> Changing searchbar causes a new download
I would like to export all selected items from the items-view of my component.
To do so I modified my view and inserted a new button to the
JToolBarHelper::custom('items.exportcsv', 'download', '', ...
0
votes
1
answer
2k
views
Joomla: Filter items (show items between 2 dates)
I would like to improve my filter in my custom joomla-component. I would like to create a filter that shows all items which have been created between 2 dates (MySQL-Table: creationdate).
At the ...
1
vote
0
answers
46
views
$mymodel->publish($id, $state) returns "false" when calling it via CLI - on Web it returns true
I got a little problem: I would like to publish an item with some "different" states (1,0,2,-2,-1).
I'm doing this this way:
if(empty($this->getErrors()))
{
$tableitem->store();
$...
2
votes
2
answers
762
views
Call Controller's Publish-Method from CLI or Helper
I would like to call the publishing-method I defined in my item's controller from a CLI-script or a helper (which is included in the CLI).
The best case would be to call it like this:
$...
4
votes
1
answer
94
views
Extension manifest to set version as 3.4 or greater
As per the link here the version can be either 2.5 or 3.0. But my requirement is to have the version anything greater that 3.4 in 3.x series.
How this can be done? Should I go via scrip file? Or is ...
0
votes
1
answer
31
views
Is there the possibility to have more than one .ini file per language
I'm building a component that will be kind of big, and I'd like to separate my internationalization keys into more than one file per language in order to organize them better. Is that possible in ...
2
votes
1
answer
33
views
Create Dialog on publishing methods
I would like to create a little dialog on publishing-events on an item of my self-developed component.
For example: Item gets published - the item's controller is called and rund method publish with $...
4
votes
1
answer
118
views
How does a custom component trigger the SmartSearch indexing?
After many months, I've had to come back to a component that was well under way, which I thought was automatically indexing the data I was saving as it was saved. As I'm re-familiarizing myself with ...
2
votes
1
answer
88
views
Going from custom component item view to edit user view problem
I've created a custom component that collects user inputted data, and redisplays it in the back end, similar to a contact form. I'm currently trying to set it up so that in both the list and item ...
2
votes
1
answer
86
views
Log - add to every file?
I would like to use JLog on different files in my component.
At the moment I'm adding this to my __contruct method:
JLog::addLogger( array( 'text_file' => 'com_bestia.log.php' ) );
But is it ...
1
vote
1
answer
2k
views
Joomla update server with custom download url
Is it possible to have a custom download url in the Joomla update server.
The help page says
<downloadurl type="full" format="zip">http://website.com/component.zip</downloadurl>
But I ...
3
votes
1
answer
286
views
Can I access/use Joomla's Smart Search results in my custom component?
Is it possible to call the Smart Search "engine" from a custom component, hopefully with AJAX?
Our component has an exhaustive amount of content that needs to be searched from within the component ...
4
votes
2
answers
454
views
Standalone PHP calling Joomla APIs
I am writing a cronjob (cron.php) which will have to run under the Joomla root folder which call Joomla functions like JFactory::getDbo().
I have the following code in cron.php
define( '_JEXEC', 1 );...
1
vote
1
answer
28
views
How to make a Joomla module installation from a module already installed on another page
I'm working on a new website and I wanted to install a module that I have on another website that I'm administrating (I didn't make that website and the developer who made it, made that module himself)...
1
vote
1
answer
59
views
Best way of having common code for both admin and front-end
We are developing a component for joomla 3.x. In the component there are certain set of library functions (php files) which are want to used in both the admin side and front-end.
At the moment we ...
1
vote
1
answer
380
views
How to properly add a series of checkboxes to Search Options?
I've been tasked with extending the normal Search Options (created with Component Creator, if it matters) to be located on the left of the page, and include a long list of various checkboxes to filter ...
2
votes
2
answers
263
views
JViewLegacy::getForm method works fine in admin component, no method found in front-end
I am facing some strange issue. I have the similar setup for my component on both front-end and back-end component. Here is my view class signature.
MyComponentViewForm extends JViewLegacy
Now in my ...
1
vote
0
answers
153
views
How to add more notes/text to the access.xml section of a joomla component?
I have very many actions in my sections of the access.xml file of my component. So that means a long list of permissions. I want to categorize them with some more surrounding text. Here is how it ...
3
votes
3
answers
2k
views
JToolBar custom button error
I'm working on my own component and i'm trying to add a custom button to my admin view that calls a task.
In view.html.php
protected function addToolBar() {
JToolBarHelper::custom('...
2
votes
1
answer
84
views
Where to process data in MVC
This may be a very basic question but i am new to this and all the tutorials i watched don't work with processing data before displaying.
I am working on a Administration Component thet is supposed to ...
4
votes
1
answer
680
views
How can include the component view in plugins
I have custom component and plugins and listing some details in table after click on the table i'll go to details page. i want show the one of details in article, so i created a custom plugins and got ...
5
votes
1
answer
2k
views
How to set name for Administrator Menu Section of a Component?
According to Developing a MVC Component/Developing a Basic Component, proper place of setting Menu Section name is helloworld.xml file. Particularly
<administration>
<!-- Administration ...
2
votes
3
answers
4k
views
Joomla.submitbutton (...) stops working after 3.4.2 update
I just updated my local Xampp and a view remote sites from 3.4.1 to 3.4.2 and all (as far as I have tested) my custom components stopped being able to save, cancel form dialogs in the back end.
What ...
0
votes
1
answer
87
views
"Error restoring item version from history." while restoring version of content in custom component
I was trying to restore a version of content I am editing.
In the construct method of my administrator/components/com_joomprosubs/tables/subscription.php script, I added this following line:
...
5
votes
1
answer
423
views
Joomla custom session data is overwritten
I'm writing a custom component cart, and using a form post to save cart data in the Joomla session.
It works initially, but then if the user goes back to add another item, the original item is ...
3
votes
2
answers
700
views
How to query and display a list of nested tags for a particular parent on front end as links?
What is the best way of querying the db to generate a list of tags matching a particular parent and display on the front end as a link with tag title and id?
This is for a custom joomla mvc ...