Submitted by ivan on Sun, 03/08/2008 - 20:51
Examples of using if and foreach in drupal or general php templates:
<?php if($test == 1): ?>
<div>do something</div>
<?php endif; ?>
<?php if($test == 1): ?>
<div>do something</div>
<?php else: ?>
<div>do something else</div>
<?php endif; ?>
<?php foreach($items as $item): ?>
<?php echo $item->getTitle(); ?>
<?php endforeach; ?>
Submitted by ivan on Sun, 29/07/2007 - 13:54
How hard would it be to secure a drupal site? Not that hard really, all you need is to make sure your hosting has SSL setup and working, then redirect all traffic from HTTP to HTTPS. But is redirecting all the traffic to https the most efficient way? What if you only want the login form or admin section secured? Thankfully there is a module out there to help you out.
Submitted by ivan on Sun, 06/05/2007 - 15:40
With the zen theme you can use CSS tab Designer to customize the primary to what ever you want, from this:
Submitted by ivan on Sat, 05/05/2007 - 19:24
A couple of nights ago i spent 2 hours trying to figure out how to setup a multi-site on DreamHost. What i needed was to run 3 different domains(domain1.com, domain2.com, domain3.com) off one code base but running off separate databases.