Hi,
I had included all xml, that is generated by the klicking the export-tab.
including only:
<object name="portal_catalog" meta_type="CMF Catalog">
<column value="credits"/>
<column value="passmark"/>
</object>
just creates the new columns.
Lennart Regebro schrieb:
Joachim Schmitz wrote:
I added some metadata to my portal-catalog, klicked the export-tab the
catalog and put the result in my products profiles/default/catalog.xml
Now each time when I import my profile the catalog is "refreshed".
What happens during this refresh?
everything is reindexed, so the new columns now have values.
I exspected that to happen the first time, but not every time.
I looked at the code and I don't think it should happen at all. ;)
It might have something to do with the fact that you recreate all
indexes, metadata and vocabularies in your xml. To add some columns, you
only need to have those columns in your xml file.
Here is an example of a catalog.xml that adds an index:
<?xml version="1.0"?>
<object name="portal_catalog" meta_type="CMF Catalog">
<index name="MainAttendee" meta_type="FieldIndex">
<indexed_attr value="getMainAttendeeId"/>
</index>
</object>
--
Mit freundlichen Grüßen Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel