Joomla component config file




















To enable this, we'll introduce a params field in the database record, which will be a string in JSON format as is common in many Joomla core components , and we'll need to change the accompanying code to handle this. You can watch a video associated with this step at Step 13, Adding Configuration. The Joomla framework allows the use of parameters stored in each component.

For the moment, we defined only one parameter: is the category title displayed or not in the frontend. We want to define this parameter individually on all HelloWorld data. Note: The details fieldset now has a label too the same that was set in the edit view before. Data now contains a new parameter: params. The SQL structure has to be modified. Learn more. Joomla 2.

Asked 9 years, 5 months ago. Active 5 years, 1 month ago. Viewed 6k times. Please help me with this I am creating a component. Thanks in advance. Improve this question.

Nathanphan Nathanphan 1 1 gold badge 10 10 silver badges 23 23 bronze badges. Add a comment. Active Oldest Votes. Using config. Looking in the wiki I found that the getParams get params value from the menu database field instean of component dabatbase field.

Always in the same wiki page was explained how to get the params from the component filed and this is ok but I would to avoid to have the same settings params showed also in the menu settings because I think this "duoble" params settings where only one of them is working can cause some confusion in the user, I don't know if I explained well my doub.

Is there a way to have components param showed onlky i n the component configuration page and not in the menu settings? Right now the only solution I thought is to move the config. Thank you. Re: Component parameters and config. I have tried different ways to get the constant value in the display function in 'view. I am expecting the value will be available in the default. So to get it from global configuration set in configuration.

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Joomla 3. Asked 1 year, 2 months ago.



0コメント

  • 1000 / 1000