Questions tagged [htmlhelper]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
55 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', ...
  • 735
1 vote
0 answers
10 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', '...
  • 1,767
2 votes
1 answer
83 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
314 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
236 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 ...
  • 525
0 votes
2 answers
224 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 = []; ...
  • 26.7k