Ingmar - thanks for that link, I had never thought to look in the development docs.
I was hoping that using the PHP you suggested would be the key to harnessing the Fresh Variables module to create a side-wide session variable, but when I set up a new Fresh Variable, the following code didn’t work:
{exp:query sql="SELECT entry_id FROM exp_weblog_titles WHERE title = '<?php global $SESS; echo $SESS->userdata['group_title']; ?>'"}
{entry_id}
{/exp:query}
When I create a dynamically assigned variable to use in an individual template, I can use
{assign_variable:group="<?php global $SESS; echo $SESS->userdata['group_title']; ?>"}
to get the group title and name it “group”.
Then, If I set a query to feed an exp:weblog:entries tag the proper entry_id
{exp:query sql="SELECT entry_id FROM exp_weblog_titles WHERE title = '{group}'"}
it works. But combining these two steps into a Fresh Variable doesn’t work, at least in the way I have the code above.
Any suggestions?
(edited code to make more sense)