Help Mysql flexi field

More
11 years 7 months ago #28697 by GamerLive
Hello, I had like a little boost in my database.
Let me explain a type of document I have several fields of type html text area.
In the settings I have filled the defaults and this works very well for new documents, however for those who have been imported Unfortunately this is still empty.
I want to know what is the only manipulation to populate a field in the database and especially what command to enter.

I have over 2000 items to update me so this command is really necessary.

Portail communautaire sur l'univers des consoles Sony entièrement réalisé avec Flexicontent.

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

More
11 years 7 months ago #28703 by ggppdk
Replied by ggppdk on topic Help Mysql flexi field
You want to populate a field value for all items?

is this value the same for all items

you want to use a PHP script?
or
a DB query via phpmyadmin?


-- 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
11 years 7 months ago #28704 by GamerLive
Replied by GamerLive on topic Help Mysql flexi field
I want to populate some fields html for all items of one type only (fiche).
And i think a DB query it's best solution not ?

Portail communautaire sur l'univers des consoles Sony entièrement réalisé avec Flexicontent.

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

More
11 years 7 months ago #28706 by ggppdk
Replied by ggppdk on topic Help Mysql flexi field
mmm :roll:

ggppdk wrote: 1. You want to populate a field value for all items?

2. is this value the same for all items

3. you want to use a PHP script OR a DB query via phpmyadmin?



-- 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
11 years 7 months ago #28707 by GamerLive
Replied by GamerLive on topic Help Mysql flexi field
1 no it's only for one type of item

2 yes is this value the same for all items

3 i think a db query is better but I'm not sure

Portail communautaire sur l'univers des consoles Sony entièrement réalisé avec Flexicontent.

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

More
11 years 7 months ago #28719 by ggppdk
Replied by ggppdk on topic Help Mysql flexi field
Actually you will need a PHP script to insert this

i won't write some code for this at least without testing and currently i don't have time for this

your script will need
- to get ids of items that have a specific Content Type
- then check which items have no value for the given textarea field
- then loop through there item adding a value to them


Effectively you want a default value for existing items?

This is possible in text field and a couple of others,

i planned on adding it for a few other fields too will do this


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