Questions tagged [custom-component]

For questions related to custom component development

Filter by
Sorted by
Tagged with
1
vote
1answer
64 views

Joomla 3.9.19 get the constants from global configuration in component display function

I have created a component and need to get a constant value in the component administrator and list the item according to it. I have tried different ways to get the constant value in the display() ...
1
vote
1answer
66 views

Sharing a MVC resources library between two components

Lets say my component is called dumbo. It contains all kind of MVC stuff and works well. Now i have a second component that is called jumbo. I need both components to share some models, controllers ...
0
votes
1answer
25 views

Component development, on installing an update, should/could J! ignore some database errors?

While developing a component the database can go through many changes. Updating the component then either goes through many schema update files, or causes problems. Re-applying a database change file (...
1
vote
1answer
25 views

Using form XML for custom filter and removing group definition

I'm creating a small component with a search module. I will dumb this example down so that the question will be clear. The component manages books. The book form XML looks like this and its structure ...
0
votes
1answer
32 views

Where do I define custom global variables in my Joomla project?

I'm using Joomla 3.9.18 and I've got a project including a component and a couple of modules. I've got a couple of variables that are the same throughout the whole project (like some prefixes and a ...
0
votes
1answer
33 views

How to install custom component sample data?

I have a custom component for Joomla. I understand how to install some data using the sql file of component. Now I want to add some data to the database tables in a separate package. I can't find any ...
3
votes
2answers
55 views

Front End Management of Joomla Users

Joomla 3.9.20 I know there's no default way of managing Joomla users on the front end (a huge drawback of Joomla imo). There appears to be some commercial extensions and components that do this, but ...
1
vote
1answer
27 views

Toolbar not displayed in my Joomla MVC component

view.html.php class gezcViewVliegtuigen extends JViewLegacy { protected $editID = 0; // if task is not specifiek in the url als parameter, display will be used function display($tpl = ...
0
votes
0answers
45 views

Possible to add template file to component on plugin installation?

I am making a plugin for a custom component. It's a basic editor extend plugin that allows users to select an item from custom component using a button in editor. It's simular to native editor extend ...
1
vote
0answers
27 views

Embed custom JS app in Joomla MVC

A before warning: I'm new to both Joomla, PHP and JS. So this might be obvious, but I'm lost. I'm looking to embed a program I made in react/node into Joomla. The program uses JSX to create the HTML ...
2
votes
1answer
55 views

Is it possible to create a component “addon”?

I've created a component for handling a multitude of things for my clients, but I frequently get feedback that certain sections aren't needed or that additional sections are desired. The first ...
1
vote
1answer
35 views

Error Updating Component - does not update

I'm not sure if it's a good title for my question, because my component actually updates - at least that's what Joomla tells me. So, the problem is that I developed a component and now I need to ...
1
vote
1answer
74 views

Pass PHP variables to CSS?

I want to pass some variables to my css, without using inline styles. During some research I found different sources pointing to the same solution. For example here on the Joomla forum. Basicly they ...
0
votes
1answer
43 views

JoomlaBrowser (Codeception Module) Acceptance Test Issue

When trying to write an Acceptance Test doing this: $I->createMenuItem('New Link', 'MyComp', 'MyComp list', 'Main Menu'); I get this: Step Create menu item "New Link","MyComp",...
0
votes
1answer
50 views

Display the component view or layout into a module

I've built my own component com_mycomp and in the component there is form in a layout and the path to this layout is: com_mycomp/site/layouts/subscription/form.php so I want to show this layout (form)...
0
votes
1answer
21 views

Layout for a custom component leads to a 404 Error

I need to create a new page for my custom component, however I don't want (and I don't need) to create a new view for that. I know that this can be achieved by creating layouts; the problem is that my ...
0
votes
1answer
15 views

SEF url and custom view

Was able to create a custom component and a custom view which I went ahead and attached a js library to. Now to achieve my desired functionality I need to create a custom url(SEF) in my route.php file,...
0
votes
1answer
71 views

Cannot extend my custom component's validation rules — does not validate

I'm following along with this tutorial https://docs.joomla.org/J3.x:Server-side_form_validation My form <form> <fieldset name="form_name" addrulepath="components/com_mycomponent/models/...
1
vote
1answer
111 views

How to display urls of a custom component on breadcrumbs?

I need to display links of a custom component on breadcrumbs. How can i get it done? Example my component (site part) has the following url: site.com/gallery/animals/ where animals is the URL of ...
0
votes
1answer
77 views

Friendly URL for a custom component

I'm trying to create a friendly URL for a custom component but i can't manage to find a solution. I have tried JRoute but it hasn't worked out for me (probably i'm not doing it right). Does anybody ...
0
votes
1answer
29 views

How can I show an alternate layout for my view in an MVC component?

I am trying to choose the layout for my view dynamically, which is what I imagined setLayout or loadTemplate on my JViewLegacy view would be able to do, but there seems to be some extra convention ...
1
vote
1answer
52 views

Error saving an edit in a custom component `table_users` was not locked with LOCK TABLES

I'm getting an error when trying to save edits in my custom component. I have another edit.php that works well. I identified that the problem lies in the table file, specifically in the function ...
0
votes
1answer
43 views

How to override “Select an option” header for SQL and list fields

In my custom component, inside the forms, I have several list fields. Some are normal list fields, others are sql fields. All of these show "Select an option" as a header. I can't find the way to ...
0
votes
0answers
34 views

JRoute not return specific menu item link

i have developing a custom component. i have a problem: i am in a menu that show view 1. when i use JRoute function for link to view2 that have specific menu item, it return current url and add ?view=...
1
vote
1answer
86 views

