0

I'm developing a simple component for eg. "Article Files" component and its models are "Article" and "Article Files".

When i'm creating a menu item for my component for frontend and selecting a Single Article I can't select a specific item instead the component URL is on the textbox. see the attached image. How I can fix this? I want something like the "Articles" built in Joomla whereis you can select a specific article and display it in the frontend. enter image description here

1 Answer 1

0

There is a field named modal_article available in the com_content component.

You can use that field in your xml file for article selection.

Code for this field is available at administrator/components/com_content/models/fields

You can take reference from single article menu xml for the usage.

Refer file at Joomla-root/components/com_content/views/article/tmpl/default.xml

3
  • I'm sorry but there is no default.xml file in the components/com_content/views/article/tmpl/
    – Voj
    Commented Mar 12, 2015 at 9:01
  • this file is located at Joomla-root/component/com_content/views/article/tmpl/ not in administrator section
    – Nick
    Commented Mar 12, 2015 at 9:03
  • I should have added complete path..answer edited :)
    – Nick
    Commented Mar 12, 2015 at 9:24

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.