title: Custom Page vs Plugin Slug
body: <p>I'm currently integrating information from a third party API into a wordpress site. What i need to do is create a "dynamic page" where it displays the details of a specific record from the API. Since there are 1000's of records i dont want to create a seperate page in wordpress for every record detail view.</p>
  
  <p>I've been looking around and it seems there are two main solutions (i've discarded the custom post type option as i dont think it fits my needs, but im open to re-evaluate). The first is to create a page in the wordpress pages admin, then setup a custom template for that page which calls the API methods, then just builds the template. The second is to somehow use the plugin i created, to register a hook for the URL im using, then have the plugin handle the display (not sure how i go about that yet).</p>
  
  <p>I'm wondering what people here think is the best approach. The prerequisites are:</p>
  
  <ol>
  <li>To be able to handle the URL to retrieve the ID for the record to
  display (must support standard URL param's as well as custom slugs).</li>
  <li>To have a custom template (with the ability to call the
  get_sidebar() function as its widgetised)</li>
  <li>At some point i will be adding an administration panel to add additional content to each record detail display such as related images, which are not supported by the external CMS.</li>
  </ol>
  
  <p>Any advice or a point in the best direction would be appreciated, thanks </p>