How can I rearrange blocks on member page?

Discussion in 'Templates customization' started by thehomeschoolmom, May 30, 2013.

Thread Status:
Not open for further replies.
  1. thehomeschoolmom

    thehomeschoolmom aMember Pro Customer

    Joined:
    Jun 28, 2007
    Messages:
    11
    I know how to edit what shows inside the blocks, but I would like to rearrange the blocks on the page. I tried copying main.phtml to my theme folder and while it lets me delete information, I haven't been successful in rearranging the blocks.

    As I last resort I could swap out the contents of the different blocks, but since they are named for what they contain that is not a great idea. Surely there is an easy way to change the layout of the blocks that doesn't involve undermining the naming system.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Current version doesn't support this. You need to modify core files.
    In upcoming 4.2.18 this code will work:
    PHP:
    Am_Di::getInstance()->blocks->getBlock('member-main-unsubscribe')->setOrder(999);
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    API was updated a bit in recent version. So in recent version please use this code instead:

    PHP:
    Am_Di::getInstance()->blocks->setOrder('member-main-unsubscribe'999);
Thread Status:
Not open for further replies.

Share This Page