Display Specific Icons in the Specific Layout ?

Phoca Download - download manager
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

Display Specific Icons in the Specific Layout ?

Post by Zotius »

Hi!
I want to use PD with Display Specific Layout, but here I don't know, how can insert the Specific Icon (1) and Specific Icon (2) in the Layout-editor. On the right of screen is many plugable variable:
{pdtitle} {pdimage} {pdfile} {pdfilesize} {pdversion} {pdlicense} {pdauthor} {pdauthoremail} {pdfiledate} {pddownloads} {pddescription} {pdfeatures} {pdchangelog} {pdnotes} {pdmirrorlink1} {pdmirrorlink2} {pdreportlink} {pdrating} {pdtags} {pdfiledesctop} {pdfiledescbottom} {pdbuttondownload} {pdbuttondetails} {pdbuttonpreview} {pdbuttonplay} {pdvideo}
... but I can't find the usable tag to Specific Icons.
Anybody can help me? :idea:
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

To illustrate the problem...

Post by Zotius »

To illustrate the problem, here are 3 pictures
This category is OK, because here I don't need specific icon:
(Category: Fonts \ A )
Image

This categories are NOT OK, because here I need the specific icon:
(Category: Joomla \ Components )
Image
(Category: Joomla \ Language files )
Image

... and per category can not use once specific, and once non-specific settings. :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display Specific Icons in the Specific Layout ?

Post by Jan »

Hi, specific icons are set together with the filename (because of formatting - to be aligned after name). So customizing this cannot be done in theme settings but directly in the output code :-(

components/com_phocadownload/views/category/tmpl/ ...

Jan
If you find Phoca extensions useful, please support the project
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

Re: Display Specific Icons in the Specific Layout ?

Post by Zotius »

Thank you for your answer. I will necessarily try it, I hope will succeed... :)
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

Re: Display Specific Icons in the Specific Layout ?

Post by Zotius »

I win! 8)
Only had to be slightly modify two examination of assesment.
The first was this:

Code: Select all

if (isset($v->image_filename_spec1) && $v->image_filename_spec1 != '')
I changed to:

Code: Select all

if ($v->image_filename_spec1 != '')
The second was this:

Code: Select all

if (isset($v->image_filename_spec2) && $v->image_filename_spec2 != '')
I changed to:

Code: Select all

if ($v->image_filename_spec2 != '')
Here only must examine that is there name specified in image_filename_spec1 and image_filename_spec2 fields.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display Specific Icons in the Specific Layout ?

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply