Solvi Documentation > General > Other General Questions

About Solvi

Introduction

Full Features

Installation

Prerequisite

Setup & Installation

Table or Grid

Basic Usage

Disable Column Sorting

Disable Column Export

Change Search Placeholder

Custom Column Template

Add Buttons to Action Column

Hyperlink Column Text

Specific Roles to View Column

Add or remove column

Filter column

CSS and JS

Edit Color

File validation

General

Password Validation

Bulk Import

Other

Edit translation

Edit footer

Edit existing email template

  1. Access your database, right click on it and click “New Query”

  2. Run this query: select * from emailtemplate

  3. You can refer to the Body of the email template to prepare your email template. Then, run this query to update the emailtemplate:

    Update EmailTemplate set Body='YourNewEmailTemplate' where Id = 'TheId'
    

Add new email template

  1. Access your database, right click on it and click “New Query”

  2. Run this query: select * from emailtemplate

  3. You can refer to the Body of the email template to prepare your email template. Then, run this query:

    insert into EmailTemplate (Id,Subject,Body,Type,IsDeleted)
    values(newid(),'TheSubject','TheBody','TheType',0)
    

Enable/disable confirm email to login

  1. Go to appsettings.json
  2. Set “ConfirmEmailToLogin” to true if you want to enable it
  3. Set “ConfirmEmailToLogin” to false if you want to disable it

Add more user roles

  1. Access your database, right click on it and click “New Query”

  2. Run this query:

    insert into AspNetRoles (Id,Name,NormalizedName) values (NEWID(),'MyNewRole','MYNEWROLE')
    

Access current user’s avatar and roles from the view

  1. You can directly access ViewBag.Avatar from any view page
  2. You can directly access ViewBag.UserRoles from any view page
  3. Related code:
    1. Setup once here: T/Models/UserProfilePictureActionFilter.cs and usable in any view page.

    2. /Views/Shared/_LoginPartial.cshtml

      image.png

    3. /Views/Shared/_Table.cshtml

      image.png

Remove date time on the file name

  1. Open /wwwroot/js/auratheme.table.js.
  2. Use CTRL + F to search for -${getCurrentDateTimeForFileName()}.
  3. Delete the -${getCurrentDateTimeForFileName()} portion of the code.

Notification toast

List of packages used in the project

image.png