Page 1 of 2
Phoca Download Category Image Bug
Posted: 20 Nov 2018, 17:45
by nunoleite
Hi!
I have tried to put an image in the Category but the image doesn't show in the frontend.
Is this a bug? Can you check?
Thanks
Nuno Leite
Re: Phoca Download Category Image Bug
Posted: 21 Nov 2018, 11:22
by Jan
Hi, testing now,
without any problem
Setting the image:
Displaying in the frontend:
Which version of Phoca Download do you use?
Jan
Re: Phoca Download Category Image Bug
Posted: 21 Nov 2018, 18:56
by nunoleite
Hi!
I'm using version 3.1.4
And i tried the menu "List Of Categories (Categories View)" and "List of Files (Category View)".
None showed the category image.
Am i doing something wrong? Is there any other configuration necessary?
Thanks
Nuno Leite
Re: Phoca Download Category Image Bug
Posted: 21 Nov 2018, 20:31
by christine
Hi,
correct path of image?
Kind regards
Christine
Re: Phoca Download Category Image Bug
Posted: 22 Nov 2018, 14:32
by nunoleite
Hi!
Investigating html i don't even see any <img> tag.
And the image i select is in the images/phocadownload. I'm using the button "Select Image". So, i suppose its everything correct.
Is there any other option that is needed?
Thanks
Nuno Leite
Re: Phoca Download Category Image Bug
Posted: 23 Nov 2018, 11:13
by Jan
Hi, do you use some template which overrides the Phoca Download output?
Do you use standard layout or did you define specific in layout settings?
Jan
Re: Phoca Download Category Image Bug
Posted: 23 Nov 2018, 18:57
by nunoleite
Hi!
I use standard layout. I never changed the default layout. But i now tried to use the {pdimage} in the default layout, but it didn't work too.
I have manage to do what i need by using CSS.
I have defined a CSS that puts a background on the category depending on it's name.
Example:
#phoca-dl-categories-box .pd-subcategory a[href*="protocolos"], #phoca-dl-category-box .pd-subcategory a[href*="protocolos"] {
background: url(pasta.png) 0 center no-repeat;
background-size: 60px;
}
#phoca-dl-categories-box .pd-subcategory a, #phoca-dl-category-box .pd-subcategory a {
padding-left: 80px;
display: inline-block;
}
So, the behavior i need is to have a different image/icon when i show the list of categories. I did that with CSS. Depending on the link of the category i have different image/icon.
I don't know where the image would appear in the layout, so with CSS i think i can get the presentation i need.
Thanks
Nuno Leite
Re: Phoca Download Category Image Bug
Posted: 24 Nov 2018, 20:34
by Jan
Hi,
But i now tried to use the {pdimage} in the default layout
So you are using the layout view? When you disable the layout view and let the standard to be displayed, you so get the displaying of the images in categories view?
Jan
Re: Phoca Download Category Image Bug
Posted: 27 Nov 2018, 01:09
by nunoleite
Hi!
I don't think so, I have "Display Specific Layout" and "Display Bootstrap 3 Layout" set to NO.
I just tried using the Layout just to see if it changed anything, but it didn't work too.
I don't even know where this image would appear. If it's on the categories list or only when the category is opened.
I was searching for an image/icon that represented a category. Just like the "Icon", "Specific Icon (1)", "Specific Icon (2)" works for a document.
The "Icon" option it would be perfect as it works as an icon for the name.
Thanks
Nuno Leite
Re: Phoca Download Category Image Bug
Posted: 29 Nov 2018, 12:35
by Jan
Hi, the image is displayed in categories view. Just disable specific layout and let the Phoca Download display standard output.
Jan