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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Sendlingur
Forum Members
Forum Members
Posts: 62
Joined: Wed Aug 08, 2018 4:59 pm

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

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Sendlingur
Forum Members
Forum Members
Posts: 62
Joined: Wed Aug 08, 2018 4:59 pm

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

Post by Sendlingur »

thank you so much Rolf I'll check those tuts out.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

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

Post 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.
Post Reply

Return to “CMSMS Core”