Website design - changing only body content

I am currently developing a new website and I want to plan it properly.

The main page consists of top content (heading, including logo, etc.). Body with a menu on the left and obviously a footer at the end of the page.

I have 50 pages in the menu and I want to change ONLY its contents.

Don't copy all pages (not even ASP.NET code).

Of course, there is a better way to do this.

thank

0


source to share


4 answers


David, what you are looking for is MasterPage:



http://quickstarts.asp.net/QuickStartv20/aspnet/doc/masterpages/default.aspx

+5


source


I'm not sure what you're looking for because, for example, you didn't mention that 50 pages are almost the same, in other words, only the content (letters) changes? there are several things you can do.

I would go because I am doing .NET using MasterPages in ASP.NET, you design the layout with all the graphics like the template was and put the "placeholder" in the "body" part you mention and you only create 50 pages content, but none of them writes anything about the "template"

You can create a Web 2.0 roll and put a DIV that you replace by calling the content via AJAX



You may be using a different type of language and using templates

there is a "millionth" way to do "everything" :), nothing more, I can't tell you what a good idea might be.

+1


source


Use page templates (aka master pages in ASP.NET). Better yet, use the MVC framework. My personal favorite is Spring.NET , but there are others ...

0


source


I would recommend stripping the content out of the form if you haven't already. An example of this is having your content in one file and linking it with CSS styles in another file to determine how it looks. This way you can change your content as you see fit and not redo your entire style.

One good site that illustrates this is CSS Zen Garden .

0


source







All Articles