View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000865 | Composr documentation | [All Projects] General / Uncategorised | public | 2012-10-06 16:27 | 2015-09-25 18:38 |
| Reporter | Duck | Assigned To | |||
| Severity | Feature-request | ||||
| Status | closed | Resolution | won't fix | ||
| Summary | 0000865: Filter syntax tutorial could use more clarity | ||||
| 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. | ||||
| Tags | No tags attached. | ||||
| Time estimation (hours) | |||||
| Sponsorship open | |||||
|
|
I've changed to "and the if_in_group Comcode tag" but held this issue open for a more thorough review at a later date. |
|
|
|
|
|
|
|
|
|
|
|
The existing tutorial is pretty good at this point, but I have tweaked it a bit with some of the notes here. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |