bsgottesman
Programmer
- Apr 30, 2009
- 1
Hi,
I'm working on an events section for a website and have run up against the following problem: I would like every event registered to have its own web page on the site. What I would like to do is to have a template with basic layout, etc., and then every time a new event is entered, a new page would automatically be created in a specific folder on the site with the name mysite/events/name of event, with all the information from the database, or that was entered into the form, correctly laid out in as I specified in the template.
I know this sounds crazy, but is there any way to do this programmatically? I have no way of knowing how many events will be registered, so I can't set up the pages beforehand and then fill in the info.
I originally did it by sending a querystring with the event id to a single reused eventsdetails page that used the id to pull all data about that event out of the database, but my boss wants to have a higher search ranking by having more pages on the site, so he wants one page per event.
Thanks a lot in advance,
Bsg
I'm working on an events section for a website and have run up against the following problem: I would like every event registered to have its own web page on the site. What I would like to do is to have a template with basic layout, etc., and then every time a new event is entered, a new page would automatically be created in a specific folder on the site with the name mysite/events/name of event, with all the information from the database, or that was entered into the form, correctly laid out in as I specified in the template.
I know this sounds crazy, but is there any way to do this programmatically? I have no way of knowing how many events will be registered, so I can't set up the pages beforehand and then fill in the info.
I originally did it by sending a querystring with the event id to a single reused eventsdetails page that used the id to pull all data about that event out of the database, but my boss wants to have a higher search ranking by having more pages on the site, so he wants one page per event.
Thanks a lot in advance,
Bsg