Questions tagged [htmlhelper]
The htmlhelper tag has no usage guidance.
7
questions
1
vote
1
answer
116
views
Question about LayoutHelper::render('joomla.html.image') and relative paths
So Joomla 4 (ok 3 got it too) has this new way of handling images which is GREAT. But now i have to understand how it works because for a project i want to set a DIV's Background by using a field ...
1
vote
1
answer
81
views
How to use HTMLHelper for other file types?
I found samples where HTMLHelper was used to load some types of files like stylesheets, scripts and images:
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', ...
1
vote
0
answers
27
views
Calendar field operation not acting as expected
I was wondering if anyone else is experiencing this behavior with HTMLHelper::calendar() fields and how you may be handling it in forms.
echo HTMLHelper::calendar("now", 'calendar', '...
2
votes
1
answer
133
views
HTMLHelper call a custom class in a module
In the xml file for a module, I call a custom field class:
<config>
<fields name="params">
<fieldset name="basic" addfieldprefix="Myextension\Name\...
2
votes
2
answers
531
views
Use HTMLHelper::_ by calling a namespaced class
In my component under Joomla! 4.0, I have the following call which returns:
error JHtml componentname not found.
HTMLHelper::_(
'componentname.link',
'index.php?option=com_component&view=...
1
vote
1
answer
285
views
How to use JDate / HTMLHelper inside model?
So I have this component (built with JCB) where I need to display a saved datetime from the db (without seconds, but that's not my focus right now). Because of some limitations, I cannot simply ...
0
votes
2
answers
245
views
Custom JHtml method
I'm developing a custom library which will be used for custom JHtml methods:
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Uri\Uri;
abstract class JHtmlKipengee
{
protected static $loaded = [];
...