This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
deroccha
I have couple of form relations in one of my model and I would like to organize theme in Tabs because is getting messy the form layout. Is there a way to push form relations in tabs?
Last updated
RomaldyMinaya
Hi, @deroccha
I resolve that today and i'd love to share it with you.
- In your controller's folder create a partial file Eg: _relation.htm and paste the code above.
<?= $this->relationRender('relation-name') ?>
- In your model add a field with the type partial and the path referring to it.
tabs: fields: test: tab: test type: partial path: @/plugins/vender/plugin/controllers/controler-name/_relation.htm
Example Image Hope it helps :)
Last updated
1-4 of 4