lifeisfoo
lifeisfoo

Reputation: 16294

Grails 3 fields plugin custom templates

Is it possible to customize grails-plugin-fields templates to override default f:table and f:all templates?

I've tried placing a custom _table.gsp file inside my application grails-app/views/templates/_fields/ and src/main/templates/_fields/ but it doesn't works.

From the plugin source code seems that this is the right place to create this file.

Upvotes: 1

Views: 1324

Answers (1)

Iqbal Djulfri
Iqbal Djulfri

Reputation: 708

I had the same problem with you. I worked it out by placing _table.gsp in /grails-app/views/templates/_fields/. I tried to place it in /src/templates/_fields/ but didn't work. Here's the proof.

enter image description here

I'm using grails 3.0.7 and testing this by using grails run-app command, by the way.

Cheers!

Upvotes: 2

Related Questions