Ability to link to other AEM articles/pages from a component
How can I allow authors to select other AEM pages through a multi-mode dialog box, (i.e. use search to find the path to the other articles/pages they want to link), and then access the list using getProperty(), and hopefully, pull off the article/pages they selected as an object and retrieve its properties. I need to take this information and create at <div> that uses the image from the article, and also create an anchor/hyperlink to the chosen articles. Again, I am hoping I can get some type of page object for the article, and just pull off the properties needed to create a <div> with a hyperlink to the article's page, and also use any images associated with the articles as the <img src>.
In general, what's the most efficient way create a multi-mode dialog box list that allows authors to search/select content such as links to other AEM articles/pages, images in the DAM, and videos, and then retrieve and parse the list in my component, and identify whether the path provided is to an article/page, image or video???