views:

46

answers:

0

On a site that I am helping build, the main dev has set up a joomla installation to act as a portal for a business listing of a small town. On the home page is a list of the businesses. If the business has signed up to be on the portal, it is clickable.

For each business page, there are a couple of variables: name, location, hours, phone number. Aside from those variables, the pages are exactly the same. As in, for that sub section of the browser, there is a common template. (Please note that I am not referrring to the site template)

basically, something like this: somewhere I'd be able to set this as the 'business_template':

<p>{{name}}</p>
<p>Located at {{location}}<p>
<p>
  Hours of operation:
  {{#hours}}
    {{opening_time}} - {{closing_time}}
  {{/hours}}
</p>

(where {{x}} would be simple variable substitution, and {{#x}}{{/x}} is a loop

Then I would have an administration page that would allow for datasets to be entered, and dynamic articles would be created from that.

Is there anything already out there for such functionality? Or am I going to have to write it myself? Also, if the latter is true, any good guides?