Share » Forums » Developer » Content IDs & migration

Content IDs & migration

Content IDs & migration

Friday 23 July 2010 1:27:56 am - 3 replies

Author Message

Ivo Lukac

Friday 23 July 2010 2:33:40 am

There is no way to transfer object ids nor node ids from one ez database to another.

That's why is bad practice to have hard coded ids in the templates. At least create special your.ini with those ids in it and then reference them with ezini operator in your templates. So when you migrate content you only need to change one ini file.

Cheers

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Kévin S.

Friday 23 July 2010 2:41:46 am

And could'nt I use remote_ids instead of node ans objets IDs ?

André R.

Friday 23 July 2010 4:50:01 am

Yes, this is the best thing, so you don't need to maintain id list on install.
As of 4.1 there should be fetch function support and override support to use remote_id, so you can safely use that (but do note that some bugs surrounding it was fixed in 4.2 and 4.3, especially #15639)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu