Topic: What is the differnce between a theme and a template? (Read 1425 times)
Bill Gates is my home boy
Posts: 650
4740 credits Members referred : 0
« on: Jun 07, 2011, 11:21:22 pm »
There is a misconception on my part every time I encounter these. Can you help me figure out their differences
Affiliate Programs CPA Network Affiliate Network
I wish I was an Oscar winner
Posts: 95
636 credits Members referred : 0
« Reply #1 on: Jun 09, 2011, 09:23:59 am »
I think this is not important, how a design product called. The main thing is it functionallity.
Just another rainy day
Posts: 1
6 credits Members referred : 0
« Reply #2 on: Jun 09, 2011, 12:16:10 pm »
Templates: are used to display the content of our site. Themes: are the collections of templates,images and the things which are used to create the entire page.. Is this correct?
Bill Gates is my home boy
Posts: 650
4740 credits Members referred : 0
I think this is not important, how a design product called. The main thing is it functionallity.
But isn't it that functionality is also incorporated with the design?
Affiliate Programs CPA Network Affiliate Network
I wish I was an Oscar winner
Posts: 95
636 credits Members referred : 0
« Reply #4 on: Jun 14, 2011, 09:13:24 am »
As you remeber we talk about theme and template, not just about design
Bill Cosby is my Father
Posts: 4
24 credits Members referred : 0
« Reply #5 on: Jun 14, 2011, 06:23:40 pm »
Theme refers to a set of files which control the HTML generation/presentation. For each request the drupal and modules create the data as a data structure (associative array or object). The theme layer takes this data and creates HTML. It also has css files to control styling.
Template in the context of a theme are files with the html code, with placeholders for actual data. in the case of php templates the placeholders are php variables. Template files contain the html generated for a particular piece of content like node, block etc.
Bill Gates is my home boy
Posts: 650
4740 credits Members referred : 0
« Reply #6 on: Jun 14, 2011, 06:37:25 pm »
Can you use both in doing a website? Like putting a template and using a theme on it?
Affiliate Programs CPA Network Affiliate Network
Novice Spammer
Posts: 102
652 credits Members referred : 0
« Reply #7 on: Jun 29, 2011, 06:14:01 pm »
Template in the context of a topic are documents with the html cipher, with placeholders for genuine data. in the case of php templates the placeholders are php variables
Bill Gates is my home boy
Posts: 650
4740 credits Members referred : 0
« Reply #8 on: Jun 29, 2011, 08:11:50 pm »
Thanks for all the answers. It helped a lot.
Affiliate Programs CPA Network Affiliate Network
I wish I was an Oscar winner
Posts: 86
858 credits Members referred : 0
« Reply #9 on: Jul 05, 2011, 08:29:39 am »
Thank you for noelagnote
Where are my glasses?
Posts: 20
144 credits Members referred : 0
« Reply #10 on: Aug 29, 2011, 04:19:24 am »
i agree with that answer thanks
I love Pokemon
Posts: 14
84 credits Members referred : 0
« Reply #11 on: Sep 02, 2011, 10:01:05 am »
Hello Dear Friend,
I think a theme is made up of a collection of template files are all template files which when combined with your CSS, JS and images produces a theme. In addition a themes can be inherited. A theme can be created with just CSS and no additional template files by inheriting from an existing theme, in which case the template files from the parent theme are used. Another way to look at it is a theme is what you see and the template files are responsible for generating the markup.
I hope this makes it a little bit clearer.
Good Luck.......!
Just another rainy day
Posts: 1
12 credits Members referred : 0
« Reply #12 on: Sep 13, 2011, 10:35:51 am »
Thanks for all the answers. It helped a lot.
Charlesangl1
Just another rainy day
Posts: 1
6 credits Members referred : 0
« Reply #13 on: Sep 18, 2011, 09:38:03 am »
A "theme" is a fully developed look for a functioning system. It's usually very involved (code wise) and made for a specific purpose. A template is simpler, and can be more easily adapted to various purposes. It's usually just CSS and XHTML (and images)
Cyberpunk Wannabe
Posts: 36
234 credits Members referred : 0
« Reply #14 on: Oct 04, 2011, 10:51:59 am »
I had a feeling you were going to reply that way. Thank you.
Cyberpunk Wannabe
Posts: 41
300 credits Members referred : 0
« Reply #15 on: Oct 06, 2011, 09:26:00 am »
a "theme" is just a special type of plugin that bundles together any number of templates (to control how a given piece of data gets rendered to HTML), CSS, JS files, images, and so on.
So, there is a single "template" for your oveevral page markup, a single "template" for how a sidebar block is rendered as HTML, and so on. All of them, bundled together and named, are referred to as a theme.
« Last Edit: Oct 06, 2011, 10:36:52 am by Nikolas »
My name is Bong, James Bong
Posts: 12
72 credits Members referred : 0
« Reply #16 on: Oct 08, 2011, 01:51:30 pm »
themes are a "group" of settings that you use. it can be changed from time to time depending on the user's preference. templates on the other hand are used like ready made designs - not as easily changeable as themes are.
My name is Bong, James Bong
Gender:
Posts: 11
66 credits Members referred : 0
« Reply #17 on: Nov 24, 2011, 01:14:40 pm »
can you explain that in more simple words.
I wish I was an Oscar winner
Posts: 95
636 credits Members referred : 0
« Reply #18 on: Nov 30, 2011, 08:28:20 am »
really now I think the template and theme are the same things, just synomyms))
World Wide Whale
Posts: 156
988 credits Members referred : 0
« Reply #19 on: Dec 08, 2011, 09:40:41 am »
Great .... I do not understand it at all ....
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=12436