custom tab content

Discussion in 'Templates customization' started by csongor_simsay, Dec 22, 2013.

  1. csongor_simsay

    csongor_simsay New Member

    Joined:
    Dec 10, 2013
    Messages:
    26
    Hi everyone,

    Does anyone have experience on how to put html content under a new tab in the member area?
    My goal is to embed any object (flash, images) and text under my custom tab.
    Is this possible?
    Thanks in advance.

    I was able to add successfully the tab with this:

    class MyPageController extends Am_Controller
    {
    function indexAction()
    {
    $user = $this->getDi()->user;
    $this->view->title = "My Page";
    $this->view->content = "Page content";
    $this->view->display('layout.phtml');
    }
    }
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
  3. csongor_simsay

    csongor_simsay New Member

    Joined:
    Dec 10, 2013
    Messages:
    26
    Hi Caesar,
    Thanks for that!
    I'm able to do this part easily. My problem is how to put real html content on this page which will be shown when I press MyTab. I want to put the content(with object and texts) on this member area and not just assign a URL to the tab.
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You can create new page at admin interface at aMember CP -> Protect Content -> Pages and then add url of this page to tabs. You can insert any html content in page settings. This page will be shown in aMember layout.
  5. csongor_simsay

    csongor_simsay New Member

    Joined:
    Dec 10, 2013
    Messages:
    26

Share This Page