zaib Posted August 6, 2017 Share Posted August 6, 2017 I'm using repeater field which contains a title which is clickable, Now there are lots of results like blog posts, I want when i click on title it should take me to the details page for the clicked title, i want to make it dynamic. Thank you. Link to comment Share on other sites More sharing options...
szabesz Posted August 6, 2017 Share Posted August 6, 2017 Hello @zaib I'm not quite sure what your issue with repeaters is. Can you please be more specific? Here are the docs if that helps: http://processwire.com/api/fieldtypes/repeaters/ 2 Link to comment Share on other sites More sharing options...
zaib Posted August 7, 2017 Author Share Posted August 7, 2017 @szabesz thanx for your reply. look at the screenshot you can see there are some post title where arrows are pointing them there will be a page which contains all the details means details page. My question is how to create url for these titles which will open a page contains all the details. Link to comment Share on other sites More sharing options...
maxf5 Posted August 7, 2017 Share Posted August 7, 2017 I would use a Page Reference field in this case. then you can use: $r->reference->title; $r->reference->url; 4 Link to comment Share on other sites More sharing options...
szabesz Posted August 7, 2017 Share Posted August 7, 2017 6 hours ago, zaib said: how to create url for these titles which will open a page contains all the details. I could provide a few Forum links which deal with issues similar to yours but @maxf5 is right: if you want to render the Repeater Items on individual pages under their own URL then you are better off either using Page Reference fields with Parent/Child relationship in the Page Tree, or you can also use PageTable. Note that a normal PageTable setup is also very similar to a usual Parent/Child relationship setup, however using PageTable has similar benefits as using Repeaters. Repeaters are normally desirable when you do NOT have to render individual pages for the repeaters, such as: galleries, sliders, product variations and so on. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now