Это функция называется не I (И), а [ru-api=l]L[/ru-api] (ЭЛЬ). А разные параметры запроса в том числе сылка добавляются при ее создании в третьем параметре. Подробнее в API по ссылке. $options An associative array of additional options, with the following keys: 'attributes' An associative array of HTML attributes to apply to the anchor tag. 'query' A query string to append to the link, or an array of query key/value properties. 'fragment' A fragment identifier (named anchor) to append to the link. Do not include the '#' character. 'absolute' (default FALSE) Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. 'html' (default FALSE) Whether the title is HTML, or just plain-text. For example for making an image a link, this must be set to TRUE, or else you will see the escaped HTML. 'alias' (default FALSE) Whether the given path is an alias already.
ну описание модулей я по ангилйски понимаю и половину документации, а в данном случае я бы по-русски не сразу понял бы, то что нужно третим параметром в цикле передавать я то понял а каким индексом что и т.п. не понял.
Комментарии
Это функция называется не I (И), а [ru-api=l]L[/ru-api] (ЭЛЬ). А разные параметры запроса в том числе сылка добавляются при ее создании в третьем параметре. Подробнее в API по ссылке.
$options An associative array of additional options, with the following keys: 'attributes' An associative array of HTML attributes to apply to the anchor tag. 'query' A query string to append to the link, or an array of query key/value properties. 'fragment' A fragment identifier (named anchor) to append to the link. Do not include the '#' character. 'absolute' (default FALSE) Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. 'html' (default FALSE) Whether the title is HTML, or just plain-text. For example for making an image a link, this must be set to TRUE, or else you will see the escaped HTML. 'alias' (default FALSE) Whether the given path is an alias already.
спасибо, но у меня очень плохо с английским, я читал документацию,но к сожалению так ничего и не понял
нужно в таком виде:
<?php
$option = array(
'query' => 'page=3',// на четвертую страницу
'attributes' => array(
'title' => 'Перейти на последний камент' // титл ссылки при наведении
),
'fragment' => 'comment-121312' // то что после знака #
);
print l( 'Последний камент','node/11',$option);
?>
ссылка будет в виде:
ну описание модулей я по ангилйски понимаю и половину документации, а в данном случае я бы по-русски не сразу понял бы, то что нужно третим параметром в цикле передавать я то понял а каким индексом что и т.п. не понял.
спасибо помогло!!!