New answers tagged

0 votes

How to Fix PHP Deprecated : Factory::getDocument() is deprecated

You can use this: use Joomla\CMS\Factory; $app = Factory::getApplication(); $document = $app->getDocument(); Or this: use Joomla\CMS\Factory; use Joomla\CMS\Document\FactoryInterface; $container = ...
0 votes

How to get product id in the article text (j2store)

require_once(JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php'); $product = F0FTable::getAnInstance('Product', 'J2StoreTable')->getClone(); if($product->get_product_by_source('...
1 vote

How do I create a new PHP variable for a blog override from the result of JDatabase join query?

Firstly: the reason for the white page errors was that I was putting the code into the wrong file. Instead of adding it to blog_item.php it should be in blog.php. It worked once I'd moved the code. ...
  • 313
0 votes

Display current article's specific custom field in module

I got the hint from here Custom Fields inside Articles News Module in Joomla 4 And made my own module from mod_article_news. Just kept the codes I need and deleted rest. Than added custom filed part ...
  • 55

Top 50 recent answers are included