Rob(AU) Posted October 23, 2019 Share Posted October 23, 2019 I am building a portfolio site based on PW 3.0.124 and learning php as I go. The site uses various tags on the pages for each image. The tagging is sorted and clicking a tag link brings up a page of links to images with the same tag using the following code: $searchTxt = $page->searchTag; $thisTag = $page->name; // Current clicked tag $tagList = $pages->find("$searchTxt=$thisTag"); // select all pages where page field "Tags" contains a page with title of our tag I have a Prev / Next section on the image pages, but it relates to the tree location, rather than the tagList page. My guess is that the $tagList array needs to somehow be saved to be used to iterate through it, possibly using sessions ... but I can't figure out how to do that. Any help/pointers would be appreciated. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now