Hello Friends,

I want to implement my custom feed mapper to create books using feed api mapper module ( http://drupal.org/project/feedapi_mapper ).

While creating mapper ( http://developmentseed.org/blog/2008/jan/24/build-your-own-mapper-feed-e... ) to map bid,plid,mlid, weight and depth i realised that we can not use fields bid, plid and mlid for mapping because these fields are dynamic ( like nid, we can not map nid field).
Since mlid is nothing but menu link Id and plid is parent link id , these fields are created while creating node and these ( mild and plid ) do not required for mapping since it will create automatically if we specify bid (ie book id).

Problem is that, bid ( bid is nothing but nid for book node) will not be same on both site...please anyone can suggest me how to do this.

Comments

Rajan M’s picture

Have any idea?

dtrdewaele’s picture

Need just the same :)
Busy with development of something, but don't know if it will be a succes.

Rajan M’s picture

Hi,
I am ready to develop it.
But just one think I am not getting that is, for importing book pages I need bid ( $node->book[bid] ) , since bid is nothing but node id of first book page, so first node within book pages is noting but a book with bid is self node id (ie $node->book[bid] = $node->nid ).
Node ids will not be same on other site , so how do I manage this?
Please let me know if you have any idea or suggestion.

Thanks,
Raj

dtrdewaele’s picture

While importing the book structure you could use a matching array between parent-nids and child-nids.
In that way you could rebuild the structure array on the child site.

What do you think?