Page 1 of 1

Is it possible to customize the News module backend view??

Posted: Wed Sep 04, 2019 11:25 am
by Sendlingur
Hi all
I've few categories in my news module. Each is for different types of article.

Some categories uses a lot of custom fields for images, addon text, etc.
but articles in other categories are not using the custom fields.

So my question is: Is it possible to customize the Backend vies of the News Module to show/hide custom fields depending on which category is selected???
For example: If the editor is writing a article in category A, he needs to be able to upload images to custom field 1,2,3,4,5,6,7.
But when he is writing in Category B, He only needs custom field 1, and 4. So all other custom fields should be not be displayed while he is writing for category B.
I don't find anything in the docs, google or stack overflow on this?

is this possible?

Re: Is it possible to customize the News module backend view

Posted: Wed Sep 04, 2019 11:34 am
by Rolf
You can change admin templates and layout without hacking file using these tutorials:
https://docs.cmsmadesimple.org/customiz ... -templates
https://cmscanbesimple.org/blog/customi ... king-files

Re: Is it possible to customize the News module backend view

Posted: Wed Sep 04, 2019 1:11 pm
by Sendlingur
thank you so much Rolf I'll check those tuts out.

Re: Is it possible to customize the News module backend view

Posted: Fri Sep 06, 2019 9:46 am
by velden
Note that you probably have to fix this by using javascript.

And let me give you one advice: mention somewhere in the template, with fat red text, that it's a custom template. One day you will upgrade the News module (although something different is coming with the next major version of CMSMS) and you will spend a day troubleshooting why something is broken, just to find out it's caused by your custom template which is overriding the admin template that comes with the upgraded module.