We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Issues with dynamic="no"

Development and Programming

kohnt01's avatar
kohnt01
11 posts
12 years ago
kohnt01's avatar kohnt01

I’ve got a channel entries page where I would like to have a related articles module of sorts at the bottom of it. I was thinking of doing something like this:

{exp:channel:entries orderby="date" channel="videos" search:full_game_title="{last_segment}" limit="3"}

So it would only show the videos which are related to the last_segment of the page URL the user is on, if that makes sense?

My only issue is that it’s not showing any results if I have dynamic=”yes” on (I assume that’s because it would only return the one result pertaining to the page) but if I have dynamic=”no” it obviously can’t use the last_segment of the URL.

Any ideas?

       
Bransin's avatar
Bransin
157 posts
12 years ago
Bransin's avatar Bransin

What fieldtype are you using to create the relationship?

       
kohnt01's avatar
kohnt01
11 posts
12 years ago
kohnt01's avatar kohnt01
What fieldtype are you using to create the relationship?

Just a normal text-field. I haven’t ironed it out yet but for it would equally work if I were to use the title fields, with the plan being to search the titles of one channel to produce 3 related entries to the one the user is on.

Can you only use one dynamic channel:entries on each page?

       
Boyink!'s avatar
Boyink!
5,011 posts
12 years ago
Boyink!'s avatar Boyink!

Why not just use a relationship field? It’s what they were designed for.

       
kohnt01's avatar
kohnt01
11 posts
12 years ago
kohnt01's avatar kohnt01
Why not just use a relationship field? It’s what they were designed for.

Took on your advice (sort of) but did it with Playa instead.

Thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.