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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Jquery with session storing in silverstripe3 tempates


Go to End


2 Posts   1496 Views

Avatar
Sreeja

Community Member, 1 Post

8 July 2013 at 9:14pm

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
copernican

Community Member, 189 Posts

9 July 2013 at 12:27am

Have you looked into the Session class?