Forum Moderators: open
I just wondered if I could get some opinion in how to start off my development.
In the simplest of scenarios. I want to have an html page with all of my links to other pages on as well as nice pictures etc...
In the middle say of this page there will always be a white area, that will show text all formatted pulled innfrom some kind of text repository.
So say I have a site on cars....what would normally be index.html and a welcome page....I want to be the same but when I click on say BMW cars the same page formatting is kept layout design etc... and all of the details about BMW cars are pulled into this page...rather than creating a new html page that the link just opens, as I have to then format that page etc...
My main reasoning is that I have a site with over 600 pages of info and most pages are identical in design just the content is different....so I wondered what the easiest way would be to export all of my current html into simple text files maybe XML and then have these pulled into the design......this will also save me massively on time when I wish to change the web site design...as I now do....
I've been looking at XML and ASP etc... but ideally if anyone can point me into a direction where I can look at a simple example of a page that uses asp or something to pull in content and format it I would be very grateful.
Thanks everyone for taking the time to read....even if you don't reply.
There are also content management systems that can perform the kind of function you are talking about plus do things like automatically link new content, etc.
www.example/maker.php3?idMaker=3 (where idMaker=3 = bmwcars)
instead of say
www.example.com/bmwcars.html
Do you know where I can read up on this type of linking. Some are with PHP and some seem to be with asp....just trying to start with the best way before I get too far down the line and have to swap.
Thanks
Welcome to Webmaster World.
Asp sounds like it would do the job for you.
In your car website scenario you could have an index page with the main catagories and then a product page which shows the details of the cars according to which link was selected from the home page.
Thus:
Your home page index.asp would have the following links:
BMW's - link: show_cars.asp?CarType=BMW
Subaru's - link: show_cars.asp?CarType=Subaru
Ford - link: show_cars.asp?CarType=Ford
You would then create a page called show_cars.asp
This page would pull the information from a database based on the car type specified in the query string.
There is a great resource available here: [w3schools.com...] - If you follow the tutorial here, it will give you a good start in what you wish to do.
Feel free to stickmail me if you need a hand getting started.
One question on the database that is going to store all of this information.
If I create a link as thus
BMW's - link: show_cars.asp?CarType=BMW
does all of the information need to be in an actual database like SQL etc.. or can I call simple text files with the information in to be pulled through...the reasoning behind this is that I would also want pictures and other links on the asp created page.
I am actually doing the same thing to a site right now, but using php/mysql. Laying out the structure is the tough part. Once you get that right, it's smooth sailing:)