Page 1 of 1

Display Specific Icons in the Specific Layout ?

Posted: 21 Apr 2014, 19:46
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:

To illustrate the problem...

Posted: 22 Apr 2014, 21:16
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:

Re: Display Specific Icons in the Specific Layout ?

Posted: 25 Apr 2014, 23:26
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

Re: Display Specific Icons in the Specific Layout ?

Posted: 28 Apr 2014, 15:24
by Zotius
Thank you for your answer. I will necessarily try it, I hope will succeed... :)

Re: Display Specific Icons in the Specific Layout ?

Posted: 28 Apr 2014, 17:52
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.

Re: Display Specific Icons in the Specific Layout ?

Posted: 03 May 2014, 12:44
by Jan
Ok