GWcode CatMenu Support

Avatar for James

#1 By James @ July 23rd, 2012 15:14 (71 months ago)

First of all - great job with the plug-in! It expands EE's crappy categories by a long-shot.

Secondly, I need some assistance with a small issue. I need to use the plug-in in a different way as you show in your examples. Basically I need to remove the parent categories once the user clicks a category.

For example, if I have the following category set-up:

CAT 1
- CAT 1.1
—CAT 1.1.1
- CAT 1.2
—CAT 1.2.1
- CAT 1.3
—CAT 1.3.1

CAT 2
- CAT 2.1
—CAT 2.1.1
- CAT 2.2
—CAT 2.2.1
- CAT 2.3
—CAT 2.3.1

I need a way to display just the two first parent categories initially, then once the user selects CAT 1 or CAT 2, this redirects to a new page with the children categories in that category BUT without the original CAT 1 or CAT 2. The current system shows the children categories fine but I can't remove the parent categories for that chosen category.

Is this possible with this plug-in? I tried using your gwcode categories plug-in but couldn't find a way to do this with that either and I submitted a support email but had no response.

THIS IS MY CURRENT CODE:


{exp:gwcode_catmenu group_id="1" cat_url_title="{segment_4}" entry_count="yes" id="cat-filter" }
[url="{path="]
 {cat_image}
[/url]
<div class="prod-spacer"></div>
<div class="product-info">
 {cat_name}
 <span  margin:0 4px 0 4px;">+</span> View Category
</div>
{/exp:gwcode_catmenu}

Thanks,
James.

Avatar for Howie

#2 By Howie @ August 03rd, 2012 14:02 (71 months ago)

Hi,
I am looking at your global cat menu plugin and just cant get the sample code working eg if I embed the below in a template


{exp:gwcode_catmenu
group_id="1"
cat_url_title="{last_segment}"
id="demomenu"
status="open"
variable_prefix="gw:"
parse="inward"
}
[url="http://gwcode.com/catmenu-demo/example2/{complete_path'}" class="active"]
  {cat_name} ({gw:total_entry_count})
[/url]
{if gw:open AND gw:entry_count > 0}
  <!—
  the category is open and contains entries
  let's add them to the menu with exp:channel:entries
—>
  {exp:channel:entries
  channel="category_test"
  disable="member_data|pagination"
  dynamic="no"
  category="{gw:cat_id}"
  }
  {if count == 1}
  <ul>
  {/if}
  <li class="depth{gw:depth} entry"><span>{title}</span></li>
  {if count == total_results}
  </ul>
     
  {/if}
  {/exp:channel:entries}
{/if}
{/exp:gwcode_catmenu}

it just renders as

  cat1 ({gw:total_entry_count})
  cat2 ({gw:total_entry_count})
  cat3 ({gw:total_entry_count})


ie the above gw tags don't pull in any values or I cant display the entries related to the categories. I'm obviously doing something wrong. I added the gwcode cat menu plugin and it shows under plugins in EE. I'm using EE2.5.2. Do I need other plugins to get this working or have the category name in the url or anything?

The channel I am using is called category_test, the category group id is 1, and categories within are called cat1,cat2,cat3… for test puposes. I also have entries assigned to each but they don't show up with the above code.

Any ideas please?

Thanks!!!!

Submit your comment

Sorry, comments are closed for this page.