# Anderes Thema für die Liste der persönlichen Nachrichtenthemen?

**URL:** <https://meta.discourse.org/t/different-theme-for-personal-message-topics-list/291533>\
**Category:** Development\
**Tags:** personal-messages\
**Created:** [13. Januar 2024 um 18:38 UTC](https://meta.discourse.org/t/different-theme-for-personal-message-topics-list/291533 "2024-01-13T18:38:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)\
**Post date:** [14. Januar 2024 um 07:55 UTC](https://meta.discourse.org/t/different-theme-for-personal-message-topics-list/291533/3 "2024-01-14T07:55:11Z")

</div>

Vielen Dank, ich konnte es mit einer Theme-Komponente fast zum Laufen bringen:

```js

    
      {{~raw-plugin-outlet name="topic-list-header-before"~}}
      {{#if bulkSelectEnabled}}
        
          {{#if canBulkSelect}}
            {{raw "flat-button" class="bulk-select" icon="list" title="topics.bulk.toggle"}}
          {{/if}}
        
      {{/if}}
      {{raw "topic-list-header-column" order='default' name='topic.title' bulkSelectEnabled=bulkSelectEnabled showBulkToggle=toggleInTitle canBulkSelect=canBulkSelect}}
      {{#if showLikes}}
          {{raw "topic-list-header-column" sortable='true' order='likes' number='true' forceName=(theme-i18n 'likes')}}
      {{/if}}
      {{#if showOpLikes}}
          {{raw "topic-list-header-column" sortable='true' order='op_likes' number='true' forceName=(theme-i18n 'likes')}}
      {{/if}}
      {{#if topic.isPrivateMessage}}
          {{raw "topic-list-header-column" order='posters' forceName='Participants'}}
      {{/if}}
      {{raw "topic-list-header-column" sortable='true' number='true' order='posts' forceName='Replies'}}
      {{raw "topic-list-header-column" sortable='true' order='activity' forceName='Last Post'}}
    
  

    {{#if bulkSelectEnabled}}
      
        
          
        
      
    {{/if}}
    
      {{~raw-plugin-outlet name="topic-list-before-status"}}
      {{raw "topic-status" topic=topic}}
      {{~topic-link topic class="raw-link raw-topic-link"}}
      {{~#if showTopicPostBadges}}
        {{~raw "topic-post-badges" unreadPosts=topic.unread_posts unseen=topic.unseen url=topic.lastUnreadUrl newDotText=newDotText}}
      {{~/if}}
      {{discourse-tags topic mode="list" tagsForUser=tagsForUser}}
      {{#if expandPinned}}
        {{raw "list/topic-excerpt" topic=topic}}
      {{/if}}
      
        {{#unless hideCategory}}
          {{#unless topic.isPinnedUncategorized}}
            {{category-link topic.category}}
          {{/unless}}
        {{/unless}}
        {{~#if topic.creator ~}}
          {{topic.creator.username}} {{format-date topic.createdAt format="tiny"}}
        {{~/if ~}}
        {{raw "list/action-list" topic=topic postNumbers=topic.liked_post_numbers className="likes" icon="heart"}}
      
    
    
    {{#if showLikes}}
      
        {{#if hasLikes}}
          
            {{number topic.like_count}} {{d-icon "heart"}}
          
        {{/if}}
      
    {{/if}}
    
    {{#if showOpLikes}}
      
        {{#if hasOpLikes}}
          
            {{number topic.op_like_count}} {{d-icon "heart"}}
          
        {{/if}}
      
    {{/if}}
    
    {{#if topic.isPrivateMessage}}
      {{raw "list/posters-column" posters=topic.featuredUsers}}
    {{/if}}
    
    {{raw "list/posts-count-column" topic=topic}}
    
      
        
          {{avatar topic.lastPosterUser imageSize="medium"}}
        
      
      
        
          {{format-date topic.bumpedAt format="tiny"}}
        
        
          {{topic.last_poster_username}}
        
      
    
  

```

Es scheint, dass die Anweisung `#if topic.isPrivateMessage` für die `topic-list-header` nicht funktioniert, daher werden die PM-Teilnehmer-Avatare wie erwartet angezeigt, aber die Header fehlen ein `<td>`, sodass alles verschoben ist.

---

_[View the full topic](https://meta.discourse.org/t/different-theme-for-personal-message-topics-list/291533)._
