Force Mobile Homepage

:information_source: Summary Force a different homepage for users visiting the site from a small viewport (e.g. mobile)
:eyeglasses: Preview Theme Creator
:hammer_and_wrench: Repository GitHub - tshenry/discourse-force-mobile-homepage · GitHub
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Currently the default homepage settings found in the admin panel and user preferences apply to both desktop and mobile. This is a very simple theme component that will allow you to specify a different default homepage for the small viewport version of your Discourse forum.

It is important to note that this will force anyone using a small viewport to navigate to the homepage you choose with this theme component. Your users will not be able to override the default homepage for the small viewport context via their user preferences at this point.

Theme Settings

There is one setting that will allow you to set the alternative homepage to one of the following:

  • latest (default)
  • new
  • top
  • categories
  • hot

Potential future work ideas

  • Allow users to override the default set via this component.
57개의 좋아요

Works like a charm. This is great mate!

4개의 좋아요

Great little component, just what I needed for my community!

Many thanks.

1개의 좋아요

Can you please integrate this into core settings.

Sitewide default in settings for mobile and desktop.

And user setting in user profile settings for mobile and desktop.

:wink:

9개의 좋아요

모바일과 데스크톱에 각각 다른 홈 페이지 기능을 기본 설정에 포함하는 것에 +1입니다.

10개의 좋아요

유용한 컴포넌트를 제공해 주셔서 감사합니다.
도움을 요청드립니다. 모바일에서는 기본적으로 "최신"이 표시되지만, 주제 목록 위 상단 드롭다운 메뉴에서 "카테고리"를 선택할 수 있는 옵션이 없습니다.

제가 찾고 있던 바로 그거네요 - 이 작은 컴포넌트 덕분에 감사합니다!

3개의 좋아요

훌륭해요, 감사합니다 :folded_hands::folded_hands::folded_hands::folded_hands:

1개의 좋아요

이것을 만들어 주셔서 감사합니다! :handshake: 메인 Discourse 앱이 계속 발전하고 업데이트되면서 향후 호환성은 어떻게 되나요? 아니면 테마 컴포넌트가 그 점에서 꽤 미래 지향적인가요?

2개의 좋아요

이 Theme 컴포넌트는 정말 간단하고, 내 생각에는 거의 완벽에 가깝습니다! 설정이나 복잡한 기능 없이 CSS와 HTML 몇 줄로만 이루어져 있거든요.

3개의 좋아요

여전히 이것이 추가 설정으로 코어에 병합되어야 한다고 생각합니다. 정말로 매우 유용하니까요!

11개의 좋아요

훌륭하고 간단한 작은 컴포넌트입니다.

물론, 파워 유저들은 자신만의 오버라이드 설정을 할 수 있도록 해달라는 요청을 바로 보내기 시작했습니다.

이것은 일반 사용자의 압도적 다수를 충족시키지만, 상위 1%의 파워 유저들 사이에서 개인적으로 오버라이드할 수 있는 기능에 대한 수요가 여전히 존재합니다.

동의합니다. 7년 동안 업데이트되지 않았지만, 여전히 Discourse 소유자들이 사용하고 있습니다.

1개의 좋아요

이것은 업데이트가 필수인 필수 플러그인 중 하나입니다!:folded_hands:

여기 PR에서 업데이트했습니다: DEV: update to initializer - Pull Request #3 - tshenry/discourse-force-mobile-homepage - GitHub

@tshenry 시간 나실 때 확인해 주시고 병합해 주실 수 있을까요?

7개의 좋아요

병합했습니다! PR 올려주셔서 감사합니다!

8개의 좋아요

브라우저의 개발자 콘솔에서 이 멋진 테마 컴포넌트에 대한 비추천(deprecation) 알림을 받았습니다:

[THEME 50 ‘Force Mobile Homepage’] 비추천 알림: 사이트 초기화 중에 site.mobileView 또는 site.desktopView에 접근하면 브라우저 창 크기가 조정될 때 오류와 일관성 문제가 발생할 수 있습니다. 이러한 확인 로직을 페이지 렌더링 중에 실행되는 컴포넌트, 트랜스포머 또는 API 콜백으로 이동해 주세요. [Discourse 3.5.0.beta9-dev부터 비추천] [deprecation id: discourse.static-viewport-initialization] [info: Designing for Different Devices (Touch & Hover)]

2개의 좋아요

네, 같은 거예요. 제게 남은 유일한 비추천(deprecation) 공지 중 하나네요…

1개의 좋아요

이것도 기능(capabilities) 변경으로 인한 또 다른 피해 사례입니다.

기기 유형에 따라 특정 탐색 경로를 홈페이지로 로드하는 새로운 최선의 방법은 무엇인가요?

6개의 좋아요

@merefield 님이 말씀하신 대로:neutral_face:

2개의 좋아요