# Custom Content Apps

todo

# Briefing AE

# Configuration

# Prescribing information

Define prescribing information link, label, visibility and sort it using configuration object. Please make sure you are using same id for pi like in template options.

<?php

// CLIENT_CONFIG/config/app_configurations.php

return [
    'prescribingInformations' => [
        [
            'id' => 'trajenta',
            'link' => 'View <a href=\'https:\/\/www.rmh-media.com\/pi\/trajenta.pdf\' target=\'_blank\'>Prescribing Information<\/a> for Trajenta (Trajenta<sup>®<\/sup>)',
            'sort' => 2,
            'label' => 'Trajenta',
            'enabled' => true
        ],
        [
            'id' => 'jardiance',
            'link' => 'View <a href=\'https:\/\/www.rmh-media.com\/pi\/jardiance.pdf\' target=\'_blank\'>Prescribing Information<\/a> for Jardiance (Jardiance<sup>®<\/sup>)',
            'sort' => 1,
            'label' => 'Jardiance',
            'enabled' => true
        ]
    ]
];

You can also change positioning of PI using configuration object (bottom, top)

<?php

// CLIENT_CONFIG/config/app_configurations.php

return [
    'prescribingInformationsPosition' => 'top'
];

Bottom will place PI's at near bottom after the footer content (like usual), and top will place it at the top immediately after the preheader content.

And you can also define a header text for the PI's. It is placed above the PI's and is also dependent on the position of Pi's.

<?php

// CLIENT_CONFIG/config/app_configurations.php

return [
    'prescribingInformationsHeaderText' => 'Prescribing information header text'
];

# Briefing PPTX

# Configuring menu navigation icons

If you are not satisfied with the current icons for the menu navigation, or your client wants to use their own icons, good news is that you can define menu navigation icons using App Configuration.

Icons should be defined using svgs option in key => value format, where key represents icon name, and value icon itself in SVG format.

So lets jump in to it with this simple example:

<?php

// CLIENT_CONFIG/config/app_configurations.php

return [
    'menu_navigation_icons_config' => [
        'label' => 'Menu navigation icons configuration',
        'filter' => [],
        'statics' => [],
        'defaults' => [],
        'configuration' => [
            'icons' => [
                'svgs' => [
                    'home' => '<svg width="20" height="20"><circle cx="10" cy="10" r="5" fill="red" /></svg>',
                    'summary' => '<svg width="20" height="20"><circle cx="10" cy="10" r="5" fill="green" /></svg>',
                    'sendMail' => '<svg width="20" height="20"><circle cx="10" cy="10" r="5" fill="blue" /></svg>'
                ]
            ]
        ]
    ]
];

DANGER

Please ensure that you are using correct names for required icons. Otherwise, you will have icon duplicates.

If you don't define custom icon, the default one will be used.

List of default menu navigation icons:

Name Icon
home home icon
flowmap flowmap icon
extra extra icon
prescribingInformation prescribingInformation icon
summary summary icon
switch switch icon
references references icon
footnotes footnotes icon
studyDesign studyDesign icon
sendMail sendMail icon
back back icon

You can adjust icon size and icon spacing using size and spacing option, also there is option to adjust icon label font styles fontStyle. If you need to sort icons you can use list option for that.

All of these options can be defined for top and bottom menu accordingly.

<?php

// CLIENT_CONFIG/config/app_configurations.php

return [
    'menu_navigation_icons_config' => [
        'label' => 'Menu navigation icons configuration',
        'filter' => [],
        'statics' => [],
        'defaults' => [],
        'configuration' => [
            'icons' => [
                'top' => [
                    'size' => '2.5%',
                    'spacing' => [
                        'top' => '15px',
                        'right' => '5%',
                        'bottom' => 0
                    ],
                    'fontStyle' => [
                        'font-size' => '2%'
                    ],
                    'list' => [
                        'home',
                        'flowmap',
                        'extra',
                        'references',
                        'studyDesign',
                        'summary'
                    ]
                ],
                // 'bottom' => [...]
            ]
        ]
    ]
];