• Facebook
  • Twitter
  • Yahoo
  • Linkedin
  • Google
  • Live

Advanced Marketplace: Compatible with Pages app installed from phpFox Store

Updated: Oct 9, 2017

Issue: Unable to go to detail page of Pages app

Solution:

Please go and edit this file: PF.Base/module/advancedmarketplace/include/service/callback.class.php

Find the below codes:

public function getPageMenu($aPage)
    {
        
        if (!Pages_Service_Pages::instance()->hasPerm($aPage['page_id'], 'advancedmarketplace.can_access_advancedmarketplace')
        ) {
            return null;
        }
        $aMenus[] = [
            'phrase'  => _p('advancedmarketplace.advancedmarketplace'),
            'url'     => Pages_Service_Pages::instance()
                    ->getUrl($aPage['page_id'], $aPage['title'], $aPage['vanity_url']) . 'advancedmarketplace/',
            'icon'    => 'module/advancedmarketplace.png',
            'landing' => 'advancedmarketplace'
        ];
        return $aMenus;
    }

Change to:

public function getPageMenu($aPage)
    {        
        if (!phpFox::getService('pages')->hasPerm($aPage['page_id'], 'advancedmarketplace.can_access_advancedmarketplace')) 
        {
            return null;
        }

        $aMenus[] = [
            'phrase'  => _p('advancedmarketplace.advancedmarketplace'),
            'url'     => phpFox::getService('pages')->getUrl($aPage['page_id'], $aPage['title'], $aPage['vanity_url']) . 'advancedmarketplace/',
            'icon'    => 'module/advancedmarketplace.png',
            'landing' => 'advancedmarketplace'
        ];
        return $aMenus;
    }

2
  • October 9, 2017
  • 0 Comment(s)
Be the first person to like this