[SOLVED] Hide one type selection

4 years 11 months ago - 4 years 5 months ago #62538 by juansolos
Hello,
i use the latest Joomla and FC version.
I need to have specific field for 2 articles.
So i have created an item-type for this 2 items.

As i have only 2 articles for this type and no need to generate other one (only modify existing one), i want to disable this type selection in the first popup (type selection) on the add item button.

I use "allow submission" parameter in the type configuration to hide this type selection for admin-user (not super admin). It is ok. This type is hidden on the type selection for admin.

But if an admin edits an article from this type, he cant save it, because there is no type selected because he cant choose this type.

So is it a way to desable the type selection for admin but allow them to modify items of this type (so save items of this type)?
Is it clear? I am not sure

Regards

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

4 years 11 months ago #62545 by micker
Replied by micker on topic Hide one type selection
you can add css in BE form in type administration => hide field by css

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.

4 years 10 months ago #62710 by ggppdk
Replied by ggppdk on topic Hide one type selection
Hello

so you disallowed CREATE of a type for a usergroup A ?

and the result is that the EDIT becomes problematic because the type is not listed ?

- if it is the above then it is a bug


-- 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.

4 years 10 months ago - 4 years 10 months ago #62711 by ggppdk
Replied by ggppdk on topic Hide one type selection
we should
- either disallow EDIT too
- or we should let the selector show the type, if the current item is already of this type

the most correct would be to do the 2nd option


-- 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.

4 years 10 months ago #62883 by juansolos
Replied by juansolos on topic Hide one type selection
Hello,
yes 2nd will be better.

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

4 years 10 months ago - 4 years 10 months ago #62884 by ggppdk
Replied by ggppdk on topic Hide one type selection
Hello

i have made some fixes for changing ACL rules for J3.5.x / J3.6.x
in type configuration

You should help by clicking:
Clone or Download / "Download zip"
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

then in a testing/duplicate website install it via joomla extension manager, and test


-- 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.

4 years 6 months ago #64824 by mijim
Replied by mijim on topic Hide one type selection
Hello, I am having the exact same problem.
Joomla 3.6.4
FC 3.1.1
If I deny the action " create items" for one specific type, it won't show up in the the list of types when adding a new item (which is what I am aiming to) but when editing an existing item of this type, I can't save it because the type not defined (selector is set on "Select type"), and rightly the item type is not in the list...

Has it been fixed with other people?

Many thanks
Antoine

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

4 years 6 months ago - 4 years 6 months ago #64825 by ggppdk
Replied by ggppdk on topic Hide one type selection
Hello

existing items while being editted should always show the type currently assigned to item,
regardless of use having permission to use type for new items

I have opened and issue to review this:
github.com/FLEXIcontent/flexicontent-cck/issues/663

v3.1.2 milestone


-- 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.

4 years 6 months ago #64830 by mijim
Replied by mijim on topic Hide one type selection
Great, thank you.

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

4 years 5 months ago #65088 by ggppdk
Replied by ggppdk on topic Hide one type selection
Hello

Fixed with commit:
github.com/FLEXIcontent/flexicontent-cck...312122efce541e4079a0

Fixed not possible to save an existing editable item when 'Create items' in Item Type was denied for the usergroup of the current editor


-- 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
© 2018 Flexicontent. All Rights Reserved.