FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 5 posts ] 
 
Author Message
 Post subject: Please give an example of zones settings for Catalog or Shop
 Post Posted: Sun Jun 05, 2011 6:28 pm 
Offline

Joined: Sun Oct 17, 2010 5:02 pm
Posts: 211
Please show how zones are setup for a plugin and how they can be accessed via a button.


About Errors after adding the required statement after adding a plugin.


Adding code for new plugin in theme you will receive error as shown below. - The errors should also tell the user that there may need to be a zone created for the plugin.

The code:
Code:
<?php
require_once (BASE_DIR.PLUGIN_DIR.'catalog/zone/module.php');
$categories = new \Modules\catalog\zone\Module();
echo $categories->generateSubmenu('catalog');
?>


----------------------------
The tutorials at the Doc site mentions nothing about installing downloadable plugins - nor about modifying the zones. I am lost on the zone settings.



Caps


Top 
 Profile  
 
 Post subject: Re: Please give an example of zones settings for Catalog or Shop
 Post Posted: Mon Jun 06, 2011 5:04 am 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
In catalog plugin readme is mentioned, that you need to create a zone:

4. Create zone with key: "catalog", associated module group: "catalog" and associated module: "zone"


You also have not pasted any error. So the problem is that you struggle with some error or just want to improve readme?


Top 
 Profile  
 
 Post subject: Re: Please give an example of zones settings for Catalog or Shop
 Post Posted: Mon Aug 01, 2011 8:07 am 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
Hello,

I add the catalog in Developer - Zones for :
Catalog catalog main.php zone content_management

Paste the php code in main.php but always got the error:

WARNING require_once(ip_plugins/zone/content_management/zone.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
in /home/gm/public_html/ip_cms/frontend/site.php on line 302 Error emails count has reached the limit. See logs for more errors.

I'm not sure where to paste the php block, try two places (below), then I give up.

After that I can no more see my menu in Menu Management, I see ENG folder and the mouse cursor turns undefinitely. Clearing cache, reload, etc no more menus.

On the real website, everything seems ok, all menus and contents.

Thanks a lot!

Code:
HERE-1ST

  <div class="leftCol">
    <div class="box leftMenu">
<?php
      require_once (BASE_DIR.LIBRARY_DIR.'php/menu/common.php');
      $menuLeft = new Library\Php\Menu\Common();
      echo $menuLeft->generateSubmenu('left', null, 2);  //$zoneName, $parentElementId, $depthLimit
?>

HERE-2ND

    </div>
    <div class="box newsletter">


Top 
 Profile  
 
 Post subject: Re: Please give an example of zones settings for Catalog or Shop
 Post Posted: Mon Aug 01, 2011 8:23 am 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
After I create a new language FR hoping to solve the problem...
The menus do not appear in Menu Mgt

On the real site, clicking on FR produces this error:

WARNING require_once(ip_plugins/zone/content_management/zone.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
in /home/zz/public_html/ip_cms/frontend/site.php on line 302

Fatal error: require_once() [function.require]: Failed opening required 'ip_plugins/zone/content_management/zone.php' (include_path='.:/opt/php53/lib/php') in /home/zzzzz/public_html/ip_cms/frontend/site.php on line 302

The DB, integrity is ok according to Hostgator/Cpanel tool.
The table seems to contain valid data, no strange chars...

I check the structure, all childs-parents links are ok.
The only unusual things I saw is in one record, in the field -html- contains
<dynamic_module/>
That's all.
The other -html- fields are Null, Empty of with long html code.

Adding a new page, works correctly, it appears on the site, but the menu mgr still blocked, cursor spinning.


Last edited by Stf on Sat Dec 31, 2011 6:09 am, edited 2 times in total.

Top 
 Profile  
 
 Post subject: Re: Please give an example of zones settings for Catalog or Shop
 Post Posted: Mon Aug 01, 2011 1:49 pm 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
I find my mistake when I create the new zone

was set to Zone instead of standard...

associated module group - use standard.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 5 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron