After working with Drupal for over a year now I have learned different ways to go about setting up a custom Drupal theme. I have tried taking existing Drupal themes such as Garland and Blue Marine and hacking them to pieces while inserting my personal DIVs and classes trying to get things to work and look right. That just creates a huge mess of code and often contains unneeded elements (code bloat = not a good thing).
I have found that the
best method for me to create custom Drupal theming
is actually to first code up the site using static HTML/CSS, as in create an index.html file and go to town. I always code
my own sites using Notepad2 and then view/test them in FireFox.
Furthermore use the WebDev Toolbar so I can see how everything looks on-the-fly as I code
my CSS. This
seriously helps as I can code a LOT faster and see
my CSS changes
Once I get everything looking decent (doesn’t have to be perfect yet) in FireFox I then open the index.html file in IE7 and begin making IE7 specific changes to
my CSS so everything looks decent there as well. I then load the index.html file in IE6 and do the same. Once things look the same across FireFox and IE7/IE6 I load it in Safari to see
the actual way it looks there. For this site I kinda ignored some
issues with IE6 as it’s a pain to work with and I’ll get around to fixing them eventually.
So once the site looks
a similar in FireFox, IE6/IE7 and Safari it’s time to add Drupal code to our static HTML file. This is
easier than it used to seem to me so if you follow these code snippets you should be all set…
Once these snippets of code have been
place of your existing HTML code in the index.html file, save the newly edited file as “page.tpl.php”.
Now is your Drupal theme page
and every page on your site will have
exactly the same layout as this one.
Different Home Page Layout
you need to have a custom
the many other pages. To create a custom Drupal Theming
webpage you need to copy the code
in the “page.tpl.php” file
a new file named “page-front.tpl.php” and paste that code
in the administration area.
Now you can edit the code
for that “page-front.tpl.php” file
to restore look however
you want. Drupal will
detect and load the “page-front.tpl.php” file
specific to your theme directory.
the consumer is on the
home page to go ahead and load the file named “page-front.tpl.php” rather than the “page.tpl.php” file.
Today you can go back to the “page-front.tpl.php” file and edit it as
you observe fit.
This offers you the
option to have a different layout
internet site and sub pages.
that you’ve a “page-front.tpl.php” and page.tpl.php” file
it is time to copy
on the images and CSS
through the static HTML site
to the newly
made Drupal themeing
just about your directory structure should
something such as:
Drupal Theme Dir:
Now you need to copy
the other files
through which Drupal theming tactic
to your theme directory.
Be sure to copy these files over from the Blue Marine theme (that’s
just what theme I
take hold of them from).
Blue Marine Theme:
you should have a fully working Drupal theming
It is possible to copy the files over to the server and place them in the “/themes/newtheme” and then log in to your Drupal site through your browser and select your newly created theme.
As we discussed immediately
there may be
quite a bit of editing
needed to be
get the theme
completely in Drupal theming..
This is when
the net Dev Toolbar
comes in handy again.
now it’s time to edit/tweak your “*.tpl.php” files
plus your CSS. This is a quick and dirty way to get a custom theme
installed and operating but
you get the drift.
Someone else have an ideas
I can improve on here or
a few things i
did not really cover
via a tunnel?
about 10 custom Drupal themesing so
I think I overlooked
a thing here. Leave a
brief review or question and I’ll do
help you out.
There’s lots of ways to optimize and increase the speed and Drupal performance of the Drupal based website.
you actually need are the right tools or the right
trained in Drupal Performance
your own Drupal based website getting slower, day by day, due to heavy loads? Do
you need support and
information on Drupal performance optimization? Are
you actually aware of Drupal performance tuning?
There are many ways to optimize and maximize the speed and performance of
your own Drupal based website. All that
an individual need are the right tools or the right training in Drupal. For one, Drupal performance tuning is considered as one of the most commonly used methods to speed up a Drupal CMS website.
Well, to start with, why do
anyone need Drupal performance optimization for
your own website? Is
the site too heavy and
you just wanted to deal with the ‘slow site’ issue? Or do
anyone have other additional agenda in mind, like making the Drupal website very interactive to enhance
your own visitors/users satisfaction?
Generally speaking, for the better performance of
a straightforward and quick Drupal training to;
observe the performance of
the Drupal performance
web site to identify the flaws and errors
build up a Drupal multisite environment
for best Drupal performance, and
the most effective Drupal modules that can enhance
your own site’s performance.
provides extensive built-in features and capabilities
that may be optimized with Drupal
Information on Drupal performance
include three pronged basic concepts of caching, compression and client optimization.
To start with,
an individual should ‘enable’ the page caching of
your Drupal application. For this,
anyone need to login as the ‘admin’ and then go through the site configuration to the ‘performance’ menu, and set the caching mode to ‘normal’ and the block cache to ‘enabled’.
You can then finally click on the ‘save configuration’ button located at the bottom of the page.
The second phase will help
you minimize the bandwidth,
your website loading process
Every one of the modules or blocks
which aren’t required
an individual need to go to the ‘admin’
through the ‘site building’
towards the ‘modules’ menu.
a person can
remove the ‘check’
for all your
anyone don’t require
and click on the ‘save configuration’ button
at the end
The ultimate phase enables
In case you have executed the
optimize the Drupal database i.e.
the client site
optimisation. Drupal uses MySQL database,
the whole site content,
some time to
to understand Drupal performance
you just need to a hands-on
tactics pertaining to Drupal, like Drupal Performance
your internet site
and easy for users.
Eric Jhonsan has 7 articles online
from the piece
is experienced on Drupal CMS, Drupal
The guy can be reached via email at email@example.com.
More info about Drupal performance
Will Drupal support complex integration for E-Commerce?
Posted by hpoom on February 8, 2011 at 4:36pm
Aiming to upgrade our inhouse composed CMS with something else and Drupal is at the top of my list of possible options. We are struggling to find out if Drupal support will continue to work just how We need it to though. Can somebody help answer my questions?
1/ Will Drupal support integration in a inhouse built API to have stock of products and prices. I have seen Drupal E-Commerce solutions but they all seam to have the products and prices loaded into Drupal. I’d rather not, and can’t load the products into Drupal as the stock and prices come from 3rd parties with 3rd party API’s wrapped up behind our own request system which gets several products from back end sysetms and packages them together. We sell shortbreaks, which might be a hotel from one API and a ticket to the theatre from another API. All this stock and pricing is available from a single API Request system we have coded in house the difference is we need to build these items into a CMS/Templating system. Is this possible, and if so how?
2/ I’d want to create pages for items we sell like, hotels and show, but all of the data on they is held in a product data system. I would want pages to automaticly appear as new content is included in this product data system. So if a copywriter writes a couple of new hotel, then I want a web site to automaticly be developed in Drupal that links to the hotel, also if data is removed from the product or service data system the I’d personally really need to page to 301 to some place else.
3/ I would at the same time want any digital assets to come from a digital asset database to ensure that hotel images couldn’t survive managed in Drupal support but come in from our inhouse digital asset store which works closely with your product data store.
4/ I am in search of 2 login systems equally. Would desire LDAP for in house staff to handle content, but need Facebook Connect or Twitter OAuth (or both) permitting customers to firewood in a leave opinions or see their order history etc.
I wish to use the Drupal support system so as we can easily manage copy and static pages and also add forums, personal blogs etc. It would be a better tool then our existing CMS, but I have big concerns about the E-Commerce section of things. We’d at the same time want to run a number of sites (about 20) all off an individual Drupal support install in order that I can maintain the sites quicker. Most of these sites are typically in German along with English.
Certainly one of what I prefer to obtain is http://www.show-and-stay.co.uk/ the booking breaks part is hit once you perform a search make up the form. I do think the Drupal support would be accomplished at the homepage and product pages like:
And equally the blog part:
We have worries finished it’s capacity support the booking pages though like:
Thanks before hand to any answers.
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!