Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Note: the php function strip_tags() gets rid of any HTML tags - such as <p></p>. It may be you prefer to keep them - in which case omit the strip_tags function as below or use an alternative function to suite your needs.
Comments
Comment #1
mikee commentedWithin the job_posting.module file update the function template_preprocess_job_posting_node_display() to include the following line:
Note: the php function strip_tags() gets rid of any HTML tags - such as
<p></p>. It may be you prefer to keep them - in which case omit the strip_tags function as below or use an alternative function to suite your needs.After which, the auto generated summary/teaser of the body/description becomes available for use within "job-posting-node.tpl.php".
For example the below will display it only on the job listing page.
I hope this helps.
Comment #2
gmarus commented