klox7 VIP
Total posts: 914
25 Oct 2015 16:52

Hi,

I'm using Cobalt with Cobalt types as comments. In Cobalt types as comments I custom added another comments (for replies). So I have "comments" and "replies".

Now I would like to show "comment" in "replies" form with modifiying one of the input fields (textarea). Can I get parent fields (comment fields) in this reply form with API?

Regards

Last Modified: 26 Oct 2015



Sergey
Total posts: 13,748
26 Oct 2015 09:02

OK. In form template you can get parent.

$parent_id = JFactory::getApplication()->input->get('parent_id');
echo CobaltApi::renderField($parent_id, 12, 'full');

Where 12 is ID of the field and 'full' is how to show field as in article list template or in article full view.


klox7 VIP
Total posts: 914
26 Oct 2015 14:49

Thanks.

Powered by Cobalt