G
G
GFITS2014-06-19 14:20:23
PHP
GFITS, 2014-06-19 14:20:23

How to display additional field in title(DLE)?

How to make a conclusion of a certain add. fields in Title (in news)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kazin8, 2014-06-19
@GFITS

On the Internet:
(the code is written in engine.php)
Create additional. fields pre_title and post_title and use. (prefix and postfix)
pre_title - before title
post_title - after title

$pre_title = '';
$post_title = '';

if ( $xfieldsdata['pre_title'] ) 
  $pre_title = $xfieldsdata['pre_title'] . ' ';
  
if ( $xfieldsdata['post_title'] )
  $post_title =  ' ' . $xfieldsdata['post_title'];

if ($titl_e) $metatags['title'] = $pre_title . $titl_e . $post_title . ' » ' . $config['home_title'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question