Forum Discussion

arthur_'s avatar
arthur_
Guide
7 years ago

Recent post quilts

Hi,

 

We are trying to modify recent post cards on ForumPage, TkbPage, IdeaExchangePage and BlogPage sections.

 

Unfortunately it appears that only Idea page card's quill is available in studio (as Idea Message Item).

 

Are Forum, TKB and Blog page recent post card quilts actually exposed? So far I have tried to find them, but as naming isn't always consistent in Community, maybe I'm overlooking something. Also, if those quilts are not available; is it something that Lithium's support can expose or it's off limits?

 

Thank you very much for your advice!

 

  • arthur_

    It seems these are the custom cards? If yes, there should be the custom component for these cards where you can update the required change. We have a similar structure for cards see here 

  • arthur_

    It is the custom component so I can not even guess the name. But you can check it easily. 

    1. Go to studio > page > Choose the page as Blog Page https://prnt.sc/j14h0r

    2. See the related component(in my case it was customBlogPageCards see here https://prnt.sc/j14h0r)

     

    If you did not find the component here then you need to check the page mapping for the respected blog under Admin > content > custom pages > Blog Page

    See here https://prnt.sc/j14ljm

    If the value is not as default it means it is mapped to some other custom page, in this case, you have to check the component on the mapped custom  page

    See  here https://prnt.sc/j14nle 

     

    • arthur_'s avatar
      arthur_
      Guide

      Thank  you for replying VikasB

       

      Basically we are trying to implement the following:

       

      • remove the native date component, and replace it with a custom component that would show date in alphanumeric way instead of numeric format
      • add information about the last person who commented and/or edited the article (exact behavior depends on the type of the discussion, but generally this information should appear on the card)

       

      Since those quilts are not exposed, we attempted to re-build everything as custom components. It works fine, apart from that Lithium API does not exposes data for moderation (if moderator has viewed the post) and does not allow to sort by edit date. 

       

      Both of those features cannot really be used in custom components (at least in performant way without querying database for everything and manually  sorting the data), while native components have them.

       

      Because of that I'm again trying to explore possibility to modify native components (maybe something was overlooked).


      In the worst case, everything could be done using javascript, but again it's rather terrible solution since swapping dates as page loads/has loaded would turn out rather ugly (of course, we could always hide content, show some loading spinner, perform query to database, manipulate DOM and again show content), but I would really prefer to avoid doing something like that.

      • VikasB's avatar
        VikasB
        Boss

        arthur_

        Yes, you can change the quilt for the required pages. We have done the same thing see here https://prnt.sc/j0qcg7. You have to modify the message quilt for the respected conversation type i.e. forum, blog, idea etc. 

        If you want to modify it for the forums then you have to change it in Forum Message quilt see here https://prnt.sc/j0qeba

        For the blog, it would be Blog Message quilt see here https://prnt.sc/j0qg40