Jump to main content Jump to doc navigation

Вместо таблиц ниже может быть удобнее документация контроллеров Discuss.

Карта chunks и плейсхолдеров страниц

На этой странице перечислены плейсхолдеры каждой страницы и chunks, которые они используют.

Часто используемые плейсхолдеры

Эти плейсхолдеры встречаются на большинстве страниц и всегда используют одни и те же chunks:

Placeholder Chunks
trail breadcrumbs/disBreadcrumbsLink
breadcrumbs/disBreadcrumbsActive Текст активной крошки
breadcrumbs/disBreadcrumbs Обёртка всей цепочки
boards board/disLastPostBy
board/disSubForumLink Поддоски в строке доски
category/disCategoryLi Строка категории
board/disBoardLi Каждая доска
actionbuttons Chunks пока нет, UL с классами 'dis-action-btns right' и li для каждой кнопки
pagination pagination/PaginationLink
pagination/PaginationActive Текст активной страницы
pagination/PaginationWrapper Обёртка pagination
usermenu disUserMenu

home.tpl

Placeholder Chunks
recent_posts post/disPostLi
activeUsers user/disActiveUserRow

board.tpl

Placeholder Chunks
posts post/disBoardPost
board/disLastPostBy Часть «last post by»
readers Строка a-тегов
moderators Строка a-тегов

thread/index.tpl

Placeholder Chunks
posts - post/disThreadPost Каждый пост в теме
post/disThreadPostPrint Заменяет предыдущий chunk при Print Thread
post/disPostAttachment Каждое вложение поста
readers Строка a-тегов
threadactionbuttons - disActionButton Каждая кнопка
disActionButtons Обёртка всех кнопок

thread/new.tpl

Placeholder Chunks
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Игнорируйте. Всегда пусто.

thread/reply.tpl

Placeholder Chunks
thread_posts post/disThreadPost - Каждый пост в теме
post/disThreadPostPrint Заменяет предыдущий chunk при Print Thread
post/disPostAttachment Каждое вложение поста
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Игнорируйте. Всегда пусто.

thread/modify.tpl

Placeholder Chunks
thread_posts post/disThreadPost
post/disThreadPostPrint Заменяет предыдущий chunk при Print Thread
post/disPostAttachment Каждое вложение поста
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Игнорируйте. Всегда пусто.

thread/move.tpl

Placeholder Chunks
boards board/disBoardOpt - Набор option-тегов

thread/preview.tpl

Placeholder Chunks
post post/disPostPreview

thread/recent.tpl

Placeholder Chunks
recent_posts post/disPostLi

thread/unread.tpl

Placeholder Chunks
threads post/disPostLi

thread/unread_last_visit.tpl

Placeholder Chunks
threads post/disPostLi

post/track.tpl

Placeholder Chunks
posts post/disPostLi

user/ignoreboards.tpl

Placeholder Chunks
boards disBoardCheckbox - Каждая доска и её checkbox
disBoardCategoryIb Каждая категория с плейсхолдером для вложенных досок

user/index.tpl

Placeholder Chunks
recent_posts post/disPostLi

user/subscriptions.tpl

Placeholder Chunks
subscriptions user/disUserSubscriptionRow

messages/index.tpl

Placeholder Chunks
messages message/disMessageLi

messages/modify.tpl

Placeholder Chunks
thread_posts post/disThreadPost - Каждый пост в теме
post/disThreadPostPrint Заменяет предыдущий chunk при Print Thread
post/disPostAttachment Каждое вложение поста
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Игнорируйте. Всегда пусто.

messages/new.tpl

Placeholder Chunks
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Игнорируйте. Всегда пусто.

messages/reply.tpl

Placeholder Chunks
thread_posts post/disThreadPost - Каждый пост в теме
post/disThreadPostPrint Заменяет предыдущий chunk при Print Thread
post/disPostAttachment Каждое вложение поста
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Игнорируйте. Всегда пусто.

messages/view.tpl

Placeholder Chunks
posts post/disThreadPost - Каждый пост в теме
post/disThreadPostPrint Заменяет предыдущий chunk при Print Thread
post/disPostAttachment Каждое вложение поста
readers Строка a-тегов
threadactionbuttons disActionButton - Каждая кнопка
disActionButtons - Обёртка всех кнопок

search.tpl

results disSearchResult
boards board/disBoardOpt - Набор option-тегов

Смотрите также

  1. Discuss.Installation
    1. Discuss.Installation from Git
  2. Discuss.Getting Started
  3. Discuss.Creating a Discuss Theme
  4. Discuss.Controllers
    1. Discuss.Controllers.board
      1. Discuss.Controllers.board.xml
    2. Discuss.Controllers.home
    3. Discuss.Controllers.login
    4. Discuss.Controllers.logout
    5. Discuss.Controllers.profile
    6. Discuss.Controllers.register
    7. Discuss.Controllers.search
    8. Discuss.Controllers.thread
  5. Discuss.Database Model
  6. Discuss.Contributing
  7. Discuss.ChunkMap
  8. Discuss.Features
  9. Configuring Sphinx for Search

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • Alex
  • A. Moreno
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • deJaya
  • JT Skaggs
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$204 per month—let's make that $500!

Learn more