Вывод новостей три колонки с миниатюрой изображения
Roffun |
|
---|---|
#44140 DOS-info:Но ни чего не происходит на главной как небыло пагинации так ее и нет ... Логично, потому что нужно заглядывать по рекомендуемым ссылкам в документацию, например посмотреть описание функции page_enum(). modules\page\inc\page.functions.php at line 764 cot_page_enum public string cot_page_enum(mixed categories, integer count, string template, string order, string condition, mixed active_only, boolean use_subcat, boolean exclude_current, string blacklist, string pagination, integer cache_ttl) Generates page list widget Parameters: categories - Custom parent categories code count - Number of items to show. 0 - all items template - Path for template file order - Sorting order (SQL) condition - Custom selection filter (SQL) active_only - Custom parent category code use_subcat - Include subcategories TRUE/FALSE exclude_current - Exclude the current page from the rowset for pages. blacklist - Category black list, semicolon separated pagination - Pagination symbol cache_ttl - Cache lifetime in seconds, 0 disables cache Returns: Parsed HTML Обратите внимание на: count - Number of items to show. 0 - all items и на: pagination - Pagination symbol Это значит, что нужно:
Добавлено 7 минут спустя: #44112 DOS-info:{PHP|cot_page_enum('',8,'index','page_date DESC','',true,true,true,'system,archive','',0)} В код вызова нужно внести изменения, например: {PHP|cot_page_enum('',0,'index','page_date DESC','',true,true,true,'system,archive','ind',0)} Даже предвижу следующий вопрос по пагинации, так как судя по коду, появится не всё.. Добавлено 13 минут спустя: В общем я фикс предложил, сделайте как в этой правке. Улетел на другую планету, а там почты нету.. https://www.cotonti.com/forums/45298?m=posts
|
|
Відредаговано: Roffun (01.03.2019 13:01, 6 років тому) |