Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: gwcode categories/menu not working

Status Resolved
Add-on / Version Publisher 1.4.0
Severity Critical
EE Version 2.8.1

SAM

Jun 24, 2014

Hi,
Not that i was able to make this work => {exp:publisher:translate_category cat_id="1" return="cat_name"}
It seems that it doesn’t fitch the {cat_id} from the gwcode

This is my code simplified :

{exp:gwcode_categories channel="a_la_carte"  }
 {cat_name}
 ( {cat_id}: {exp:publisher:translate_category cat_id="{cat_id}" return="cat_name"} ) 
{/exp:gwcode_categories}

where cat_id works outside of the publisher:translate_category tag it doesn’t work anymore once inside it.

Is there a way a could make this work?
I have rather complex setup with gwcode_categories and gcode_menu i don’t want to use standaard categories or ill have a lot of conditionals in my template!

Help please?

#1

BoldMinded (Brian)

If you have a rather complex setup with categories, try to simplify it. Put ONLY that gwcode_categories tag in your template nothing else (no entries tags, header footer or anything). Also, did you try adding parse=”inward” to the gwcode_categories tag?

#2

SAM

Hi i have done that still nothing the only code in my template is this now:

{exp:gwcode_categories channel="my_Channel"  parse=“inward” }
     ( {cat_id} : {exp:publisher:translate_category cat_id="{cat_id}" return="cat_name" } ) 
{/exp:gwcode_categories}
#3

BoldMinded (Brian)

Sam, I just used this exact code in my environment and it shows the category name. Since I can’t replicate this locally and since it involves another 3rd party add-on, I can’t look into this any further until you re-create this in a new EE installation that has only Publisher, and GW Categories installed. This is either an add-on conflict with something in your environment, or an implementation issue. You’ll also need to provide FTP and CP access to the new environment that I can debug it in.

Double check your environment, make sure the categories have translations.

https://www.evernote.com/shard/s9/sh/37440d25-f56b-4435-8ab9-53c0ced1fa10/b5f06c9cb33c0aa10680cbd114c8f00a

{exp:gwcode_categories channel="pages" parse="inward"}
 {cat_name}
 ( {cat_id}: {exp:publisher:translate_category cat_id="{cat_id}" return="cat_name"} ) 
{/exp:gwcode_categories}

Login to reply