Merge pull request #5558 from sbwalker/dev
added StaticAssetPath properties to base classes
This commit is contained in:
@ -140,13 +140,22 @@ namespace Oqtane.Modules
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// path method
|
// path methods
|
||||||
|
|
||||||
public string ModulePath()
|
public string ModulePath()
|
||||||
{
|
{
|
||||||
return PageState?.Alias.BaseUrl + "/Modules/" + GetType().Namespace + "/";
|
return PageState?.Alias.BaseUrl + "/Modules/" + GetType().Namespace + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string StaticAssetPath
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
// requires module to have implemented IModule
|
||||||
|
return PageState?.Alias.BaseUrl + "_content/" + ModuleState.ModuleDefinition?.PackageName + "/";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// fingerprint hash code for static assets
|
// fingerprint hash code for static assets
|
||||||
|
|
||||||
public string Fingerprint
|
public string Fingerprint
|
||||||
|
@ -108,13 +108,22 @@ namespace Oqtane.Themes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// path method
|
// path methods
|
||||||
|
|
||||||
public string ThemePath()
|
public string ThemePath()
|
||||||
{
|
{
|
||||||
return PageState?.Alias.BaseUrl + "/Themes/" + GetType().Namespace + "/";
|
return PageState?.Alias.BaseUrl + "/Themes/" + GetType().Namespace + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string StaticAssetPath
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
// requires theme to have implemented ITheme
|
||||||
|
return PageState?.Alias.BaseUrl + "_content/" + ThemeState?.PackageName + "/";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// fingerprint hash code for static assets
|
// fingerprint hash code for static assets
|
||||||
public string Fingerprint
|
public string Fingerprint
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user