I am at my wits end here. I have a list view that goes to a details view in a SPA but for some reason the variable is not being passed and the page is blank. I have worked on this for days I am obviously missing something. Any help would be appreciated.
The problem is that this instruction does not get executed because there is no trigger to do so, i.e. there is no full page load.
I have found that the best way to dynamically populate the partial document is to place the instructions in the main document.
Have a look at the example in this post Spa page calling unused server connects where I load all of the info from the database and used Data View to filter the required information.
This method can be used where the database table does not contain more than about 3,000 records.
Sorry, getting ahead of myself, the problem with the detail page is what I should have pointed to.
I still think that pursuing the method used in the example will alleviate the problem. But instead of placing the instruction in the main page, place it in the _press.php page.
Hi Brad,
Everything is well setup on your pages.
It’s just on the view page, where the server action is, change: dmx-param:story="query.story"
to dmx-param:story="params.story"
I'm using SPA pages. I have set up a route on my source page
I have then set up on the same page a dynamic A tag
which when clicked on in a browser,
goes through to the right page with this in the address bar
but I'm not quite sure what to put on the target page to show the correct record. @brad's link in the original post no longer works and so I can't see anything there.
Also, could I set it so that the link goes to a master-detail page and select the correct target like this
Not sure how data detail/detail region has something to do with the initial topic, which is about filtering a query using an URL parameter.
Can you explain what are you trying to do and what is data detail/detail region used here for exactly?
Are you even sure you need detail region in your SPA page and not just filter a query on the child page?
This topic talks about routes and SPAs. Maybe I misunderstood but I thought it was passing an id via the route path. So in my example above I have a source page (A page with company details and list of contacts) with a link, that link takes us through to a second (the target) page which has a full list of contacts with a data-detail table to the side.
I wanted to click on contact, in this case ‘Chris’, which would then take us through to the target page and display the details of Chris. This page just happens to be a master-detail type page.