Hi, in parameters, you can set if the image of category will be displayed as "folder" or image (random, first, latest) from the category
Jan
Re: Phoca Download with category images
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download with category images
If you find Phoca extensions useful, please support the project
Tags:
-
- Phoca Enthusiast
- Posts: 83
- Joined: 18 Jul 2010, 18:10
Re: Phoca Download with category images
I am using 1.3.7 but there is no option to change yellow folder icon to (newest,random,latest)............
where should i check?
I checked parameters in control panel.
which version has this feature?
where should i check?
I checked parameters in control panel.
which version has this feature?
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download with category images
Hi, sorry for misunderstanding, I thought about Phoca Gallery (different image for each category).
No, for Phoca Download there is no such option , added in feature request list in other topic.
In Phoca Download 2, there will be a new feature which is implemented now (but version 2 works only in Joomla! 1.6) which allows to add description with image to main category, so it will be displayed on the categories view page (so maybe this solution can help), see demo:
https://www.phoca.cz/joomlademo/phoca-download
Jan
No, for Phoca Download there is no such option , added in feature request list in other topic.
In Phoca Download 2, there will be a new feature which is implemented now (but version 2 works only in Joomla! 1.6) which allows to add description with image to main category, so it will be displayed on the categories view page (so maybe this solution can help), see demo:
https://www.phoca.cz/joomlademo/phoca-download
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 26
- Joined: 14 Jun 2016, 14:28
Re: Phoca Download with category images
Hi,
This is a very old topic but the category image feature request is still valid in Phoca Download.
In Phoca Gallery you can display different images/icons which will represent the gallery, so an image represents a category. The same function is needed in Phoca Download. Though you can insert an image in the category description, but that's not a good solution because the image is only displayed when you click on the category. The category page itself cannot display images, only the titles of the categories.
Would it be possible to implement a new field in the backend in order to display an image with the category name on the category page?
Thank you.
Best regards,
mentalhacker
This is a very old topic but the category image feature request is still valid in Phoca Download.
In Phoca Gallery you can display different images/icons which will represent the gallery, so an image represents a category. The same function is needed in Phoca Download. Though you can insert an image in the category description, but that's not a good solution because the image is only displayed when you click on the category. The category page itself cannot display images, only the titles of the categories.
Would it be possible to implement a new field in the backend in order to display an image with the category name on the category page?
Thank you.
Best regards,
mentalhacker
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download with category images
Hi, it is in feature request list but I still didn't find time to implement it. Unfortunately Joomla! inside changes a lot, so first I need to overwrite all the components so they are ready for latest Joomla! (and unfortunately, when it is done, Joomla! changes again and again - the same like all other API - e.g. FB Api used in Phoca Gallery changes so much that it is really hard to have it updated )
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 26
- Joined: 14 Jun 2016, 14:28
Re: Re: Phoca Download with category images
OK, thank you.
I hope this implementation will be successful soon. This feature is very much needed.
I hope this implementation will be successful soon. This feature is very much needed.
-
- Phoca Member
- Posts: 26
- Joined: 14 Jun 2016, 14:28
Re: Re: Phoca Download with category images
Hi Jan,
I was trying to implement a new 'Image' field into the category editor. I managed to do this by copying this line
from phocadownloadfile.xml to phocadownloadcat.xml.
I made the necessary change in the database, and created a new column 'image_download' in the category table.
I edited the categories template in this file: com_phocadownload/views/categories/tmpl/default.php
with this code line:
I placed this code right after the category title.
Now the 'Image' field works in the backend, but the image is not displayed in the frontend. There is an empty div.
What could be the problem? Maybe it is not the best method but I'm not a developer, yet I suppose I'm very close to a suitable solution. I just want to put images in the category page. Could you help with this?
Thank you,
mentalhacker
I was trying to implement a new 'Image' field into the category editor. I managed to do this by copying this line
Code: Select all
<field name="image_download" type="phocaselectfilename" manager="image" label="COM_PHOCADOWNLOAD_FIELD_IMAGE_DOWNLOAD_LABEL" description="COM_PHOCADOWNLOAD_FIELD_IMAGE_DOWNLOAD_DESC" class="inputbox" size="40" />
I made the necessary change in the database, and created a new column 'image_download' in the category table.
I edited the categories template in this file: com_phocadownload/views/categories/tmpl/default.php
with this code line:
Code: Select all
$pdImage = '<a href="'. JRoute::_(PhocaDownloadRoute::getCategoryRoute($value->id, $value->alias)).'">' .$v->image_download .'</a>';
if ($v->image_download != '') {
$pdImage = $l->getImageDownload($v->image_download);
}
Now the 'Image' field works in the backend, but the image is not displayed in the frontend. There is an empty div.
What could be the problem? Maybe it is not the best method but I'm not a developer, yet I suppose I'm very close to a suitable solution. I just want to put images in the category page. Could you help with this?
Thank you,
mentalhacker
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Re: Phoca Download with category images
Hi, try to enable php error reporting, I would say that the column was not loaded from database, check the model of the category view if the column is loaded by the SQL query
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Re: Phoca Download with category images
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 26 Feb 2018, 19:01
Re: Phoca Download with category images
Jan, good morning, see that I downloaded the latest version, but I can not make a category appear only as an image, I edit the category and I choose the image but it does not come out in the front, could you help me?