Jump to main content Jump to doc navigation

You may find the Discss Controller documentation easier to use than the below placeholder coverage.

Map of Chunks to Page Placeholders

This page outlines all the placeholders for each page that use related chunks, and notes which chunks those placeholders use.

Commonly-Used Placeholders

These placeholders are used across most pages and always use the same chunks:

Placeholder Chunks
trail breadcrumbs/disBreadcrumbsLink
breadcrumbs/disBreadcrumbsActive For an active crumb text
breadcrumbs/disBreadcrumbs The entire crumbs wrapper
boards board/disLastPostBy
board/disSubForumLink For any sub-boards in the board row
category/disCategoryLi For the category row
board/disBoardLi For each board
actionbuttons No chunks currently, but a UL tag with classes 'dis-action-btns right' and li tags for each button
pagination pagination/PaginationLink
pagination/PaginationActive Text for the active page
pagination/PaginationWrapper The wrapper for the pagination
usermenu disUserMenu

home.tpl

Placeholder Chunks
recent_posts post/disPostLi
activeUsers user/disActiveUserRow

board.tpl

Placeholder Chunks
posts post/disBoardPost
board/disLastPostBy For the "last post by" part
readers Just a string of a tags
moderators Just a string of a tags

thread/index.tpl

Placeholder Chunks
posts - post/disThreadPost For each post in the thread
post/disThreadPostPrint Replaces prior chunk if Print Thread is clicked
post/disPostAttachment For each attachment on the post
readers Just a string of a tags
threadactionbuttons - disActionButton For each button
disActionButtons Wrapper of all buttons

thread/new.tpl

Placeholder Chunks
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Ignore this. Always empty.

thread/reply.tpl

Placeholder Chunks
thread_posts post/disThreadPost - For each post in the thread
post/disThreadPostPrint Replaces prior chunk if Print Thread is clicked
post/disPostAttachment For each attachment on the post
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Ignore this. Always empty.

thread/modify.tpl

Placeholder Chunks
thread_posts post/disThreadPost
post/disThreadPostPrint Replaces prior chunk if Print Thread is clicked
post/disPostAttachment For each attachment on the post
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Ignore this. Always empty.

thread/move.tpl

Placeholder Chunks
boards board/disBoardOpt - A collection of option tags

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 - For each board and its checkbox
disBoardCategoryIb For each Category, with a placeholder for its nested boards

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 - For each post in the thread
post/disThreadPostPrint Replaces prior chunk if Print Thread is clicked
post/disPostAttachment For each attachment on the post
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Ignore this. Always empty.

messages/new.tpl

Placeholder Chunks
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Ignore this. Always empty.

messages/reply.tpl

Placeholder Chunks
thread_posts post/disThreadPost - For each post in the thread
post/disThreadPostPrint Replaces prior chunk if Print Thread is clicked
post/disPostAttachment For each attachment on the post
attachment_fields post/disAttachmentFields
buttons disPostButtons
discuss.error_panel Ignore this. Always empty.

messages/view.tpl

Placeholder Chunks
posts post/disThreadPost - For each post in the thread
post/disThreadPostPrint Replaces prior chunk if Print Thread is clicked
post/disPostAttachment For each attachment on the post
readers Just a string of a tags
threadactionbuttons disActionButton - For each button
disActionButtons - Wrapper of all buttons

search.tpl

results disSearchResult
boards board/disBoardOpt - A collection of option tags

See Also

  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
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Digital Penguin
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Following Sea
  • Anton Tarasov
  • eydolan
  • Raffy
  • Lefthandmedia
  • Murray Wood
  • Snow Creative
  • Nick Clark
  • Helen
  • JT Skaggs
  • krisznet
  • YJ
  • Yanni
  • Richard

Budget

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

Learn more