This question may be related to a resolved thread. (EE1 though)
I am onto working on a client area for my site. I have created a login page and simply just used the code from the user guide as my template. I changed the return value to “clients/index”. Where my issue lies is in the non-capability of listing all of the entries that a user is the author of after they log in. I am using this code:
{exp:channel:entries channel="clients" author_id="CURRENT_USER" dynamic="no" status="open"}
{if no_results}There are no entries tied to this account{/if}
{title}
{/exp:channel:entries}I just want to test it out by listing just the titles before I get into custom fields and what not. As far as users in the system, I have two dummy accounts and one entry that has a dummy account as the author and the other account doesn’t have any entries set as author. What seems to be occurring is that I will login, under either account, and it will show the no_results line for both of them or if I remove the no_results tag it displays the lone entry on both accounts. Making it appear then that the CURRENT_USER isn’t working correctly since only one account is the author of the lone entry and not both of them.
I am using EE 2.1.3, Build 20110411.
p.s - I double posted this as it is related to EE2 and not the resolved thread of EE1. Sorry. If a moderator wants to delete the old thread, that’d be great.