Re: [Релиз] Articles
Работает.
Но если вставить
<ul><?php Articles::block(5);?></ul>Как видите нет самого названия статьи, и Read More.
А название отображается только
когда вставишь
<ul><?php Articles::views(5);?></ul>проблему так и не исправили
Блок не выводит часть текста, Новости все прекрасно выводят
Возьми да подправь код в block.view.php, вот тебе код будет выводить вообще все в блоках >_>
<?php foreach($records as $row):
$text = Text::toHtml(File::getContent(STORAGE . DS . 'acticles' . DS . $row['id'] . '.acticles.txt'));
$content_array = explode("{cut}", $text);
?>
<a href="<?php echo $site_url;?>articles/<?php echo $row['id'];?>/<?php echo $row['slug'];?>"><?php echo $row['name'];?></a> /
<b>date:</b> <?php echo Date::format($row['date'], 'd.m.Y');?>
<?php echo Articles::getContentShort($row['id'], true, $articles_url); ?>
<p><?php echo $content_array[0];?>
<a href="<?php echo $site_url;?>acticles/<?php echo $row['id'];?>/<?php echo $row['slug'];?>"><?php echo __('Read more', 'news') ?></a>
</p>
<?php endforeach;?>вот что он выводит через шорткод у меня на главной странице сайта {articles list="block" count=3}:
Number 5 / date: 23.11.2012
It is a long 5
established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content hereRead more
Создание дизайнов любой сложности для Monstra cms

