ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

{username} is NOT working in {exp:channel:entrie}

December 21, 2010 4:18pm

Subscribe [3]
  • #1 / Dec 21, 2010 4:18pm

    unolee

    3 posts

    I’m using EE2.1.2.

    I have problem with {username} & {screen_name}.
    In {exp:channel:entrie}, {member_id} {username} {screen_name}‘s value in NOT login user’s value. It show value of entries’ {author}.
    But outside of {exp:channel:entrie}, it show correctly.

    Strange.

    {exp:channel:entries channel="board" limit="1" status="open" disable="category_fields" dynamic=“off”}
    
        {author_id}-{member_id}-{author}-{username}-{screen_name}
    
    {/exp:channel:entries}
        
        {author_id}-{member_id}-{author}-{username}-{screen_name}
  • #2 / Dec 22, 2010 1:40pm

    Brandon Jones

    5500 posts

    Hi unolee,

    This is correct. Inside the exp:channel:entries loop you’ll want to use the alternative syntax. Does that help?

  • #3 / Dec 22, 2010 1:43pm

    unolee

    3 posts

    Thank you so much. ^^

  • #4 / Dec 23, 2010 12:18am

    John Henry Donovan

    12339 posts

    Glad Brandon was able to help. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases