WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<div class="anynews"><section> <div class="posts"> <article><h2>{TXT_HEADER}</h2><!-- BEGIN news_block --><a href="#" class="image"><img src={GROUP_IMAGE} alt="" /></a> <h3>{TITLE}</h3> <p>{CONTENT_SHORT}</p><!-- BEGIN readmore_link_block --><ul class="actions"> <li><a href={LINK} class="button">{TXT_READMORE}</a></li> </ul><!-- END readmore_link_block --></article><!-- END news_block --> </div></section></div>
$config = array( 'group_id_type' => 'group_id', 'group_id' => 5, 'display_mode' => 11, '$max_news_length' => -1, 'max_news_items' => 3,'allowed_tags' => '<p><a>', 'custom_placeholder' => array('IMG_LINK' => '%img%'));echo getNewsItems($config);
// remove tags from short and long text if defined // $row['content_short'] = ($strip_tags) ? strip_tags($row['content_short'], $allowed_tags) : $row['content_short']; // $row['content_long'] = ($strip_tags) ? strip_tags($row['content_long'], $allowed_tags) : $row['content_long']; // remove tags from short and long text if defined $row_content_short = ($strip_tags) ? strip_tags($row['content_short'], $allowed_tags) : $row['content_short']; $row_content_long = ($strip_tags) ? strip_tags($row['content_long'], $allowed_tags) : $row['content_long'];/* // shorten news text to defined news length (-1 for full text length) if ($max_news_length != -1 && strlen($row['content_short']) > $max_news_length) { // truncate text if user asked for using CakePHP truncate function $row['content_short'] = truncate($row['content_short'], $max_news_length); }*/ // shorten news text to defined news length (-1 for full text length) if ($max_news_length != -1 && strlen($row_content_short) > $max_news_length) { // truncate text if user asked for using CakePHP truncate function $row_content_short = truncate($row_content_short, $max_news_length); }
// 'CONTENT_SHORT' => $row['content_short'], // 'CONTENT_LONG' => $row['content_long'], 'CONTENT_SHORT' => $row_content_short, 'CONTENT_LONG' => $row_content_long,