Component Config field in Global Tab #1189
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1189
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Setup in component settings configuration a field in global tab to be able to pull as global param in the component and echo value in site views
Expected result
Being able to echo the global field params in site views
Actual result
If I do something like this:
$val = $input->get(param_name, default_value, filter)
I get a null value,
Quick question about fields set in the component configuration ->Global tab. Are this global params? Example if the field is called "one_site" and the value is set to "New York", How can I php echo that in a site view (I know how to do the tag) I just do not know where to find the global variable name?
System information (as much as possible)
OS Name & Version: Linux lamp302.cloudaccess.net 3.10.0-962.3.2.lve1.5.85.el6h.x86_64 #1 SMP Thu Apr 18 09:46:51 UTC 2024 x86_64
MySql Version: 8.0.34-cll-lve
Apache Version:
PHP Version: 8.2.23
Joomla Version: Joomla! 5.1.4 Stable [ Kudumisha ] 27-August-2024 16:00 GM
JCB Version: 5.0.4-beta1
Browser: Microsoft Edge Version 130.0.2849.46 (Official build) (64-bit)
Additional comments
This is not an issue; I just could not find anything in the documentation.
Gave one example of where I am setting since I want to be able to install my component in my sites, I would like to just to change the value according to the site rather the change the site view and recompile the component every time.
Perhaps there is better way to do this, but I thought that the config was the best place. I just do not where and how to pick up the value.
Guidance on Using Global Component Parameters in Joomla
I understand that this topic is documented somewhere, and there is a Wiki page that allows you to search through video tutorials by text. If you’re unsure about where to start, here's a step-by-step approach to help you find the information and resolve your issue efficiently:
Search the Wiki Page:
Understanding Global Component Parameters:
Exploring an Example in the Code:
Next Steps:
Final Note:
All the best with your implementation!
Thank you Llewellyn.
Thank you!