ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 11/13/2020 : 12:44:15
Need categories that are hidden from the categories.asp listing yet i can still hard link to for custom category listings.
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 11/13/2020 : 13:12:26
Hi,
You can now set a custom css class in the categories section.
Then in your css file you can add that class and use display:none to hide it.
So for example,
If css custom class set on the categories page is hidecat then add this to your css file:
.hidecat{display:none;}
Steve
Edited by - Steved on 11/13/2020 13:19:11
|
Marshall
Ecommerce Template Guru
USA
1909 Posts |
Posted - 11/13/2020 : 17:55:20
Why not create login levels for categories you want to hide but still be accessible?
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 11/14/2020 : 10:45:47
I already tried the login levels for this one. Changed to level 5 for "Hidden_Categories", created a few test categories that anybody can see and linked them to "hidden_categories". Set the "hidden_categories" to level 5 with "Do not alter subcategory restrictions" selected. didn't work. If user isn't logged in and level 5, they cannot see it or any of the subcategories even if the subcategories are hard linked.
Haven't messed with the CSS yet. I would think I would need to set the display value of hidecat to true if I want to bring him back to visible. And I believe the issue would be that the underlying code has eliminated that category for retrieval long before it gets to where hidecat would be used. But will try it.
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 11/14/2020 : 13:00:43
Maybe I am misunderstanding what you want to achieve.
I use the css method I described above to hide categories from my category page.
However, I can still create a link to that category or subcategory which works fine.
For example, on my website I use this for the articles feature so I can assign ‘about us’, ‘contact us’ etc to my information category. I have hidden the information category with css but still link to ‘about us’ and ‘contact us’.
Is that not what you’re after?
Steve
Edited by - Steved on 11/14/2020 13:01:25
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 11/14/2020 : 13:10:40
That's exactly what I'm after. I didn't envision that would be how it works but I will definitely try it.
I'm planning on making it my Manufacturer's home category page, Manfacturers linked to the Manufacturers home category page and each manufacturer has categories. Very similar to the built in Manufacturers function that exists now but I cannot link sub-categores to each manufacturer.
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 11/14/2020 : 13:20:48
OK -- tried it and nothing happens. Did a file search through all the source code and cannot find hidecat used anywhere within the code. "This category is not currently available"
Edited by - ekrzycki on 11/14/2020 13:28:54
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 11/14/2020 : 13:42:53
hidecat was an example css name you could choose.
Go to the categories page in admin and from the left hand drop down menu select custom css class.
Find the category you want to hide and choose a name (such as hidecat) to add to the custom css box.
Update/save
Then in you style.css file add the css as per my example (where I had randomly chosen hidecat)
If you do use the word hidecat you would use this css:
.hidecat{display:none;}
Steve
Edited by - Steved on 11/14/2020 13:44:39
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 11/14/2020 : 18:45:32
Huh... custom css within categories - when did they add that one? I guess that explains why I couldn't find the "hidecats" anywhere within the code.
And - it works!
Now - how do I assign a catid to a category page? I thought I could do it just like I do with region id: <% regionid=126 %> <!--#include file="vsadmin/inc/inccontentregion.asp"-->
but catid doesn't work: <% catid=207 %> <!--#include file="vsadmin/inc/inccategories.asp"-->
Thank you, Ed
Edited by - ekrzycki on 11/14/2020 18:59:31
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 11/15/2020 : 02:27:10
Hi Ed, [quote]Huh... custom css within categories - when did they add that one?[/quote] Yes, that threw me for a while, I think it was Phil who alerted me to it some time ago but I hadn't noticed it before. It's a really useful feature. Glad you got it sorted Steve
|
|
|