Skip to main content

Timeline for Enter one thing but save the other

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Sep 20, 2012 at 18:46 answer added Yuseferi timeline score: 1
Sep 20, 2012 at 18:40 comment added DimG In current situation this information (to be specific, related book info, i.e. reference itself and bibliographical data) should be visualized only once, so I think that I'll do it without Views, just having written the module with Field Search Query or Database API. Not good idea, I agree, but if I write my own module, adding a Views compatibility will be really hard for me.
Sep 20, 2012 at 18:35 comment added Yuseferi another question is where you use this nodes in views? I have a plan if you think I understand you means correctly tell me suggest my code to you. by default entity ref field saved nid of refrenced node, but If we can save refrenced field title in another field in submit .
Sep 20, 2012 at 18:26 comment added DimG where editor enters node's ("related book") title but what is actualy saved is "target_id". It's done in Entity Reference but I don't know how. Inspecting the code hadn't help since I'm not quite familiar with Field API. Thank you
Sep 20, 2012 at 18:24 comment added DimG Sorry, hadn't any access to internet. Well, my client wants to have a field that is actually a container of two default fields: an (1) entity reference and a (2) text field. These two fields should be in one logic group since they refer to one object -- entity reference refers to the "related book" and text field contains the information about on what pages the current node( a real article in that related book). As I don't know any method to use existing module "Entity Referrence", I have to implement my "restricted" version of it. So I have to implement an autocomplete feature
Sep 20, 2012 at 5:45 comment added Yuseferi @DimsG, what do you intend, where you want use this data ,in views, please get me more details form better solution for you
Sep 20, 2012 at 5:32 comment added Yuseferi @DimsG, ok, I understand what is your problem, this is not issue and its big feature(realated to database engineering conception and realationship conceptition ). What do you intend?
Sep 20, 2012 at 5:15 comment added DimG Mm. I don't know how to paraphrase it. Consider this example: in the widget user selects his location by typeing coordinates but what is saved in database is the name of the city. Or this one: User enters the integer but drupal wants to save it's "word representation": entered 2 is saved as "two", entered 3 is saved as "three". All this stuff requires some process function and the question is basically if Drupal can save not entered data but the processed data that possibly hav different data type.(i.e. "int" is saved as "string")
Sep 20, 2012 at 5:09 answer added 15dk51 timeline score: 1
Sep 20, 2012 at 5:04 comment added Yuseferi This is strange, drupal work by nid, if you be in edit page of node,any change updated the node ,not add another node
Sep 20, 2012 at 4:55 comment added DimG Yes, drupal should search for the node that have the same title and save its nid (target_id). Node's title shouldn't be saved.
Sep 20, 2012 at 4:38 comment added Yuseferi You means title not saved in databae?
Sep 19, 2012 at 21:28 history edited avpaderno CC BY-SA 3.0
edited title; removed thanks
Sep 19, 2012 at 21:12 history asked DimG CC BY-SA 3.0