View Issue Details

IDProjectCategoryView StatusLast Update
0000865Composr documentation[All Projects] General / Uncategorisedpublic2015-09-25 18:38
ReporterDuckAssigned To 
SeverityFeature-request 
Status closedResolutionwon't fix 
Summary0000865: Filter syntax tutorial could use more clarity
DescriptionYou 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.

TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2013-01-17 13:42

administrator   ~0001139

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.

amit.nigam

2014-12-09 13:22

reporter  

a.png (134,587 bytes)
a.png (134,587 bytes)

amit.nigam

2014-12-09 13:22

reporter  

b.png (158,742 bytes)
b.png (158,742 bytes)

amit.nigam

2014-12-09 13:22

reporter  

c.png (132,144 bytes)
c.png (132,144 bytes)

Chris Graham

2015-09-25 18:38

administrator   ~0003095

The existing tutorial is pretty good at this point, but I have tweaked it a bit with some of the notes here.

Issue History

Date Modified Username Field Change
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised