gertvannuffel Posted August 1, 2017 Share Posted August 1, 2017 Hi all, Let's say I've got something like this: Vehicles • Airplane (vehicle-template) • Aircraft (vehicle_synonym-template) • Bus (vehicle-template) • Plane (vehicle_synonym-template) • Train (vehicle-template) vehicle-template • title (text) = Airplane vehicle_synonym-template • title (text) = Plane • vehicle (page) = Airplane What I want to do now; is creating a new field (type: page reference) called 'synonyms'. I want to add this field to the vehicle-template, so that I can - when editing - immediately see all the existing synonyms for this vehicle. That means when editing the 'Airplage' page, it's showing me a list of 2 synonyms: Aircraft Plane So I chose the "select multiple", and I've been messing around with the selectors...but no success for now. Can someone help me? Greetings Gert Link to comment Share on other sites More sharing options...
George Loo Posted August 1, 2017 Share Posted August 1, 2017 I recently started programming, and I'm also interested in the answer to your question Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted August 1, 2017 Share Posted August 1, 2017 There are a couple of topics kind of about this question with working solutions: https://processwire.com/talk/topic/9675-page-field-bidirectional/ https://processwire.com/talk/topic/14689-connect-page-fields/ But there are other ways. Put page reference field on vehicle-template template and add synonyms from there. Create a separate category for vehicle groups and reference category pages from both vehicle-template and vehicle_synonym-template (do you really need 2 of them?) Add a RuntimeMarkup with some easy-to-write php finding and showing the pages you want to back-reference. 1 Link to comment Share on other sites More sharing options...
blynx Posted August 1, 2017 Share Posted August 1, 2017 Hej, there is also this topic about synonyms, I put my few cents there already: Actually I believe whatever you plan is covered there ... also I am not entirely sure where you are stuck. 1 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