Add Custom Fields to Page table

Discussion in 'aMember Pro v.4' started by alain_sa1, Oct 12, 2012.

  1. alain_sa1

    alain_sa1 New Member

    Joined:
    Aug 29, 2006
    Messages:
    3
    Hi,

    Is it possible to add custom fields to the page table?

    I have tried this in site.php but it does not work:
    PHP:
    Am_Di::getInstance()->pageTable->customFields()->add(
                new 
    Am_CustomFieldText(
                
    'page_name',
                
    "Page Name URL link",
                
    "Name to be use in URL.\n".
                
    "This should be SEO friendly."
                
    ,array()
                ));
    Using V4.2.11

    Thank you
    Alain

Share This Page