Custom field in menu item

I am trying to get a custom field type into the menu. I want this to be a dropdown which I poulate with some php code. Where the arrow points in want my dropdown field. So I created in /components/...
0
votes
1answer
35 views

Render field in backend record form from plugin xml file

I'm building a component with payment plugins and I need to display the plugins fields in the account form record. The plugin xml fields section is <fields name="params"> <fieldset ...
0
votes
1answer
48 views

How to group Component sidebar menu, or add headings?

In my custom component, I have a sidebar with several entries. These are added using JHtmlSidebar::addEntry(...), as described in Joomla Documentation. Most of these sidebar menu items will rarely be ...
0
votes
1answer
33 views

How to use 'showon' with global settings in menu item parameter?

In a custom component I have some component params (config.xml) and I have some menu item params (default.xml). Inside the component params I make use of the showon attribute many times. But to keep ...
0
votes
1answer
50 views

Possible to associate item with itself?

I am working on a custom component. Most input are numbers, therefor not translatable. There are also some strings that can be translated. Instead of having the user duplicate each item to a new ...
0
votes
1answer
47 views

Add text and link to fieldset in config.xml

In my custom component, I have some component configs in the standard config.xml file. There are multiple fieldsets (tabs), each one has its own description. I would like to add a line of text below ...
1
vote
1answer
60 views

Execute custom script on save component config.xml

I am working on a custom component. The component has some component options, using the standard config.xml file and saving it to the extensions table. But what if I need to execute a custom script ...
0
votes
1answer
37 views

How to add js library on component installation

I have component which needs a slider. I`ve chosed carousel but how to add it in the frontend part of the component on installation ? Tried to put it in the administrator part but the scripts can't be ...
1
vote
1answer
38 views

Problem accessing database from front end of a component

I am currently working on a component which will display "events", stored in a database, on a map (filterable by location, category, date etc...). My first step is to display a simple report of the ...
0
votes
1answer
37 views

Optional fields in renderFieldset

I'm updating a component of mine to use the renderFieldset method and remove some unnecessary code in the form template files. However, some of my fields show / hide based on other preferences in the ...
0
votes
0answers
40 views

Load namespaced library from component in J!4

I'm using the latest build of J!4. I have a component that has library files under joomla_root\libraries\mycomponent but the namespaced files in this directory aren't loaded by Joomla! 4 autoloader. ...
2
votes
1answer
129 views

Joomla 4 namespacing and autoloading

I've added the namespace line to my manifest xml: <namespace>Mycompany\Component\Mycomponent</namespace> When I install the component, I'm not seeing any alias added to the libraries/...
1
vote
1answer
78 views

Load language files inside custom library

I have a a library inside \libraries\mylib\. That library contains an include.php which uses following to load language files that are also inside a /language folder in the library: $lang = JFactory:...
0
votes
0answers
21 views

Generated URL with token - The security token did not match [duplicate]

I'm trying to make a link that acts as the "save 2 copy" button on the edit page. On the main page for the item, I am creating the link according to this documentation: https://docs.joomla.org/...
1
vote
2answers
110 views

use router.php in simple component

I am having a simple component, basically a list view and a single view. I want to nice URLs so I copy pasted and modified the router.php from com_content like this: class BookstoreRouter extends ...
1
vote
1answer
32 views

Is there a way to remove component media files on update?

In my Joomla component I have a bunch of Javascript files in media that change on update ( basically a compiled Angular app ) and because of the way the system is structured, I need to only have the ...
0
votes
1answer
56 views

Send email upon publish/unpublish of an item in custom component

I have created a hello world component based upon this documentation https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/ I want to send a notification to users if an item's ...
2
votes
1answer
109 views

What is the reason pagination of records its not working?

Following the Developing an MVC Component / Basic backend guide, I can't make the pagination to work, following the instructions this is the code I have, the records are listed properly and the ...
3
votes
1answer
107 views

How to send data with save2copy button?

I'm developing a component. I want to have the save as copy button appear next to each element on my front end list view. I have copied the save as copy buttons html from the edit view of a single ...
1
vote
1answer
44 views

How to maintain a configuration change after Joomla update?

My component hooks into some core Joomla behaviour, adding an extra path that it needs other related components to be able to use. I do this simply by adding it to the global path include ( defines....
0
votes
1answer
97 views

Getting user id of logged in user in component

I'm making my first component and am trying to get the id of the logged-in user and request some data from the model based on that user id. If I search around this would return the current user: use ...
4
votes
0answers
61 views

How can I clear the cache for the params of a custom component?

I am working on a custom component and it works as intended as long as I do not have cache enabled. In the admin section of the component, I have a view that can change the "component params": $...
3
votes
1answer
81 views

Content plugin doesn't add text to articles

I have the following plugin written: defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); class plgContentModifyArticle extends JPlugin { function ...
1
vote
2answers
34 views

Add Options to {loadedmoduleid ID}

I want to create a module that implements animated icons into my articles. For this I want to use the following icon-pack: https://github.com/icons8/titanic Then I want to somehow write in my ...
0
votes
1answer
23 views

How can I create a custom joomla backend clone that works with the same sessions

I am trying to create a custom backend page in the same layout as Joomla. So none of the buttons have to work since I am going to be writing my own code, the only exception to that is the logout ...
2
votes
1answer
63 views

SEF URL Broken Image Links When Fetching API Results

Using Joomla 3.9.8 I'm using the fetch() api in order to retrieve some data from a remote API. When I have the api results I'm displaying them in html elements. The API returns various values, one ...

1
2 3 4 5