By sherifmayika on
what would the differnce between the node.tpl.php and node-forum(type).tpl.php. and how is the css ?
any experienced memebers, kindly help me
thanks
sherif
what would the differnce between the node.tpl.php and node-forum(type).tpl.php. and how is the css ?
any experienced memebers, kindly help me
thanks
sherif
Comments
not sure about the css but...
node-forum is the template that's applied to a forum node. Similarly, if you had the file node-blog.tpl.php that would be applied to the blog type.
This mechanism of phptemplate provides an easy way to style a particular node type without needing complex if/else statements in the main node.tpl.php file
I know this but
my question ought to have been more precise. Tb be more specific, what would be difference in content in side, in other words, how the class and/or ids differes in node types?
http://dreamweaverdrupalthemeextension.blogspot.com/
I think that all depends on
I think that all depends on the theme creator... Take a look at some existing themes that define a forum template (I don't know a specific example, but I know they exist). You can do it however you want. Ideally the CSS classes and IDs would overlap when possible to keep it simple.
http://www.trailheadinteractive.com
sky's the limit
You can give any node-type.tpl.php any div class you want. Whether it's a different background, different placement of terms and submitted, different images, etc. You just make the node-type.tpl the way you want it and add the stuff to the style sheet.
~silverwing
_____________________________________________
MisguidedThoughts | showcaseCMS
thanks for all comments
http://dreamweaverdrupalthemeextension.blogspot.com/
node-forum.tpl is used for
node-forum.tpl is used for forum type nodes and node.tpl is default node theme (used when there is no spesific node theme file)
forexample lets say you have a site with forum you can have such node.tpl for your nodes
meanwhile you can have a node-forum.tpl like this
Not that user picture is hidden at default nodes while taxonomy terms are hidden at forum nodes. These are just basic samples by using devel or contemplate modules you can have a better knowledge about node variables especially if you use CCK.
And sweet CSS again note I defined node as class for default nodes while I defined forum-node for forum nodes. As you can easily guess
.node h2{} will style node titles and
.forum-node h2 will style title of forum nodes
excellent clarification
thanks
http://dreamweaverdrupalthemeextension.blogspot.com/
thanks
thanks all..quite informational thread.. :)
is it the same way
in drupal 6 too?
http://dreamweaverdrupalthemeextension.blogspot.com/
Yep in Drupal 6 too but
Yep in Drupal 6 too but apparently You also need node.tpl.php inorderto node-forum.tpl.php to function. I mean there should be both files where as only node-forum.tpl.php is ok for drupal 5. I don't know if its a bug or function??
By design
It's documented that you need that so I'd say that's by design.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
this thread smells like
this thread smells like spam...
Eh?
There's nothing spammy about this thread...
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
the
the dreamweaverdrupalthemeextension.blogspot.com/ seems a bit spammy, so I understand why it would be thought of. But I haven't visited it, so I really can't comment further.
~silverwing
_____________________________________________
MisguidedThoughts | showcaseCMS
I am not the only one who
I am not the only one who thinks this guys constant posting of links to his site, is a bit spammy -http://drupal.org/node/197095#comment-657174
I mean c'om, track this guy, links links links, every where, almost as bad as that Drupal value hosting guy:)
Agree with you if you track
Agree with you if you track more you reach http://magicomedy.blogspot.com/ another blog from same guy. Propably he is trying to make money by adsense, amazon,... etc. by getting back links. But hey we have rel="nofollow" for all links!!!
Sig
It's probably in his signature. I have links in mine, too. I don't think he's a spammer. Though it would be nice if he'd host his dreamweaver thingy on a Drupal site. ;)
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
I will not include
my signature any more. May be I am making few pennies from adsense or amazon.
Few people may doubt about blog since I didnot release the dreamweaver extension. I know the announcement created curiosity among many.
From My first post on this community itself one can understand I am new to drupal. And I have repeated the same many time.
And there is a question arises How Do I create a tool that helps to create drupal theme. I dedicatedly learned it. and still learning.
I have carfully studied drupal theme development from the avaialable resources. Then why I am asking vary basic questions. I t is very clear that. As everyone aware to reach a destination there many ways in programming. When puting it before commuinity some robust views may come. one can assure that he is doing right.
It is possible for me to create different login names and post from different angles.
I t is also surprising to see that my earlier post DW extension whish list started 4 months ago received only around 10 response so far. How many are telling I am spamming taking only few hours.
I think it is a positive symptom that respone in the community is increasing.
I thank everyone participated the discussion positively and negativley
with many thanks and regards
sherif
Leon.lb's comment
Leon.lb,
if you go through the same thread you can see that what was claimed spam was useful to many.