Hope someone can help me – I’ve been using the Hello World Guide to help me with adding a drop down field to the admin model that will filter the query in the front end model.
I’ve got the new drop down field all working in the admin side and pulling records from the database to select, but now I’m stuck on the last bit – “Display the chosen message”. In the tutorial they extend “JModelItem” and return JTable but I need to create a query filtered from the value selected in that new drop down field created on the admin model.
In other words – how does the site model get the selected value from the drop down list I’ve created in the admin model?
I’m so close to making this work and really getting to grips with my understanding of MVC – if someone can point me in the right direction I’d be eternally grateful!
All the best
MB
If i am right you want to access the admin component model to the site model, then you can try the following example for do this :
Example :