Forum Moderators: open
I've been working with drupal for just about a week or so on a site that would have a similar layout to CNet, although I've never done anything with a CMS before so it's quite a big learning curve. Finding it a bit hard to customise the layout and blocks to fit into something even remotely similar.
If anyone has suggestions/opinions about whether drupal is the right/wrong choice, I'd appreciate hearing them.
[edited by: Draupnir at 12:13 pm (utc) on June 2, 2009]
I don't know what you're doing but here is what I might do.
Create a CCK node called product. Add a bunch of fields - image, description, price, [affiliate] link to buy it, etc..
Create a new template for the individual product nodes. This would be named node-product.tpl.php
This will give you complete control over the layout of all of the product fields.
<div class="product">
<div class="productdescription"><?php print content_format('field_productdescription', $field_productdescription[0], 'default', $node); ?></div></div>
In the above you would create the full layout and use each field - image, description, etc...
I would probably create a CCK type called review with 1 input field. Then put it in a block and only show it to logged in members and only on product pages. And then for displaying the reviews you could do the same as you did for product template except use the variables available from the USER like their name, icon, etc..
[edited by: BradleyT at 3:43 pm (utc) on June 2, 2009]
Anyway, thanks so so much for the advice, it would've taken me days if not hours to figure out that kind of thing on my own. I might start working on it now aswell, and checking it in a few different themes.
Thanks!
Of course it is... but there might be some dissent [webmasterworld.com] although for most of us in that thread it's more like the troublesome lover you just can't quit.
One tip that's actually relevant. When you get a lot of CCK fields, it can be hard to figure out what field names you need to use in your template, which ones are scrubbed and which aren't and so on.
What I do is I install the contemplate module. You can either use it directly to build a template, or you can use it to get all the variable names and put them in your template. I have NOT benchmarked it, but generally each module adds a bit of load and I find file-based templates simpler to manage. So once the template file is coded, I just uninstall the contemplate module.