News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Category title in download details layout? [Solved]

Started by romagromov, 20.02.2015 13:03:28

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

romagromov

Hi!
I need category title in download details page.

I trying to add placeholder {Cat_title} - but it don't work...
Thanks.
Best free windows software for your PC at bestwinsoft.com
  •  

romagromov

Fix it  ;D

Add code

$html_cat = str_replace('{cat_title}', $cats[$i]->title, $html_cat);

to /components/com_jdownloads/views/download/tmpl/default.php
Best free windows software for your PC at bestwinsoft.com
  •  

Arno

#2
Yes. But this is not a bug more a missing feature.  ;)
But i will add it.

EDIT:
Quote$html_cat = str_replace('{cat_title}', $cats[$i]->title, $html_cat);
This is wrong but the required code exist always in line 381:
$body = str_replace('{cat_title}', $this->item->category_title, $body);
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

romagromov

Quote from: Arno on 20.02.2015 13:20:14
Yes. But this is not a bug more a missing feature.  ;)
But i will add it.

EDIT:This is wrong but the required code exist always in line 381:
$body = str_replace('{cat_title}', $this->item->category_title, $body);

I'm not saying that it is a bug  ;D

I just correct your next build  8)

Thanks!
Best free windows software for your PC at bestwinsoft.com
  •