klox7 VIP
Total posts: 914
25 Окт 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

Последние изменения: 26 Окт 2015



Sergey
Total posts: 13,748
26 Окт 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 Окт 2015 14:49

Thanks.

Работает на Cobalt