How to make some categories not selectable?

More
13 years 4 months ago #29864 by brandonking
Hi all,

I am using FLEXIcontent version 2.0.0 RC9 (r1514) on J2.5.7.

I want any front-end users to create items only for last level of categories.
Thus, They will not be able to select categories except last level on item submission/edit form.
In the form, category drop-down shows all of specified category tree but top and middle level of categories will be grey out and only last level will be selectable.
Which file do I have to override?

Regards

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29865 by micker
in menu option of submission you can override categorie selectable ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29866 by brandonking
Micker, Thanks for your reply.

I know that there is an option to select categories to show on Item submission form. If category is with 2 levels then no problem.

For example, 3 level category:
Used
|_ car
|_ BMW ->selectable
|_ Toyota ->selectable
|_ Other ->selectable
|_ bike
|_ BMW ->selectable
|_ Honda ->selectable
|_ Other ->selectable

Result will be:

BMW -> user don't know parent category
Toyota
Other -> user don't know parent category
BMW -> user don't know parent category
Honda
Other -> user don't know parent category

There are categories has same name.
That' why I want to show all of category tree and disable top and second categories not to selectable.

Any other way to achieve this please?

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29870 by igcorreia
you cant, I have requested this feature in the past, but it is very hard to do.

How do you think this should be done?
Per user? per type of content? per category? per configuration?

I was thinking per type of content but This is not implemented in FC

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29872 by brandonking
I think giving disable option to category is easy for us and there are a lot of extensions covering category than type. Do you know which file to edit? I want to try it by myself.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29874 by ggppdk

algardata wrote: you cant, I have requested this feature in the past, but it is very hard to do.

How do you think this should be done?
Per user? per type of content? per category? per configuration?

I was thinking per type of content but This is not implemented in FC


It is possible to do for the item edit form,

the category tree is generated by a common helper function, which would only need only a couple of lines to do it, since the needed information is already available ...

You think it is worth it? we would do it by a Global Parameter overridden per Content Type?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29876 by brandonking
What about giving 2 category dropdowns?
one for top category and another one for secondary category.
So user have to choose first category then associated secondary will be loaded on second drop down.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29877 by ggppdk
wait, are you changing subject? we are talking about allowing selection only of last categories :D


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29878 by brandonking
No I am not, I am suggesting in different way of selecting last category. I guess hierarchical category filtering dropdown would get away from user's mistake.
This will be more reliable if there are more than 2 level of categories as well. How do you think about it?

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #29879 by ggppdk
Selecting categories in 2 steps is a different topic, and has been asked before, in order to reduce category tree to a smaller size.

This would mean to either load ALL categories and use Javascript to hide categories in the second selection box or use AJAX to populate, this is considerably more work


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save