Hi,

At this moment we have a website without a CMS system.
We are planning to convert this website to Drupal.

Our situation is:
About 40 pages of the site are pages that should not be updated in the next few years.
They all have different images and page styles.

About 10 pages should be variable. Blog, Testimonials, Photo galleries...

My question is;

How do I style the non-variable pages?

I was thinking about page--nodeid.tpl.php but then I guess there's no good structure.

My sites/all/themes/templates folder would look something like this:

page--2.tpl.php
page--3.tpl.php
page--4.tpl.php
page--5.tpl.php
page--6.tpl.php

When I need to make a change to any of the 40 pages, I don't see which template file I have to modify.

I hope that you guys understand what I mean.

Thanks in advance for the responses.

Peters

Comments

ykarthikvarma’s picture

Considering all the 40 pages having common fields you can simply create a content type and have those 40 pages created as nodes. And towards that content type you can have a single tpl file.

"node--content-type.tpl.php"

petersj’s picture

What if these 40 pages do not have common fields?

ykarthikvarma’s picture

In that case you may try Node Field module (https://www.drupal.org/project/node_field) which will allow you to handle different fields for each node of a content type.

onejam’s picture

A template is split into different regions (such as header, main content area, sidebars) so if your page layout remains the same for the overall website and the non variable pages you are referring to are content that goes inside the main content area, then you can just copy and paste your HTML into the main content area. Use the standard page content type (with Full HTML text format).

-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien