Apply Session Expired in Internal Pages
Integration jQuery Plugin
1. Got to the Content Blocks (Top Menu -> Content/Content Blocks).
2. Next, create a new Content Block. Clicks on Create a content block button.
3. In the Create view:
a. Add a Title
b. In the content field
In the Editor text, you will find a custom ToolBarItem to add the HTML structure, open the options in the SmarterCommerce button and select the option “Session Expired”.
Note: on some monitors the SmarterCommerce option appears within the dot’s menu with the name “exe”. (This name is fixed in update 7)
4. To view and modify the HTML structure enter the following option, then find the Code Review.
5. Modify the HTML, you need to add the values for data-shopping-url with the absolute URL of the site.
6. Click on Create and the Content Block configuration are finished.
Implementation Example
1. Then, add a Content block widget to the page where you want to display the plugin. Recommendation add the content block in the page template (Design > Page Templates).
a. Navigate to Page template and select the template where the content will be added.
b. Add a Content block widget into the page Template. the content block can be added in any section, it is recommended to add it at the top of the page.
2. On the Content block, click on “More” menu and select “Use shared”, select the content block previously created and click Done selecting.
3. Add the link to the session expired plugin using a javascript plugin widget.
a. Add Javascript widget into the Head_JavaScripts_PlaceHolder section in the page template.
b. Select the js file from resources files.
URL: ~/ResourcePackages/Bootstrap4/MVC/Scripts/sc-jquery.sessionexpired.min.js
c. On “More Options” select to include in “Before the closing body tag” and Save changes.
d. Click on Save.
4. Add a Javascript widget on same page after the previous javascript in step 3.
a. Add Javascript widget.
b. Select Write JavaScript option.
c. Edit to add the function that initialize the plugin.
$(function () {
if ($("#scj-sessionexpired").length > 0)
$("#scj-sessionexpired").scSessionExpired();
});
d. On “More Options” select to include in “Before the closing body tag” and Save changes.
5. Publish page template.
HTML Attribute | Description |
data-is-external-page | If plugin is added on external page for security, it is required to be true. Values: true/false Default: false. |
data-message-session | Message to display after session is expired. Default: You have been logged out. |
Read Next
This Section Also Contains
- Ecommerce CMS MVC with Bootstrap 4
- Creating a New Sitefinity Custom Template
- How to Share Template in Multisite Instance
- How to Customize a Site with Resource Packages
- Theming Bootstrap
- Page Long Cache Considerations and Configuration
- Mappings Module
- Personalization Integrated with JDEdwards
- How to Add New Widget Template
- How to Include Local Web Font
- How to Use External Plugins Locally
- Sitefinity Authentication Expiration
- Sitefinity Images
- Internal Plugins Configuration in Update 6 - SC20220114
- Internal Plugins Configuration in Update 7
- How to Setup Pickup Instructions Page
- How to Setup Terms and Conditions Page
- Resource Manage Multisite
- Content Search Configuration
- Product Assignments (Filter by Attribute)
- Google Analytics Configuration
- Configure Azure Redis Cache (ASP.Net State Server Provider)
- Task Manager Email Notifications
- Configure Google Maps
- Catalog and Product Content Metatags (SEO)
- Cookies Configuration
- Change Password Configuration
- Recycle Bin
- Login Page Configuration
- Error Page Configuration
- Configure the SmarterCommerce Menu in Backend
- SmarterCommerce Settings Not Being Displayed
- Management Console Email Templates
- EPayments Modules
- Troubleshooting Errors
- Configure Kraken Image Optimization
- Sitefinity Health Check Integration