I suppose I could just do that @mebeingken
Only objections…
It’s a bit messy perhaps? It’s then both a security check to see if people are logged in AND a query to get the course name.
Perhaps also not the best performance wise? I only need to set the title to this on one certain page: /watch
Please tell me if these are non-issues. I’m just making assumptions here, I don’t have enough in-depth knowledge.
I don’t see it as being messy…perhaps look at it as a server connect that performs all necessary prep work (security check and meta tags would be good prep work.) And if you need various layouts to have different actions due to security differences, you can use a Library action for the title query and re-use for efficiency.
If this is a unique page needing this, then maybe you have have a unique layout just for it, and then another layout that does not call the meta query.