• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Dev Development

Separate page-title and header-title for index page.

m2712
May 12, 2018
chat_bubble_outline 2
  • link
    m2712
    Members 50 posts
    May 12, 2018, 3:46 p.m. May 12, 2018, 3:46 p.m.
    link

    I don't know if i'm doing something wrong, but this a real headache. I'm interested in having the page-header on the index page called ie. "Home" but have the page-title say ie. "Misage Project". When trying to edit the template files, it works for a second when the page is refreshed, but is quickly overriden by what i'm assuming is the js.

    Would it be possible to separate these two things?

    Best regards
    Mike

    David likes this.

    favorite 1

  • link
    rafalp
    Project Lead 2028 posts
    May 14, 2018, 1:47 a.m. May 14, 2018, 1:47 a.m.
    link

    You are experiencing what is called hybrid or combined approach to application design, where html templates rendered by server are duplicated and expanded in the client with JavaScript. This makes Misago appear to run very fast and makes it harder to notice the delay before JavaScript loads for first time, but also makes it confusing to customize looks. The issue you are bringing here comes up all the time:

    misago-project.org/t/category-customization/358/
    misago-project.org/t/how-to-change-the-thread-template/396/
    misago-project.org/t/category-customization/358/
    misago-project.org/t/customizing-misago/520/
    misago-project.org/t/how-to-custom-the-thread-page/573/
    misago-project.org/t/add-title-to-categories-redis-and-updating/456/

    ...and after having dealt with it for two years, I can say that it was bad idea to have static HTML fallback for React.js application, as it turned out not only annoyingly time consuming to implement changes to the theme, it is also confusing to people trying to customize theme further

    Would it be possible to separate these two things?

    Not really. React.js component needs to takeover anything between navbar and footer to work as we are also updating the header when user navigates to other category.

    Short term solution would be adding new setting to "general" settings, but adding settings for customizing how things look to the admin panel is something I'm weary of. I've used to have bunch of settings controlling how things were displayed in my first forum software, and that was nightmare to maintain.

    In long run I would like to have a way for people to customize Misago easily via "page builder" in our admin panel, but thats years away.

    mike likes this.

    favorite 1

  • link
    m2712
    Members 50 posts
    May 14, 2018, 6:48 p.m. May 14, 2018, 6:48 p.m.
    link

    Allright, I'll do with having both pages say "Home".
    Thanks for the answer :-)

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago