Hello,
I have module created with CTModuleMaker. Child can have multiple parents ("sharechild" is set). How can I get parents of the child in detail view? Found function get_parents in MODULENAME.getparents.php, but seems it haven't been used anywhere. Have any ideas?
Thank you.
CTLModuleMaker get parents
Re: CTLModuleMaker get parents
anybody?
Re: CTLModuleMaker get parents
Sorry for having no good news.
I have a great deal of experience with CTLMMs modules and have around 12 of them up and running fine, but when it comes to "share children option" I keep quiet, because I don't use it. Suddenly a lot of things stop working as expected!
Sorry.
I have a great deal of experience with CTLMMs modules and have around 12 of them up and running fine, but when it comes to "share children option" I keep quiet, because I don't use it. Suddenly a lot of things stop working as expected!
Sorry.
Re: CTLModuleMaker get parents
Bad news is better than no info at all, so thank you.. In my case using "share children" is neccesary and also DB is already filled with products and everything works fine exept that I can not get parents.klenkes wrote: Sorry for having no good news.
I have a great deal of experience with CTLMMs modules and have around 12 of them up and running fine, but when it comes to "share children option" I keep quiet, because I don't use it. Suddenly a lot of things stop working as expected!
Sorry.
I found that parent id's could be retrieved from MODULENAME_PARENT_has_CHIRDREN table. Maybe somebody already had written such script?
Re: CTLModuleMaker get parents
what version are you running?pticka wrote:Bad news is better than no info at all, so thank you.. In my case using "share children" is neccesary and also DB is already filled with products and everything works fine exept that I can not get parents.klenkes wrote: Sorry for having no good news.
I have a great deal of experience with CTLMMs modules and have around 12 of them up and running fine, but when it comes to "share children option" I keep quiet, because I don't use it. Suddenly a lot of things stop working as expected!
Sorry.
I found that parent id's could be retrieved from MODULENAME_PARENT_has_CHIRDREN table. Maybe somebody already had written such script?
are you referring to :
{$item->parent_object->parent_object->variable } if so I posted on the ctlmodulemaker devsite summary about issue with "getting parents" I actually went back a few versions in order to get it to work (1.7 I think)