Anyone add text to the detail view and edit view? What I’d like to accomplish is:
TITLE
field
field
TITLE
field
field
…
I get you can you tabs and sections, but I’d like to break up a tab with titled groups of fields.
Anyone add text to the detail view and edit view? What I’d like to accomplish is:
TITLE
field
field
TITLE
field
field
…
I get you can you tabs and sections, but I’d like to break up a tab with titled groups of fields.
I found the easiest is creating a non-db field in the vardefs with it’s own label and inserting it into the detailview/editview defs.
It isn’t anything fancy, but the idea above could be expanded upon to make it more visually pleasing.
Nice! That’s kind of what I was thinking. So would you just leave the 'fields", “indices”, 'relationships arrays empty in the vardef?
Yeah, I declared only the attributes I needed.
created a file in custom/Extension/modules/whatevermodule/Vardefs/anythingIwant.php
$dictionary['Account']['fields']['field_separator_1'] = array(
'required' => false,
'source' => 'non-db',
'name' => 'field_separator_1',
'vname' => 'LBL_FIELD_SEPARATOR_1',
'type' => 'varchar',
'len' => '255',
'size' => '20',
'studio' => 'visible',
);
Along with the language file in
custom/Extension/modules/wahetevermodule/Language/en_us.whateverIwant.php
<?php
$mod_strings['LBL_FIELD_SEPARATOR_1'] = 'MY CUSTOM TITLE';
?>
Repair & Rebuild, and add this new “field” to the Module’s Detail and Edit viewdefs.