Skip to content
Advertisement

How to define a user (author) – OctoberCMS

I need help. I only need to be able to view one user for a post in OctoberCMS.

But all users will always show up to me.

Here’s the code that works, but I don’t know how to define it to work the way I need it.

idea: https://ibb.co/VM2Rrr3

JavaScript

Advertisement

Answer

Use this as user who is creating project is user who is currently logged in so we can use current logged-in user that.

JavaScript

It will get logged in user and show in drop-down for selection [ or even you skip place-holder to have only 1 selected option]

if any doubts please comment.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement