so i was trying to extend category with a possibility to have filtering for products (products additionally were extended with attributes i want to do filtering).
However i came with few problems.
First, including "include Filters" in the ProductCategory.ss, which was not possible to locate such an include. Flush was done multiple times, however i still cannot make include Filters.ss with a single string in it "testing filters".
You might want to try copying the ProductCategory.ss into your theme include folder, then including Filters.ss and try the flush again. If that is what you are currently doing perhaps bang ?showtemplate=1 on the end of the URL to see what templates are being used. Perhaps the template in the silverstripe-category/ module is still being used for some reason?
Has anyone done any custom product filtering, i.e. using a form with dropdownfield?
I tried extending productCategory by using a filter/form, however i could not get it working, all products are shown even though filtering options are selected.
If you have any ideas, would be interesting to see (if you know a good manual on this topic, would be good as well).
saulius at myeweb.com (you can contact me for further details/link for example )
Hi i was wondering is there any possible way to add Category Icon as a upload field to Swipestripe category.
Added the has one:
private static $has_one = array(
'Caticon' => 'Image'
also the field:
$fields->addFieldToTab('Root.Main', new UploadField('Caticon', 'Category icon'));
But no success. it creates tables but dont add the image upload field to the category admin page.
Added the both things inside class ProductCategory_Extension extends DataExtension is it the right place