A new button in event module

anu menon asked on March 14, 2015 06:53

Hi

I my events page I have two buttons called current events and upcoming events.When I click on this nuttons the data in the repeater should show only current events and if click on upcoming events its hould show only upcoming events. in database I have stored this cayegory in the field EventsCategory. Could any one help me in this Thanks Anu

Correct Answer

Brenden Kehren answered on March 14, 2015 07:11

Simple thing is to create a page alias and have the repeater use that alias as a query string. For instance /Events/{EventType} as the alias on the Events page.

Then in each button you'd create a link that was simply <a href"/Events/Current">Current</a> and <a href="/Events/Upcoming">Upcoming</a>. This would be assuming the categories you stored were "Current" and "Upcoming". Then in your repeater where clause, enter something like EventsCategory = '{%EventType%}'

Each time you click the button, it will simply send you to that link and the repeater will get the values based on the query string.

0 votesVote for this answer Unmark Correct answer

Recent Answers


anu menon answered on March 14, 2015 10:14

Thank you so much

It worked.

0 votesVote for this answer Mark as a Correct answer

anu menon answered on March 14, 2015 10:18

I have one more doubt regarding the paging arrows. I have arrows in the listing for the next and prev button i have used the images, but my problem is the text left and right arrows displays over the image. how can i remove that.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 16, 2015 12:38 (last edited on March 20, 2015 12:28)

Hide the elements you don't want to show by using some css display: none;

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.