Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
3

I would have preferred to just suggest some touch ups to your snippet, but there is too much for me to address in your answer as a comment and I'd rather explain fully. Instead, I'll post this new answer which will review and clean up your assumed-working coding attempt for the benefit of you and future researchers. You are declaring $images = json_decode($...


1

You could create a cron job that runs daily and executes a PHP file. You should be able to set this up in your hosting control panel. Command: php /home/xxx/public_html/cli/sitelive.php Then go to: https://www.unixtimestamp.com/index.php, add the date you wish to go live and convert it to a UNIX timestamp. sitelive.php: const _JEXEC = 1; error_reporting(...


1

The solution to my question. I think is valid: <?php $images = json_decode($item->images); ?> <span itemprop="image" itemscope itemtype="https://schema.org/ImageObject"> <link itemprop="url" href="<?php // Create new DOMDocument object. $dom = new DOMDOcument; // Load article text into DOMDocument. $dom->loadHTML($item->...


1

Sometimes you can't see the forest for the trees. My JS now looks like this function addDate(target_field) { document.getElementById(target_field).value = currentDate(); document.getElementById(target_field).focus(); document.getElementById(target_field).blur(); } and it works !!!


1

Try this workaround below, by calling jquery.framework from the article. It should override jquery.framework call that comes from your template so then jquery will be called before your script. {source} <?php JHtml::_('jquery.framework'); $doc = JFactory::getDocument(); $doc->addStyleSheet('mycode/css/article_1.css'); $doc->...


1

It’s a jQuery conflict (more like noConflict issue). You should start and wrap your script for example like: jQuery.noConflict(); (function( $ ) { // if you want to use $ $(function() { // More code using $ as alias to jQuery }); })(jQuery); Or redefine jQuery like: var $j = jQuery.noConflict(); // $j is now an alias to the jQuery function; ...


1

*** Update - This solution works provided the date input field is not have a type="calendar" in the Joomla forms .xml. I will raise a separate question to try and work out why and report back here. My solution to change the date field on a change in the current stock when entered via the form involved learning enough JS to become dangerous. :) My ...


Only top voted, non community-wiki answers of a minimum length are eligible