вредный модератор


Зарегистрирован: Mar 2003
Место проживания:
Публикаций: 987
Статус:  |
Тэг: weblog_headlines()
<?php weblog_headlines(); ?>
<?php weblog_headlines_alt(); ?>
Шаблон: Weblog > Weblog Headlines Templates
Описание:
Weblog headlines are short excerpts from your most recent entries. Headlines can appear on a different page than your weblog. If, for example, the main page of your site is not your weblog, you can place the most recent "headlines" on the page as a teaser to your weblog.
Each headline can display any or all of the following information:
The title of your weblog entry.
Any entire field from your entries (blurb, body, more, etc.).
A limited number of words from the body of the entry.
A link to either the weblog page the headline is from, or the actual entry (permalink).
You'll find a "headlines" template in the control panel, which allows you to customize the look of your headlines. As with most templates, there are parameters, which let you customize what gets displayed.
Optional Parameters:
There are four optional parameters, which can be added to the tag:
Which weblog. The first parameter in the tag lets you choose whether to show headlines from all of your weblogs or only a specific one. You can also use the word "all", to show headlines from all of your weblogs combined.
Number of headlines. The second parameter specifies how many headlines should be displayed.
Number of words from the body. This is an optional third parameter, needed only if you want to limit the number of words from the body of your entry. In addition to a number, you can use the word "all" if you do not want to impose a limit.
Category. This is an optional fourth parameter which lets you further sort entries by category.
This is how the tag will look using parameters:
<?php weblog_headlines("all","3","30","personal"); ?>
Note: If you need to use some of the parameters, but not all of them, you can put a set of empty quotes in place of the parameter. For example:
<?php weblog_headlines("","","","personal"); ?>
kuchev добавил 23-03-2004 в 15:34:50:
<?php weblog_headlines("all","3","30","personal"); ?>
Первый изменяемый параметр (all) - это заголовки какого из днеников тебе нужно показывать. Ты можешь поставить all - тогда будут показываться все статьи из всех дневников.
Второй изменяемый параметр - сколько статей ты хочешь показать.
Третий - сколько слов брать из поля body для показа.
Четвертый - категория.
Ты можешь оставить несколько полей пустыми, тогда твой тег будет выглядеть примерно так:
<?php weblog_headlines("","","","personal"); ?>
Сообщить модератору об этом сообщении | Предупреждение | IP: определен
|