0

I have a form on my admin page of my component, and I can edit the fields and save them.

When I load the page the saved fields show.

Say for example in a blog_category menu item. I create a new menu item based on this and I add a new field to the XML. I want to populate that field with two of the other fields.

So when I open my menu item to edit the values I want the value of my new field to say contain the title and the meta description. How do I get the existing values?

4
  • Is it in a plugin, component or module?
    – Zollie
    Nov 29, 2020 at 14:13
  • It's a component
    – Eoin
    Nov 29, 2020 at 19:50
  • As a most-fundamental check, just start var_dumping all of the variables that are available and sift through that heap for the data that you want. Start in the view/template with the printing to screen, but if it's not there then you may have to sniff through the higher layers for what you need and ensure that they are passed down to the view/template. I'm not sure if we have enough detail to help you yet. Dec 2, 2020 at 22:37
  • You probably don't and I am probably too inexperienced to give it to you. So I can look through the variables in my model/controller/view but I don't think that helps. I'll update my question to be relevant to the core.
    – Eoin
    Dec 4, 2020 at 11:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.