jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: romagromov on 20.02.2015 13:03:28

Title: Category title in download details layout? [Solved]
Post by: romagromov on 20.02.2015 13:03:28
Hi!
I need category title in download details page.

I trying to add placeholder {Cat_title} - but it don't work...
Thanks.
Title: Re: Category title in download details layout?
Post by: romagromov on 20.02.2015 13:07:19
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
Title: Re: Category title in download details layout?
Post by: 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:
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);
Title: Re: Category title in download details layout?
Post by: romagromov on 20.02.2015 14:30:24
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!