I would like to leverage the members section to create unique pages for a ‘member’ and display their photo and special field data. So a visitor can select a member from the list, and view their info, photo, etc.
The ‘member’ can set their info using the member profile panel.
It’s going to be used as a ‘Featured Partners’ section on the website that has a product catalog in the products channel, and when the visitor is viewing the products, I want to display that selected ‘member’ info in the header.
How to I query the members in a channel:entries block to list them?
Thanks in advance for not flaming this post.
Hi,
There’s a few different ways you could do this… Without knowing all of the details of the setup, the following are a few options that might be worth considering.
If the entry in the products channel has the author set to the partner you want to display, you could pass the {author_id} variable into the author_id=”{author_id}” parameter on a channel entries loop.
If the authors are not the same, you could use a relationship filed to relate the partner(s) you would like to highlight
You could give your “Featured Partners” a different status and use the status=”” parameter on the channel entries list to output them (or one of them)
Would any of these do the trick for you?
Thanks,
-Tom Jaeger
I’ve created a channel named “partners” and can display the list of partners in the template, with a link that displays a single partners fields in a nice display.
http;//dev-site/partners/
Then clicking on a link, it takes you to
http://dev-site/partners/414
This is the same template, which checks for {segment_2} and loads just that partners info instead of all partners rows.
Now, below this I am trying to list products using {exp:channel:entries channel="products" limit="10"} but no records display.
On the page where your looking to show 10 products.. Are they 10 products specific to that partner? Or just any 10?
Right off the bat, my gut is that you need to add dynamic="no"
On the channel entries loop your looking to show 10 products on.
The products are not specific to any partner. Basically, I want to use the partner’s info for a branding in the header, so the selected partner’s info stays in the header when browsing products.
I’m considering storing the partner entry_id in a cookie, so the visitor will always see that partner data in the header as they navigate the site. If they select a different partner’s info, then replace the entry_id in the cookie, and continue.
I’ve attached a screenshot showing what I mean. Thanks for the assistance with this. It’s been years since I’ve worked in EE.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.