wiki:plugin:pagelist
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версия | |||
wiki:plugin:pagelist [2024/08/26 08:40] – vladpolskiy | wiki:plugin:pagelist [Дата неизвестна] (текущий) – внешнее изменение (Дата неизвестна) 127.0.0.1 | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ======Blog для «ДокуВики»====== | + | ======PageList |
- | {{: | + | {{: |
- | * **Релиз: | + | * **Релиз: |
- | * **Репозиторий: | + | * **Репозиторий: |
* **Совместимость с «Докувики»: | * **Совместимость с «Докувики»: | ||
Строка 10: | Строка 10: | ||
Сообщайте об ошибках или просьбах о новых функциях в [[https:// | Сообщайте об ошибках или просьбах о новых функциях в [[https:// | ||
+ | **Примечание по обновлению** : в августе 2023 года стиль CSS немного изменился. Конкретные стили для каждой ячейки заменяются более общими стилями. Также все стили, кроме **simplelist**, | ||
=====Монтаж===== | =====Монтаж===== | ||
Строка 18: | Строка 18: | ||
- распаковать его в< | - распаковать его в< | ||
- войдите как администратор и измените плагин в менеджере конфигурации | - войдите как администратор и измените плагин в менеджере конфигурации | ||
- | ===== Installation | + | =====Применение===== |
- | + | ||
- | ^ Download | + | |
- | ^ BundleHub | + | |
- | ^ Tips | If you intend to use this plugin be sure to take a look at the [[tips: | + | |
- | + | ||
- | ===== Syntax ===== | + | |
- | + | ||
- | === Blog === | + | |
- | + | ||
- | {{blog> | + | |
- | + | ||
- | ^ [namespace] | namespace for the blog; subspaces will be searched as well; '' | + | |
- | ^ [number] | number of entries to show per page | optional; default is 5 | | + | |
- | ^ [flags] | flags are delimited by ''&'' | + | |
- | ^ ::: | all [[include# | + | |
- | ^ ::: | Form placement: '' | + | |
- | ^ ::: | Custom new-entry form title: '' | + | |
- | ^ ::: | Hide paging controls: '' | + | |
- | + | ||
- | This includes a specified number of most recent blog entries from the given namespace into the current page. Below the entries a link to the page (permalink), | + | |
- | + | ||
- | Note that when the page with the blog syntax is in the specified namespace, content my be shown twice. At some point, the loop will be detected and stopped. You should therefore make sure that either the page with the listing is in a different namespace or use the '' | + | |
- | + | ||
- | + | ||
- | === Archive === | + | |
- | + | ||
- | {{archive> | + | |
- | + | ||
- | ^ [namespace] | the namespace for which you want an archive list; '' | + | |
- | ^ [month] | the month for the archive list in YYYY-MM format; '' | + | |
- | ^ [flags] | pagelist flags delimited by ''&'', | + | |
- | ^ [username] | username of an author | optional | | + | |
- | + | ||
- | + | ||
- | Shows a table with all pages of the given namespace that were created in the specified month. | + | |
- | + | ||
- | {{autoarchive> | + | |
- | + | ||
- | Creates an automatic archive. | + | |
- | + | ||
- | ===== Configuration and Settings ===== | + | |
- | + | ||
- | The blog plugin can be configured using the DokuWiki configuration manager available in the admin menu. | + | |
- | + | ||
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | ^ '' | + | |
- | + | ||
- | ===== Changes ===== | + | |
- | + | ||
- | * **2013-10-20**: | + | |
- | * **2013-03-27**: | + | |
- | * the syntax that lists everything till now correctly updates the cache now whenever a page is changed or a comment or linkback is added. | + | |
- | * the cache is not used anymore when it contains an archive listing with a page that the current user can't access. The excluded pages won't be included again automatically unless the cache expires for other reasons, the '' | + | |
- | + | ||
- | + | ||
- | ===== Development ===== | + | |
- | + | ||
- | === Change Log === | + | |
- | + | ||
- | {{rss> | + | |
- | + | ||
- | === Bugs / Feature Requests === | + | |
- | + | ||
- | Please report bugs or feature requests at the [[https:// | + | |
- | + | ||
- | + | ||
- | ===== FAQ ===== | + | |
- | + | ||
- | Please also have a look at the [[tips: | + | |
- | + | ||
- | === My dates are shown wrong. What can I do? === | + | |
- | + | ||
- | Make sure you run the latest version of all required plugins and DokuWiki. | + | |
- | + | ||
- | === Is it possible to change the way the date is displayed? === | + | |
- | + | ||
- | Yes, the plugin uses the [[config: | + | |
- | + | ||
- | === How can I alter the date of a blog post? === | + | |
- | + | ||
- | You can use the [[plugin: | + | |
- | + | ||
- | === Is it possible to show table of contents? === | + | |
- | + | ||
- | The table of contents is shown automatically (depending on the settings in DokuWiki itself) from version 2013-02-07 on. | + | |
- | + | ||
- | === The header is always a link to the page even though it's disabled in the include plugin settings | + | |
- | The blog plugin assumes that in the context of a blog the header should be a link. However from version 2013-02-26 on it is possible to disable this behavior by using the '' | + | Просто оберните тегом обычный неупорядоченный список внутренних ссылок %%< |
- | === Is it possible to show just the first lines of each post with a 'Read more' link to view the full post? === | + | < |
+ | < | ||
+ | * [[..: | ||
+ | * [[..: | ||
+ | * [[..: | ||
+ | * [[.. : | ||
+ | * [[..: | ||
+ | </ | ||
+ | </ | ||
- | I think I solved myself. | + | |[флаги]|флаги можно использовать для изменения внешнего вида списка страниц, флаги|необязательный| |
- | In the blog mark, use the following flags | + | |
- | {{blog>? | + | =====Флаги===== |
- | This will work if you add an H2 header (in the full post) where you want to make appear the 'Read more' link. | + | {{tablelayout? |
- | If you don't need or want an H2 header in your post, you can add a empty H2 header, just as a delimiter for the text you want to show in the Blog's headlines | + | ^ Флаг по умолчанию |
+ | | default | ||
+ | | firsthl | ||
+ | | date | показать дату создания или последней модификации | ||
+ | | user | создатель шоу или участники nouser скрыть пользователя | ||
+ | | noheader | ||
+ | | nodesc | ||
+ | | nocomments | ||
+ | | notags | ||
+ | | nosort | ||
+ | | nodiff | ||
+ | | noimage | ||
- | === the excluded_pages does not work === | + | < |
+ | < | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | * [[wiki: | ||
+ | </ | ||
- | In the blog mark ,use the following flags | + | В приведенном выше примере список страниц будет отображать информацию о предоставленных страницах в таблице со строкой заголовка и столбцом комментариев |
- | {{blog> | + | ===== Конфигурация и настройки ===== |
- | or | + | |
- | {{blog> | + | |
- | all above flags does not work, the index pages in sub namespace is still included | + | Плагин можно настроить с помощью менеджера конфигурации DokuWiki, доступного в меню администратора. Эти настройки также применяются к плагинам, |
- | > This is global configuration, you should configure it in '' | + | |style|Стиль списка (по умолчанию, таблица, |
+ | |showheader|Показать заголовок таблицы| | ||
+ | |showdate|Показывает/ | ||
+ | |showuser|Показывает/ | ||
+ | |showdesc|Показывает/ | ||
+ | |showcomments|Показывает/ | ||
+ | |showlinkbacks|Показывает/скрывает обратные ссылки на странице (требуется плагин обратных ссылок )| | ||
+ | |showtags|Показывает/скрывает теги страницы (требуется плагин тегов )| | ||
+ | |sort|Сортирует страницы в алфавитном порядке по имени страницы.| | ||
+ | |showdiff|Отображает столбец различий со значком различий, | ||
+ | |showimage|Показывает/скрывает столбец изображения (требуется плагин [[https:// | ||
+ | =====Вспомогательный плагин===== | ||
+ | Вы можете легко использовать функциональность плагина Pagelist в своих собственных плагинах. Вот базовый фрагмент кода: | ||
- | ===== Discussion ===== | + | <code php> |
+ | $pages | ||
+ | [' | ||
+ | [' | ||
+ | ]; | ||
+ | $pagelist | ||
+ | if (!$pagelist) return false; // failed to load plugin | ||
+ | $pagelist-> | ||
+ | foreach ($pages as $page){ | ||
+ | $pagelist-> | ||
+ | } | ||
+ | $renderer-> | ||
+ | </ | ||
- | Please report bugs or feature requests at the [[https:// | + | С момента выпуска 2017-08-24 функция startList() имеет дополнительный параметр для указания класса CSS для добавления его в класс элемента таблицы: |
- | Is it possible to make a blog in one namespace be in ascending order, and a blog in a different namespace to be in descending order? | + | <code php> |
+ | $pagelist-> | ||
+ | </ | ||
+ | Подробнее см. в разделе [[wiki: | ||
=====Обновление===== | =====Обновление===== | ||
Для обновления удалите исходную папку lib/ | Для обновления удалите исходную папку lib/ | ||
=====Файл для загрузки===== | =====Файл для загрузки===== | ||
- | {{ : | + | {{ : |
=====Лицензия===== | =====Лицензия===== | ||
- | * **Author:** [[freaks@dokuwiki.org|Dokufreaks (previous authors: Michael Hamann, Gina Häußge, Michael Klier, Esther Brunner)]] | + | * **Author:** [[freaks@dokuwiki.org|Dokufreaks (previous authors: |
* **License: | * **License: | ||
- | Это не обязательно, | + | Это не обязательно, |
wiki/plugin/pagelist.1724650804.txt.gz · Последнее изменение: 2024/08/26 08:40 — vladpolskiy