Templates (content ?)

Discussion in 'aMember Pro v.4' started by booforum, Jan 29, 2013.

  1. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    I'd like to edit the "Main Page" of the "Member" area. Specifically I would to edit the "Downloads/Subscriptions" area to include the product description along with the title.

    I don't see how to edit this with the templates. In the HELP it just says:
    <?php echo $content ?> most important - displays aMember inner page content

    But where do you edit how this $content is display and adjust WHAT it displays?

    Thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    if you want to edit active resources block you should change /amember/application/default/views/blocks/member-main-subscriptions.phtml template.
  3. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    Got it...It's actually the "member-main-resources.phtml" template that I wanted.
    How do I add the product description along with the resource link though?
  4. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    Alex,

    How do I add the product description along with the resource link though?
  5. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    Alex,

    How do I add the product description along with the resource link though?
  6. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    Alex,

    How do I add the product description along with the resource link though?
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Unfortunately this can't be done, this info is not available from this block.
  8. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    Why would you guys remove this capability from v3??!?

    Also...In "Protect Content > Files" (then select a file), why would there be a
    *
    Description
    if field even if there's nowhere to put to content for display???
  9. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    It wasn't removed. There are two separate blocks, one show products which user have another show Resources.
    If you don't like this, just remove one block and hardcode info which should be seen by user in another block.
    From template you can access user object and will be able to check what products user have purchased.
    PHP:
    $user Am_Di::getInstance()->auth->getUser();

  10. booforum

    booforum Member

    Joined:
    May 20, 2005
    Messages:
    186
    Again...What I'm trying to show is the file description (it currently only shows the title). But I don't know what info I hardcode into there. Nor is there any resource in your HELP that explains this.
  11. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    So you what to show resource description and not product description?
    If so you can use this code:
    PHP:
    echo $r->desc

Share This Page