Closed solker closed 9 years ago
@Katya-cap4dev @amitaibu @ckorakas So C4D content system and template system support only one file per Document type. But some imported Documents have none or many files.
Therefore if file doesn't exists in special Document then template will looking like that:
If document has some files therefore template display only first (and safe in system only first) file:
@solker @amitaibu Apologies but I'm not sure I understand the issue... can you please clarify?
@Katya-cap4dev @amitaibu @ckorakas
Well, some exported Documents from EUEI and EUWI have few files for one entity. For example: Document with title Application form from ARETEP
from EUEI have two files inside: SEDC_Performance_Indicator.doc
and SEDC_Cover_Letter.doc
.
Another example is Document with title Community Power – Using Mobile to Extend the Grid
from EUEI that have not files. Have only body
text.
Another example is when Document have only one file. (standard situation)
Result: As you can see node type Document exported from EUEI or EUWI can have zero, one or many files.
Now will look at C4D. If you will try add Document to group on C4D you can see that you have restriction only in one file! E.g. you can't select two files or tree for example. Also you can't not select file because File field is required
.
But i can avoid this restriction because i work directly with database instead of user interface. And as you can see from preview message you get this:
@Katya-cap4dev @amitaibu @ckorakas So C4D content system and template system support only one file per Document type. But some Documents have none or many files.
Therefore if a file doesn't exists (zero files) in Document then template will look like that:
If document has few files therefore template display only first (and system safe only first) file:
And my question is what we will do with these two situations (many and none files)?
About second solution you need speak with @amitaibu .
@solker "fixing" c4d is out of scope - and we won't change this, so for now just migrate a single file
Hi @solker , thanks for the clarification. I think we need to discuss this with @ckorakas and @adevanssay , but my take is that it's not feasible to "fix" C4D now, so we have to go for the first option, with the following considerations:
@Katya-cap4dev 1406 Documents in total. 129 Documents without files. 67 Documents have multiple files.
@Katya-cap4dev Second solution with zip files is good for me.
@solker At this point we won't zip - lets continue with getting the first doc. If time will permit we will try to zip.
@amitaibu what is your approach for documents with multiple attachments? How are you migrating those? Can we please reopen this issue (easier to follow up).
@Katya-cap4dev We are migrating the first document.
@amitaibu You mean the first one listed? What about the rest - are we going to drop them? @adevanssay @ckorakas
closing in favor of #163
Taking the issue of document items with 0 attachments to https://github.com/Gizra/euei-euwi-migrate/issues/178
Add support of many files separated by
|
to migration of the Documents.