Hey there, we’re having a little trouble understanding the exact context of app variables (AV) versus page variables (PV). We get that AVs are used for user account settings, etc., but how much does it actually affect what an external users will see? I’ve checked the Doc pages but there’s really not much to go on and this has been a brick wall for us.
For example, I’m currently working on a profile page*** with multiple layout sets (containers styled differently and with unique information) designed to convey the status of a user, both, *to themselves and **when viewed by another user.
Terminology:
Primary User = PU - The individual who is signed in.
Secondary User = SU - A visitor to the PU’s profile, whether they’re signed in or not.
Layouts are:
-
*A standard profile layout as viewed by the PU with an Edit Profile button in the bio and edit/delete icons with each post.
-
**A standard profile layout for the SU with the Edit Profile button being replaced with a
Follow/Unfollow Button and the edit/delete icons replaced with a Report Post button. -
A layout explaining that a user has set their profile to private if the SU is not currently following them. Contains a button to follow the user. If the user is already followed by the SU, show #2.
-
A layout explaining that the user has deactivated or deleted their account.
-
A layout explaining that the user has been banned by moderation.
• Our primary question is whether app variables are used only by a signed-in user to effect changes to their account such as their profile bio and what they choose to post? Should we think of it as being relevant exclusively to updating their profiles or posting content and not actually controlling what layout is visible depending on their account status?
• ***Second is whether we should just design six different pages that could be attached to every user’s account representing any of the aforementioned statuses with their respective layouts. They would only display depending on what is going on with said user.
Or, should it just be five separate container layouts on a single page with visibility to the SU controlled by… what, page variables or app variables? I’m leaning towards a blend of both there.
Or, is it better to design two “Profile” pages, one representing what the primary user sees and always having the same general layout, and one for what SU will see with its layout relative to the PU’s account status, i.e. private, banned, deactivated, etc.?
I understand it’s a bit convoluted. We’d mostly like to know where app variables and page variables fit in with controlling what is visible to the PU and SUs. Thank you!