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

Possible Way Around One Author Only

Development and Programming

dorilla's avatar
dorilla
29 posts
16 years ago
dorilla's avatar dorilla

so i realize that EE only allows one author per entry, but i really need something that can allow multiple authors

i realize there are options like solspace’s user authors or lg’s member list

those are viable, but i need to be able to sort the weblog entries by this custom field so i can show the entries made by the artists… to clarify: there are multiple authors because some art pieces are collaborations… is there any way to do this?

i.e: custom field: user_authors

weblog code: {exp:weblog:entries weblog="exp1" orderby="date" sort="desc" user_authors="segment_3"}

and the link would be http://www.intrinsicnature.org/in/home/artist/5

if this makes any sense lol

Moved to Extensions by Moderator

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

dorilla:

Can you elaborate a bit on what you have tried, and what hasn’t worked, etc?

Thanks,

-greg

       
dorilla's avatar
dorilla
29 posts
16 years ago
dorilla's avatar dorilla

ok first off, this is an art community… members submit art to be displayed… the submissions are weblog entries… example: http://www.intrinsicnature.org/area51/index.php/artist/23/

the problem: some of the art are collaborations, requiring more than one author

i’ve tried the user authors like this:

Published an entry placing multiple authors with the user authors extension

This is the code i used to try and show the entry according to the artist in the url:

the link would be “http://intrinsicnature.org/in/home/experiments/artist/2” where ‘2’ is the member_id

{exp:user:stats}
{exp:weblog:entries weblog="exp1" orderby="date" sort="desc" dynamic="off"}
{if author_id == '{embed='experiments/user'}'}
            <li>
                {submTHUMB}
            </li>
{/if}
{/exp:weblog:entries}
{/exp:user:stats}

experiments/user is like this:

{exp:user:authors entry_id="{embed:entry_id}" dynamic="off"}
{member_id}
{/exp:user:authors}

obviously i got an error <pre><code>Warning: Invalid EE Conditional Variable: {if "2" == '{embed='experiments/user' entry_id="{entry_id} in /home/intrins2/public_html/in/system/core/core.functions.php on line 2771

Warning: Invalid EE Conditional Variable: {if "15" == '{embed='experiments/user' entry_id="{entry_id} in /home/intrins2/public_html/in/system/core/core.functions.php on line 2771</code></pre>

this all works if i replace “{embed='experiments/user'}” with just “{member_id}” (but again, this wont solve the problem)

i think i know what im doing wrong, but dont know how to fix it/explain it lol… im trying…

if i can get the user authors “{embed='experiments/user'}” to make it choose one member according to the last segment in the link, then i believe it will work… but as of now, “{embed='experiments/user'}” , shows multiple id’s

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

dorilla, it looks like you asked the same question over on the Solspace forums. I’m going to move this over to the Extensions forum, since it has more to do with Solspace’s offerings.

       
dorilla's avatar
dorilla
29 posts
16 years ago
dorilla's avatar dorilla

i was simply adding what i did, responding to greg aker

i’m still open to any possible solution regarding multiple authors, and not solely solspace’s solution

       

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.