====== Filter description toplist by niche ====== ~~NOTOC~~ You already know how to create a [[te3:toplist_tutorial2|description toplist]]. Let's filter this toplist by [[te3:niches|niche]]: We'll be using ten fictitious trades (''http://www.yourtrade1.com/'', ''http://www.yourtrade2.com/'', ''http://www.yourtrade1.com/'', ...) for the purpose of this tutorial. If your database is empty at this stage, [[te3:add_trade_single_tutorial|add ten of your trades]]. If your database includes more than ten trades, your results will differ from ours. ---- ===== 1. Add descriptions for your trades: ===== Navigate to the Toplist / [[te3:toplist_descriptions|Descriptions]] menu. Since we'll be using 10 trades in this tutorial, let's add some descriptions for each trade - click {{:te3:add_button.png?nolink|}} icon for each trade and enter your description. \\ {{:te3:tpl_tut_niches3.png?nolink|}} \\ Click {{:te3:button_save.png?nolink|}} button to save your entries. ---- ===== 2. Assign trades to niches: ===== You will have to assign your trades to [[te3:niches|niches]] in order to filter your toplist by niche. We have created four niches and assigned our ten trades to some of them, like this: \\ {{ :te3:tpl_tut_niches5.png?nolink |}} ---- ===== 3. Set your description toplist to filter by niche ===== To filter the description toplist from [[te3:toplist_tutorial2|this]] tutorial, we'll have to **edit** it: ==== Step by step ==== {{:te3:tpl_tut_niches6.png?nolink|}} \\ {{:te3:tut_step_1.png?nolink|}} **Open "Edit toplist" window** \\ Navigate to the ''Toplist'' / [[te3:toplist_index|Templates]] menu, click on the {{:te3:overview_edit_icon.png?nolink|}} ''Edit toplist'' button and open "Edit toplist" pop-up window for the selected toplist. {{:te3:tut_step_2.png?nolink|}} **Enable ''Filter by niche'' option** \\ Checkbox ''Filter by niche'' option to enable it. {{:te3:tut_step_3.png?nolink|}} **Select preferred niches** \\ Select niches from the list (use ''CTRL + left mouse click'' to select multiple niches). We want to filter our toplist by ''niche1'' and ''niche2''. {{:te3:tut_step_4.png?nolink|}} **Save toplist** \\ Click {{:te3:button_save.png?nolink|}} button in the bottom right corner. ---- ===== 4. Preview the toplist ===== TE3 will automatically generate the toplist, when you click ''Save'' button. Close "Add new" window and click {{:te3:button_preview2.png?nolink|}} icon to see the ''Preview'' of what the toplist will look like. \\ {{:te3:tpl_tut_niches7.png?nolink|}} Ours looks like this: \\ {{:te3:tpl_tut_niches9.png?nolink|}} \\ Explanation: we have 10 trades in our database, but only five can be placed on this toplist - trades assigned to either ''niche1'' or ''niche2'' Note, If **multiple descriptions** exist for an individual trade, they'll be randomly rotated each time the toplist is generated, unless you want descriptions with specified positions. ---- ===== 5. Include toplist into your web page ===== After you have added or edited a toplist, you can [[te3:toplist_include|include]] it into your web page! ---- ===== Related topics ===== * [[te3:toplist_index|Toplist templates]] - view toplist template syntax, learn how to add and manage toplists * [[te3:toplist_descriptions|Toplist descriptions]] - learn how manage your descriptions