• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Is it possible to customize the News module backend view??
PostPosted: Wed Sep 04, 2019 11:25 am 
Offline
Forum Members
Forum Members

Joined: Wed Aug 08, 2018 4:59 pm
Posts: 56
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???

\$1:
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?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Is it possible to customize the News module backend view
PostPosted: Wed Sep 04, 2019 11:34 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7715
Location: The Netherlands
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

_________________
$1

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Is it possible to customize the News module backend view
PostPosted: Wed Sep 04, 2019 1:11 pm 
Offline
Forum Members
Forum Members

Joined: Wed Aug 08, 2018 4:59 pm
Posts: 56
thank you so much Rolf I'll check those tuts out.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Is it possible to customize the News module backend view
PostPosted: Fri Sep 06, 2019 9:46 am 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3178
Location: The Netherlands
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting