• Modified Header and Footer

    By Kari Vainio 2 decades ago

    Corporates have often a demand to have standard header and footer on web applications. Like we have to have corporate logo, document's confidentiality, application name etc on header and on footer we have to have links to legal statements about site terms and privacy.



    I noticed that there are requests for header to be modifiable.



    I did some experiments on this and it's fairly simple thing to add basic functionality for those. Add required html code into 'config' form for Header and Footer and then compute that into related subforms.



    Changes made for these elements:

    • Form 'Config' - added 2 fields, Header and Footer. Plain editable fields.
    • View 'config' - added 6th colum to have 'header+"^"+footer'
    • Subform 'CommonFields' - added 3 fields,
    • 'HeaderFooter' to do a dbcolumn to that 6th column.
    • 'Header' to take the first word from HeaderFooter
    • 'Footer' to take the second.
    • Added hiding formula for existing anchor, to hide it if 'Header' is not empty
    • Added a computed value to show 'Header', if it is not empty
    • Subform 'FormFooter' - added a computed value to show 'Footer', if it is not empty



      So, if no need for modifed header and/or footer, DW works as earlier. If corporate header and/or footer are defined on config, those appear on wikipages.



      Kari