Re: 1 cset was pushed to modules/xarpages: TODOs for create/update pages to support...

[email protected] (mikespub)
Newsgroups gmane.comp.cms.xaraya.bk-notices
Organization not much
Message-ID <[email protected]>
In article <[email protected]>, "Jason Judge" <[email protected]> 
wrote:
>In reference to this:
>
>@TODO: specifying pid is not supported by xarpages createpage yet ! (cfr. DD
>migrate)
>
>Is there ever a circumstance where we need to create items with a
>pre-defined ID? Is that actually possible with all the databases we support?
>i.e. if page IDs are chosen when a page is being created, then do sequences
>etc. get updated if necessary? Just a general point really.
>

Typical example is for import scripts when you want to maintain the ids -
and yes, you need to update the sequence number after import for Postgres
(cfr. slashcode import scripts for instance).

Keeping the pid is also required when using the option to "Preserve IDs"
in the DD Migrate Items function - at least when you want to move
items from one module to another.

The other TODO (= in updatepage) is when you want to move items
from one itemtype to another within the same module (e.g. xarpages),
also supported by the DD Migrate Items function.

As you may have gathered, I'm setting up the required GUI and API
building blocks for migrating module items in DD - with the idea that
specific modules may also re-use those for dedicated migrations
between item types themselves if they want to. A next step is to split
off the module-specific code in the DD migrate API so that each module
can have its own migrate_from and migrate_to function (or whatever),
and re-use the common field mapping, hook data migration etc. features.

Mike.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.