views:

17

answers:

0

I'm using Drupal 6 with authcache. I've read that you can load dynamic content by using ajax, even when the whole page is cached with authcache. In my template files, I've used this code to show Edit and Delete links:

<?php if ($user->uid == $node->uid || in_array('moderator', array_values($user->roles))|| $user->uid == 1): ?> <span class="edit"><?php print l('Edit', 'node/' . $nid . '/edit'); ?></span> <span class="delete"><?php print l('Delete', 'node/' . $nid . '/delete'); ?></span> <?php endif; ?>

This checks if the user is either: The owner of the content, a moderator, or the super administrator. How could I make that part load with ajax?