Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8749183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:39:07+00:00 2026-06-13T12:39:07+00:00

I have a Structure-based site with category listing pages. For example: http://www.mysite.com/products/category/tools/hammers . Naturally,

  • 0

I have a Structure-based site with category listing pages. For example: http://www.mysite.com/products/category/tools/hammers. Naturally, I’m using Zoo Triggers to output the entry listing.

My problem is that each category listing page needs unique SEO meta data, so I set up custom fields for Title, Keywords, and Description. Unfortunately, Zoo Triggers doesn’t have variables for custom category fields, and the {exp:channel:category_heading} tag won’t work on Zoo Triggers URLs.

I thought I could use the magical GWCode Categories plugin, but I can’t figure out how to display data for the current category only.

Does anyone have any suggestions on how I can make this happen? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:39:07+00:00Added an answer on June 13, 2026 at 12:39 pm

    This probably calls for a custom query. As EE stores its core and custom category data in separate tables this is a bit unwieldy for the native query module, so I’d be inclined to use Rob Sanchez’s ActiveRecord plugin. I haven’t tested this extensively but the following snippet should be in the ballpark:

    {exp:activerecord
        select="d.field_id_1 as seo_field_one, d.field_id_2 as seo_field_two"
        from="category_field_data as d"
        join="categories as c"
        on="c.cat_id = d.cat_id"
        where[a]="c.cat_url_title = '{triggers:last_segment}'"
        where[b]="c.group_id = '1'"
    }
        <p>Field one: {seo_field_one}</p>
        <p>Field two: {seo_field_two}</p>
    {/exp:activerecord}
    

    If you’re not particularly familiar with CodeIgniter’s Active Record class, this is doing the following:

    • Selecting your custom category fields based on their column names, e.g. field_id_1, and creating aliases for use within your template, e.g. {seo_field_one}.
    • Creating a join between the categories and category_field_data tables so that we can retrieve data in the field_data table based on values in the categories table.
    • Restricting the results set to categories whose URL title matches the last URL segment and who belong to category group 1.

    In order to implement this in your template you’d need to adjust the select statement so that it’s retrieving data from the right columns and tweak the group_id to match up with your category group. I’m assuming that you want to retrieve data for the last URL segment but you can easily adjust that too if need be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no clue how i can get an existing object structure based on
I have folder structure and I would like to create JSON objects based on
I have a complex input form within a PHP based web application. To structure
The recommended approach for passing lists of values as a QueryString is www.site.com/search?value=1&value=2&value=3&value=4 ASP.NET
There is an existing site h*tp://www.oldsite.com/ which I need to redirect to the new
I'm building a site using mvc2 and have a structure like follows: Factory ->
I have many pages on a site im developing, in which each page has
I'm trying to hard code a redirect on my site from a category based
This question is based on the thread . If we have one-to-many data structure,
So I have an umbraco site with a number of products in it that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.