News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

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 2 Guests 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
  •