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

Members as "partners" with branding logo

How Do I?

hawkwynd's avatar
hawkwynd
9 posts
4 years ago
hawkwynd's avatar hawkwynd

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.

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
4 years ago
Tom Jaeger's avatar Tom Jaeger

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.

  1. 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.

  2. If the authors are not the same, you could use a relationship filed to relate the partner(s) you would like to highlight

  3. 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

       
hawkwynd's avatar
hawkwynd
9 posts
4 years ago
hawkwynd's avatar hawkwynd

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.

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
4 years ago
Tom Jaeger's avatar Tom Jaeger

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.

? 1
       
hawkwynd's avatar
hawkwynd
9 posts
4 years ago
hawkwynd's avatar hawkwynd

dynamic="no" worked. What is that paramater?

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
4 years ago
Tom Jaeger's avatar Tom Jaeger

Right on!

I’d recommend taking a peek at this link about the dynamic param!

       
hawkwynd's avatar
hawkwynd
9 posts
4 years ago
hawkwynd's avatar hawkwynd

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.

       

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.