HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Filtering the Calendar Event Type in a side block

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#107555 (In Topic #20962)
Avatar

Community saint

Hello, I'm trying to have my calendar side block (in list view) show everything but one event type, id #17. I tried to set the filter in a couple ways according the guidance in the filtering tutorial, but the event is still showing in the side block.

Here are the two ways I tried:
*,!17
1-16,!17

Am I missing something here?
Back to the top
 
Posted
Item has a rating of 5 (Liked by Rishi Saravanan)  
Rating:
#107556
Avatar

Community saint

If it works like the if_in_group filter, I would assume just adding 1-16 would work, without the need to specify an exclusion. Or just list them like 1,2,3,4 through to 16 if the 1-16 doesn't do it.
Back to the top
 
Posted
Item has a rating of 5 (Liked by KingBast)  
Rating:
#107557
Avatar

Community saint

Thanks! Sometimes it takes someone else to point out obvious other options to try  :$

1-16 didn't work, but 1,2,3,4… did work.
Back to the top
 
Posted
Rating:
#107558
Avatar

Community saint

Yeah it actually says a comma separated list under the input box, I just had a quick look. Wasn't sure, but glad you've sorted it. Sometimes it's easy to miss the obvious, I do it all the time :)
Back to the top
 
Posted
Rating:
#107560
Avatar

Right, actually it works with comma-separated because it is not actually like if_in_group -- that is ocFilter, this is a more primitive comma-separated list.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: