- Discussions
- 4 644
- Messages
- 12 049
- Solutions
- 81
- J'aime
- 7 606
- Points
- 198
1. Create the widget
Widget definition: New threadsWidget key:
whatsNewNewThreads
Title: New threads
Display in positions: (NONE)
Maximum entries: 20(+/-, your choice; I chose 20).
Display style: Standard
2. Create the Page node
URL portion: new-threadsTitle: New threads
Parent node: None
Uncheck display in node list
Navigation selection: What's new
Template HTML:
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
3. Create the Route filters
Find route:pages/new-threads
Replace with
whats-new/threads
[X] Enabled
4. Edit the "New threads" into the What's new wrapper bar
Open thewhats_new_wrapper
templateFind:
HTML:
<!--[XF:links:after_featured]-->
Place this below it:
HTML:
<a class="{$baseClass} {{ $pageSelected == 'new_threads' ? {$selectedClass} : '' }}" href="{{ link('whats-new/threads') }}" rel="nofollow">New threads</a>
<!--[XF:links:after_new_threads]-->
5. Add it to the Public navigation
Add navigation buttonNavigation ID:
whatsNewPostsPage
Title: New threads
Parent navigation entry: What's new
Display order: 60 (to be before New posts/After Featured content)
Type: Basic
Link:
{{ link('whats-new/threads') }}
[X] Enabled
6. Notes
You can't get the "New thread" button using this method, which is seen on the "New posts" page. Instead, it will be a Bookmark button, which you can choose to hide with CSS. I've decided to keep it so that members can view the 20 newest threads if they bookmark the page.You also don't get pagination as you would with New posts.
7. Visual
See New posts and New threads attachments on how it appears in the "What's new" navigation bar as well as how it selects the "New threads" tab underneath that.Pièces jointes