Migrate catalog data into CCK fields

tim.plunkett - June 15, 2009 - 05:05
Project:Station
Version:6.x-2.x-dev
Component:Catalog
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I am missing something, and don't know how to make this field non-required. Help?

#1

drewish - June 15, 2009 - 14:37

are you able to edit the date field? it might have been created as a locked field. in -dev i believe i've made it unlocked so you can edit it. if your's is locked i'll need to give you a php snippet to fix it.

#2

tim.plunkett - June 15, 2009 - 15:17

Either it's locked, or I just don't know exactly what I'm doing.

#3

drewish - June 15, 2009 - 17:18
Title:Make Year field not mandatory» Set the locked value for created CCK fields
Category:support request» task

Yeah if you can't edit it it's locked. I think I need an update to get them all on the same page.

#4

tim.plunkett - June 28, 2009 - 21:02

I am really stuck on this one, and I can't even find out where to start. This issue itself is in the top 3 results for "drupal locked fields". Any suggestions of where to start are welcome.

#5

drewish - June 28, 2009 - 21:11

ah, basically it'll be a matter of an update function that calls content_fields() for each of the fields changes the 'locked' property and then calls content_field_instance_update().

#6

tim.plunkett - July 3, 2009 - 20:48

Was that a "I will write an update function" or "If you want this to work, learn how to write an update function"?
I don't mean it in an impatient way, I just wasn't sure if I was supposed to be figuring this out myself.

Tim

#7

drewish - July 3, 2009 - 23:02

initially i was intending to write it but based on your question i though you might have been offering to take it on ;)

#8

tim.plunkett - July 3, 2009 - 23:16

to be honest, i just started taking classes for the summer, and i'm not sure that i'd actually get it done. sorry for the confusion.

#9

tim.plunkett - July 23, 2009 - 17:18
Title:Set the locked value for created CCK fields» Migrate catalog data into CCK fields
Category:task» feature request

After looking into this further, it seems that I misunderstood the issue. It's not a locked field issue because the data isn't in CCK fields to begin with, they're stored in station_catalog. No wonder I couldn't figure this out.

 
 

Drupal is a registered trademark of Dries Buytaert.