#865 - Filter syntax tutorial could use more clarity
| Identifier | #865 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Filter syntax tutorial could use more clarity |
| Status | Closed (rejected) |
| Handling member | Deleted |
| Addon | General / Uncategorised |
| Description | You can Selectcode to handle the contents being shown to site.Often we have requirements that page should only show this , should show including this, should show except this etc. Selectcode answers every possible combinations you would like to implement. Lets take some examples as follows
Usage-1 : Filters are basically used in your templates, where you want the results based on some logical conditions.Let's say we want to match anyone not in usergroup '14' to '16' using the Tempcode IS_IN_GROUP symbol, which happens to work via Selectcode. You will use following code {+START,IF,{$NOT,{$IS_IN_GROUP,14-16}}}...{+END} Usage-2: You can use Selectcode with download system too. We will create some download categories and put some downloads inside them. You will have to login to adminzone of the site and goto content management to do that. Now we will use Selectcode to filter the downloads using blocks. Make sure that you have the Ids for all categories you are going to use Selectcode for. 1. Go to content management and click on 'Pages (Comcode pages)'. 2. Edit appropriate page where you want to show downloads (Refer pic#a.png) 3. Select main_multi_content from the list of blocks (Refer pic#b.png) 4. Now Go to 'Advanced' tab and filters. Here you can use Selectcode i.e. we do not want to show personal download to public, hense we will use '!2'. You can put your choice there (Refer pic#c.png) likwise you can use Selectcodes in following contents. 1. Catalogue, Catalogue category, catalogue entry 2. download, download category. 3. event 4. forum 5. gallery 6. group 7. image 8. member 9. news 10. poll 11. post 12. quiz 13. topic etc. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Comments
(Click to enlarge)
(Click to enlarge)
(Click to enlarge)