I am trying to use low variables and the grid together to allow the client to create dynamic pages. I have the grid set up to create a title and then another field for the page content. I want to list the page titles on the side and when clicked shows the corresponding page content.
Is this possible? I have it currently populating the side column with the page titles with this code:
{exp:low_variables:pair var="lv_patient"}<li><a href="{path="patient/{exp:create_url_title}{lv_patient:page_title}{/exp:create_url_title}"}">{lv_patient:page_title}</a></li>{/exp:low_variables:pair}
I am then pulling in the page content with:
{exp:low_variables:pair var="lv_patient"}{lv_patient:page_content}{/exp:low_variables:pair}
Which just pulls in all the content not the stuff specific to the corresponding title.