Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Jquery with session storing in silverstripe3 tempates


Reply

2 Posts   475 Views

Avatar
Sreeja

8 July 2013 at 9:14pm Community Member, 1 Post

We have developed a site with silverstripe3.In the course listing page, there is an option to add the courses to shortlist and we can compare the courses. In the header there an icon to view the list of courses which are added in shortlist . By clicking the "Shortlist" icon in the header a drop-down will show and it will display the course list which are added for compare. In the course listing page , there is a check box to add the courses to shortlist . And in the header shortlist drop-down also its coming correctly. But in the other pages like Home or contact us etc , by clicking the shortlist menu in header nothing displayed. So is there any way to set the session variables to store the values by adding each courses to shortlist menu. If so we can check the session variable values in other pages like home and contact us to display the drop-down with added courses in the header.

Thankful for any help or pointers on this topic.

Avatar
IOTI

9 July 2013 at 12:27am Community Member, 189 Posts

Have you looked into the [url=http://api.silverstripe.org/3.0/class-Session.html]Session[/url] class?