Menu

#1319 Edit the fileds

open
nobody
None
1
2017-09-16
2017-09-15
No

Hi,
I want to edit the following fields. Please find the attached screens. Which are the files need to be altered in order to change the below fields.
1: Areas

2: Want to remove the Full Descritpion and change area

2 Attachments

Discussion

  • Campbell Morrison

    (1) What changes do you want to make to the Areas field? Do you know that you can change it from a list to a <select> element by setting

    $area_list_format = "select";
    

    in your config file?

    Or if you just want to change the word "Areas" to something else then you can use $vocab_override setting, eg

    $vocab_override['en']['areas'] = "Whatever you want";
    

    If you want to make more far-reaching changes then you'll have to edit the MRBS code, in particular the function make_area_select_html() in functions.inc.

    (2) Again, what change do you want to make to the area field? If you just want to chane the text in the label set

    $vocab_override['en']['area'] = "Whatever you want";
    

    If you want to remove the Full Description field then you'll need to make quite a few changes to the MRBS code. The easiest thing to do is to create a custom CSS file that gives all the places where it appears a property of display: none. You may also need to modify edit_entry_handler.php so that it sets the full description to ''. However you are probably best off just living with it: the more changes you make to the MRBS code, the more difficult it is to upgrade when new releases of MRBS are issued.

     

    Last edit: Campbell Morrison 2017-09-15
    • Ramana Reddy

      Ramana Reddy - 2017-09-16

      Hi Campbell.

      Yes , I want to edit the field name. Thanks for the update.

      May I know when will the next update release?

      Thanks In Advance,
      Ramana

       

      Last edit: Campbell Morrison 2017-09-16
  • Campbell Morrison

    There is no date set yet for the next release. However, you can always get the latest code here.

     
MongoDB Logo MongoDB