I am not using multi-tenant. So, how do I show the version in the UI as "DataCenter" instead of "Standard" (in the bottom left corner)?
The _Footer.cshtml contains the code to display in the UI: @(AppVersionHelper._Product_Version) - it's stored in the AbpEditions table as "DisplayName", is there a method to set that value or do I need to update that with my own action?
I found the culprit!
/libs/jquery-jtable/themes/metro/blue/jtable.min.css
contains a list of references to the Open Sans font family hosted by "themes.googleusercontent.com". So I've removed that whole chunk from the CSS and the admin tables still seem to render in Open Sans (probably as I have these in my own fonts.css).
Thanks for your help!
I am running an older version of the ASPNETZERO project, 1.6.1, and I have the /Content folder but that only contains the font-awesome.css. It's really frustrating me to try and find out where the directive to Open Sans on Google is coming from.
Thanks, but I don't have the "fonts-open-sans.css" file anywhere in my project.
I have a fonts.css (which I think I put there...) which implements the fonts as follows;
/* open-sans-300 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'),
url('../fonts/open-sans-v13-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-regular - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'),
url('../fonts/open-sans-v13-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-600 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'),
url('../fonts/open-sans-v13-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-700 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'),
url('../fonts/open-sans-v13-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
Aha, OK, so I found out the Migrator.exe tool came about in a later version;
V1.10.0 (2016-05-10) Created a Migrator tool (exe) to easily migrate host and tenant databases.
I do not have the time at the moment to look at upgrading my whole project to the latest version of ASPNETZERO, is there a DB create script or something available? I see in the EntityFramework there is a set of files for InitialCreate.cs and migrations - will I simply be able to mimic the actions in these various .cs files in my own SQLDB creation script or use them somehow to create my own C# console application which does this? If I downloaded latest version of ASPNETZERO, would I be able to use the Migrator.exe tool to create a DB which is compatible with v1.6.1?
Does the ASPNETZERO licensing permit changing the Metronic Theme to one that is not included in ASPNETZERO or would that require purchasing Metronic Redistributable licensing? If you don't mind me asking, what is the licensing relationship between ASPNETZERO and Metronic - as ASPNETZERO redistributable license cost is far cheaper than Metronic on it's own?
I'm also trying to get LDAP authentication working, but getting 'an internal error occured during your request' when I enter a valid domain username password.
Also, I have some questions that are not answered in documentation:
Thanks, Andy
Hikal,
Could you please provide a basic code example for an Mpa page controller, that is able to use the SettingManager.GetSettingValue method and return a value to the client.
For example, here is a very basic controller that returns a string;
using Abp.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MyProject.Web.Controllers
{
public class HelloWorldController : Controller
{
public string Index()
{
return "Hello World!";
}
}
}
How do I make that return a stored setting string, such as the SMTP Host? I thought I would be able to simply use the SettingManager.GetSettingValue before returning the value, but I cannot understand how.
Thanks.
... and if I try
var value1 = SettingManagerExtensions.GetSettingValue("MyValue")
Then although I get to see/choose the .GetSettingValue method, I get error "No overload for method 'GetSettingValue' takes 1 arguments"
So I'm baffled.
Further, if I try;
var value1 = Abp.Configuration.SettingManager.
Then I only get '.ApplicationSettingsCacheKey', 'Equals' and 'ReferenceEquals' methods. Weird.