function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CuerdasCuerdas 

Some code about community cloud

Hello!

My question begins with a controller:
 
public with sharing class HandlerNavi {
   
        @AuraEnabled (cacheable = true)
            public static List<Evento__c> getEvento() {
                List<Evento__c> listEventos = new List<Evento__c>();
                for(Evento__c event :[SELECT Id, Name, Fecha__c FROM Evento__c ORDER BY Fecha__c]){
                    if(event.Fecha__c >= Date.today()){    
                        listEventos.add(event);        
                    }     
                }
                return listEventos;
            }
}

I want to show in Home (community cloud) a list of events availables order by date and not showing past events.

Clicking in an event must redirect to "Request Tickets" with preselected event. I found this tip on the internet https://suman1978.blogspot.com/2019/09/navigate-to-community-page-in-lwc.html but I need help.

Anyone can help me?