Default state for new items

More
10 years 6 months ago #47624 by keke87
Hi,

I come here because i have a question : i want to know, how we can set the state "Unpublished" (with id=0) by default for every new item created by a user on the website ... i tried to go in
Code:
/var/www/mywebsite/administrator/components/com_flexi_content/models/forms
and to modify the line
Code:
<field name="state" type="list" label="FLEXI_STATE" description="FLEXI_STATE_DESC" class="inputbox use_select2_lib" filter="intval" size="-4" default="0" >
by size="0" but nothing change on the entry form of a new item.

Somebody can help me please ?

Yours,
Kevin

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

More
10 years 6 months ago #47625 by ggppdk
Replied by ggppdk on topic Default state for new items
Hello

please do not modify/hack FLEXIcontent core files , you will not be able to upgrade

-- the default state for new items is in component configuration in the "Workflow and notificiations TAB"

but then user can change it if the have ACL privilege to edit state (publish privilege)


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

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

More
10 years 6 months ago #47649 by keke87
Replied by keke87 on topic Default state for new items
Hello,

Sorry i didn't know that we don't have to modify core files of FlexiContent, but i did because i tried to modify default state in workflow and notification tab but nothing changed on the entry form ... As you can see on these screen :





Any ideas ?


And i have another question : how can you hide the state icons on an item ?



Thank you in advance for your answer.
Yours,
Kevin.

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

More
10 years 6 months ago #47650 by ggppdk
Replied by ggppdk on topic Default state for new items
Hello

1. this is ignored/bogus is v2.1.3

please update to v2.2.0 r1910 (BETA but tested enough)
www.flexicontent.org/forum/index ... pic#p47381



2. about state icon there is no option for hiding it,
it is displayed to logged users that can change the state of the current item

a. you can remove it from item.php of your template
b. or you can use CSS to hide it:
add to file:
templates/joomla_template/css/flexicontent.css
Code:
#flexicontent .statetoggler { display: none !important; }
or to hide it only for content type with id 5:
Code:
#flexicontent .fctype5 .statetoggler { display: none !important; }


Regards


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

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

More
10 years 6 months ago #47666 by keke87
Replied by keke87 on topic Default state for new items
Hello,

For the default state, that works !

But for the state item, when i go in /templates/protostar/css i have only template.css ... and in it, there are no lines with #flexicontent ... do you know where i can find that ?

Regards,
Kevin.

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

More
10 years 6 months ago #47667 by ggppdk
Replied by ggppdk on topic Default state for new items
Hello

yes, i have not been 100% clear,

it was implied that you will create the file:
templates/joomla_template/css/flexicontent.css

you may also read our FAQ article:
How to customize CSS styles of FLEXIcontent


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

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.327 seconds
Save
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