Skip to main content
deleted 4 characters in body
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

Create a custom template file node--type.tpl.php where type is the machine name of your content type.

Place it in your theme's templatetemplates folder /sites/all/themes/YOURTHEME/templates and clear/flush the cache to see changes.

Ex: Article content type: node--article.tpl.php

<?php print render($content['field_xxx']); ?>

// custom html goes here

<?php print render($content['field_yyy']); ?>

Create a custom template file node--type.tpl.php where type is the machine name of your content type.

Place it in your theme's template folder and clear/flush the cache to see changes.

Ex: Article content type: node--article.tpl.php

<?php print render($content['field_xxx']); ?>

// custom html goes here

<?php print render($content['field_yyy']); ?>

Create a custom template file node--type.tpl.php where type is the machine name of your content type.

Place it in your theme's templates folder /sites/all/themes/YOURTHEME/templates and clear/flush the cache to see changes.

Ex: Article content type: node--article.tpl.php

<?php print render($content['field_xxx']); ?>

// custom html goes here

<?php print render($content['field_yyy']); ?>
deleted 4 characters in body
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91
  1. Create a custom template file node--type.tpl.php where type is the machine name of your content type. Place it in your theme's template folder and clear/flush the cache.

Create a custom template file node--type.tpl.php where type is the machine name of your content type.

Place it in your theme's template folder and clear/flush the cache to see changes.

Ex: Article content type: node--article.tpl.php

<?php print render($content['field_xxx']); ?>

// custom html goes here

<?php print render($content['field_yyy']); ?>
  1. Create a custom template file node--type.tpl.php where type is the machine name of your content type. Place it in your theme's template folder and clear/flush the cache.

Create a custom template file node--type.tpl.php where type is the machine name of your content type.

Place it in your theme's template folder and clear/flush the cache to see changes.

Ex: Article content type: node--article.tpl.php

<?php print render($content['field_xxx']); ?>

// custom html goes here

<?php print render($content['field_yyy']); ?>
option 2 and 3 don't address the OPers question. He wants to add markup between fields.
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91
  1. Option: Write a custom template file node--type.tpl.php where type is the machine name of your content type.

  2. Make a custom module and use hook_node_view. Here is an example.

    Create a custom template file node--type.tpl.php where type is the machine name of your content type. Place it in your theme's template folder and clear/flush the cache.

Bonus

If you need to add markup to the node/x/edit form

  1. Option: Use the markup module to add custom HTML code.
  1. Option: Write a custom template file node--type.tpl.php where type is the machine name of your content type.

  2. Make a custom module and use hook_node_view. Here is an example.


Bonus

If you need to add markup to the node/x/edit form

  1. Option: Use the markup module to add custom HTML code.
  1. Create a custom template file node--type.tpl.php where type is the machine name of your content type. Place it in your theme's template folder and clear/flush the cache.
added 18 characters in body
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91
Loading
Source Link
geraldo
  • 405
  • 3
  • 19
Loading