Phoca Download Category Image Bug

Phoca Download - download manager
nunoleite
Phoca Member
Phoca Member
Posts: 38
Joined: 15 Apr 2018, 01:00

Phoca Download Category Image Bug

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Category Image Bug

Post by Jan »

Hi, testing now,

without any problem

Setting the image:
Image

Displaying in the frontend:
Image

Which version of Phoca Download do you use?

Jan
If you find Phoca extensions useful, please support the project
nunoleite
Phoca Member
Phoca Member
Posts: 38
Joined: 15 Apr 2018, 01:00

Re: Phoca Download Category Image Bug

Post 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
christine
Phoca Hero
Phoca Hero
Posts: 2723
Joined: 28 Nov 2010, 17:20

Re: Phoca Download Category Image Bug

Post by christine »

Hi,

correct path of image?

Kind regards
Christine
nunoleite
Phoca Member
Phoca Member
Posts: 38
Joined: 15 Apr 2018, 01:00

Re: Phoca Download Category Image Bug

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Category Image Bug

Post 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
If you find Phoca extensions useful, please support the project
nunoleite
Phoca Member
Phoca Member
Posts: 38
Joined: 15 Apr 2018, 01:00

Re: Phoca Download Category Image Bug

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Category Image Bug

Post 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
If you find Phoca extensions useful, please support the project
nunoleite
Phoca Member
Phoca Member
Posts: 38
Joined: 15 Apr 2018, 01:00

Re: Phoca Download Category Image Bug

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Category Image Bug

Post by Jan »

Hi, the image is displayed in categories view. Just disable specific layout and let the Phoca Download display standard output.

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