Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent #31

Open
nicboyde opened this issue Jan 13, 2012 · 2 comments
Open

Parent #31

nicboyde opened this issue Jan 13, 2012 · 2 comments

Comments

@nicboyde
Copy link

nicboyde commented Jan 13, 2012

Parent ID must be a resource already set to be a container, otherwise new resources created in parallel, not below.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Mark-H
Copy link
Member

Mark-H commented Jan 13, 2012

That shouldnt be a problem - the MODX side of the script should handle that
perfectly..

What version of MODX are you using?
Op 13 jan. 2012 07:15 schreef "Nic Boyde" <
[email protected]>
het volgende:

Parent ID must be a resource already set to be a container, otherwise new
resources created in parallel, not below.


Reply to this email directly or view it on GitHub:
#31

@nicboyde
Copy link
Author

In this instance, Revo 2.1.2.

I created a resource to be the target parent, and made it use the template I wished the future children to adopt, one with lots of custom TVs.

A test import of one record was created at the same level as the parent, and none of the TVs were picked up.

And the child had the default template, not the one I wanted.

I first changed the target parent to be a container and repeated the test. This time the new resource was in the right place, but still with the wrong template. I changed the new child resource to the correct template, but the TVs had not been populated.

I then changed the site's default template to the one I wished the new imported children to use, then everything went through smoothly. 220 records, each with 20 fields, one of which was a "tags" tv. 10 seconds. Good program!

I deleted each imported record and target parent and created new ones for each of the tests.

It is possible there are some non-standard system parameters in my configuration - I use the site concerned to test new ideas before trying them out on live sites, so it might well be full of rubbish. If you can't reproduce my finding, and it's important, let me know and I'll send you my set-up in full if you want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants