How do I get the category a channel is in?
How do I get the category a channel is in, if any?
I cant find it, I thought maybe its just based on whatever .getPosition() is but that seems like just a random number lol.
2 Replies
You'd need to .getChannelOf with CategorizableChannel iirc
Ok so no clue what i would want to but in the <> of .getChannelOf, but theoretically i could cast it as a categorizablechannel and then get the category then do .asChannel and i will have the category.
(if i wasnt hit with more access bs from dc, but ill figure it out from here)
thanks.