I wondering if there’s an issue with having several category groups all containg a category custom fields that have the same name. I’m working on a bilingual (English/French) site, and for every category, I need to have the category name in French, so I use the custom field name “category_name_fr”. I do this in 4 separate category groups.
The problem is that I can’t seem to display the french name using the weblog:categories tag, which according to the docs, I should be able to display custom fields:
{exp:weblog:categories weblog="contacts" category_group="4"}
<option value="{category_id}">{if lang=="en"}{category_name}{/if}{if lang=="fr"}{category_name_fr}{/if}</option>
{/exp:weblog:categories}This code shows a list of provinces, but in French, it actaully creates the dropdown which I can select from, the text is blank. My hunch is that this is a naming conflict, but I’d really prefer to keep the variable names consistent so that I can loop through several category groups in my templates and always know that the field is going to be “category_name_fr”, regardless of the group or weblog. Does that make any sense?
Thanks for your time!