I realized that it sometimes is stored and sometimes not.
On the same install.
Strange.
I created a new page, switched to AdvancedContent, entered some values to the extra fields, saved and it worked.
But when editing the page it won't work anymore.
You cannot change the values anymore you once stored.
Seems like it keeps the old values somehow.
Must have something to do with the content object.
If you enter the edit area the old values will be loaded.
If you save the page the whole content object is submitted with all its (previously loaded) properties. Somehow the props are not replaced by the submited input values.
I believe it is just the order of filling the props.
I will do some tests and report again.
Edit:
5 min later
It really just seemd to be the order. I first filled the basic props and then filled the content type related stuff.
But when comparing to the code of the default content type it is done the other way. So i just swapped two lines of code and it seems to work
In file modules/AdvancedContent/contentype.Content2.php just swap the lines 177 and 178 from:
Code: Select all
parent::FillParams($params);
require(cms_join_path(dirname(__FILE__), 'inc', 'function.fillParams.inc.php'));
to
Code: Select all
require(cms_join_path(dirname(__FILE__), 'inc', 'function.fillParams.inc.php'));
parent::FillParams($params);
this should be all.