Skip to content

Example using CURRENT_USER given in Channel Entry / username parameter is incorrect #143

@jcogs-design

Description

@jcogs-design

The text for the username parameter of the Channel Entries tag refers to use of the CURRENT_USER constant.

You can also use the constant "CURRENT_USER" to show entries from only the currently logged in user.

username="CURRENT_USER"

This allow each logged-in user to get only their entries. Users who are not logged in won’t see anything. Alternatively, you can use the constant "NOT_CURRENT_USER" to show entries except from the currently logged in user.

username="NOT_CURRENT_USER"

Since CURRENT_USER returns the User ID of the current user, not the username, this example is misleading.

Either it should be deleted, or use of CURRENT_USER should be replaced with references to {logged_in_username} which would be applicable in the example given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions