Social Question

bstar3's avatar

How would I create a different page for a product?

Asked by bstar3 (182points) May 2nd, 2010

For example, a gaming website. The preview of the games is on one page. But when you click one game. Theres another page that has the game in it. Every page with the game has the same design, but also has different information for each game.

How would I do this?

Observing members: 0 Composing members: 0

17 Answers

DrBill's avatar

create the template, insert the specifics for that game, link to it from the main page.

bstar3's avatar

So I would have to create a html page for every single game? Isn’t there a simpler way?

netgrrl's avatar

Yeah. Hire someone else. :)

bstar3's avatar

@netgrrl No thanks.

So I create the page for the game, when theres a new game available I just use that same page I created and put the information in? ... For each game?

xxii's avatar

@bstar3 – No, don’t use the same page, or you will overwrite your original information. Create a new page and copy over the code from the original page, but substitute the old information with the new.

bstar3's avatar

Hm, Okay so this is what I would do right?

For each game, i’d put a preview on the main game page, then with the game and the information that goes with it, i’d use the created page for the game, make a new copy of it. Put everything in it, and just use that?

What about the folder structure (I’m kinda trying to learn that subject). Would I create a new folder for each game or use just one html file for it?

xxii's avatar

@bstar3 – Obviously I’m not familiar with the project you’re trying to create, so I can’t tell you the best way it should be organised. However, from my understanding of it, unless you plan to create lots of sub-pages for each game, I would not create a new folder for each game. Just a new HTML file.

bstar3's avatar

Okay thanks. So this would also be like for a website that is about music or videos? Same as Youtube, kinda?

xxii's avatar

@bstar3 – Not really. Youtube does not have individual HTML pages for each video. That would be far too large a site. How many “game pages” are you going to have? I would rethink the site design if I were dealing with more than 100 pages.

bstar3's avatar

Well, for the ‘game’ page Games would be added everyday. And, possibly by someone who has no coding knowledge (A client), How would this work out?

xxii's avatar

It probably wouldn’t.

bstar3's avatar

It wouldn’t work out? Urg what can I do then?

xxii's avatar

I don’t know. I have no idea what you are attempting.

bstar3's avatar

Okay, lets just say. A lot of pages.

xxii's avatar

What is a lot? What kinds of pages? You need to consult a website designer about this, not random strangers on an Internet forum. Some people make a living off answering the kinds of questions you have.

Vincentt's avatar

You want to automate this, having a page on your website that allows you to add a product to the database and a script that handles displaying that information in a page. You’re most likely to want to use PHP for this, so if you want to learn how to do it, start learning PHP. Or hire someone to do it for you :)

bstar3's avatar

That is what i’m looking for. Thanks.

Answer this question

Login

or

Join

to answer.
Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther