0

Let's say I have the following page.

www.mysite.com/about/video/

I have the following links on it.

www.mysite.com/about/video/examples

www.mysite.com/about/video/tutorials

I also have a channel where the user can add a category of either examples or tutorials as the category name which is matched to the URL. Is there a way to display a list of entries that match the third segment of the url string to a category assigned?

2 Answers 2

1

You can use the extension Low Seg2Cat and then write channel entry tag like:

{exp:channel:entries channel="CHANNEL_NAME" category="{last_segment_category_id}"}
#####
#####
#####
{/exp:channel:entries}
1

Are your URLs set in stone? EE can return entries based on category natively/dynamically - but it has to be a proper EE category URL: mysite.com/about/video/category/examples. A standard channel:entries tag at that URL would return entries in that category with no addons or special code needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.