Change parent with sql tool

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Change parent with sql tool

Post by baresi »

I am looking at changing parents of a bunch of pages and trying not to use listcontent. I logged in to the database with a tool (heidisql) and I guess the main thing is to change parent_id, but what should be done with hierarchy, id_hierarchy and item_order (and any other fields)? Will appreciate any help :)
alby

Re: Change parent with sql tool

Post by alby »

baresi wrote: I am looking at changing parents of a bunch of pages and trying not to use listcontent. I logged in to the database with a tool (heidisql) and I guess the main thing is to change parent_id, but what should be done with hierarchy, id_hierarchy and item_order (and any other fields)? Will appreciate any help :)
It's not simple!!!
You must modify:
parent_id
item_order
hierarchy ("hierarchy of parent_id"."0000""item_order") [last item must be 5 numbers]
id_hierarchy ("id of parent_id"."id of content_id")
hierarchy_path ("hierarchy_path of parent_id"/"content_alias")

Alby
Post Reply

Return to “CMSMS Core”