Can glossify work with contemplate? When I changed the template for a content type and printed $node->content['body']['#value'] it broke Glossify. Is there a solution to this?

Comments

rsvelko’s picture

glossify modifies the $node->body via hook_nodeapi $op:alter currently

the latest version parses html correctly but I noticed that despite $node->body we have this $node->content... stuff

maybe we need to modify node->content instead of node->body .....

krisrobinson’s picture

Does anyone know if this is going to go anywhere?

rsvelko’s picture

I the maintainer do not have enough info on that matter.
Does anybody has an informed proposal?

My guess here is that since glossify does not save the links into the node but rather creates the links when you view the nodes ONLY, it does not seem to work with contemplate... Maybe also cause contemplate bypasses somehow the core drupal way of displaying a node...

In other words - for some reason Contemplate does things to a node that prevent glossify's autolinking...

Anonymous’s picture

rsvelko

I know very little of this module, but as you have shown interest in alinks, and it has got me interested in your merger idea, maybe the following may give ideas for a possible solution, its one that was provided for CCK fields in alinks. In general alinks auto applies to body

In alinks if I want to affect a CCK field I use the following

<?php 
      $words = alinks_get_strings();
        if ($words) { 
                 print (alinks_make_links($item['view'], $words));
                    }
?>

In use example

  <div class="field-items">
    <?php foreach ((array)$myfield as $item) { ?>
      <div class="field-item"><?php 
      $words = alinks_get_strings();
        if ($words) { 
                 echo"<br />";
                 print (alinks_make_links($item['view'], $words));
                    }
?></div>
    <?php } ?>
  </div>

Not sure if its of use

WorldFallz’s picture

Status: Active » Closed (won't fix)

unsupported version