AssetsTK
No edit summary
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
AssetsTK is the strategy to move files along with your model onto the server that runs your Turnkey application every time you upload your model.
AssetsTK is the strategy to move files along with your model onto the server that runs your Turnkey application every time you upload your model.


Your model has a file name ending with either .[[ecomdl]] (multi-file format) or .[[modlr]] (zip format).
Your model has a file name ending with either .[[Documentation:Ecomdl|ecomdl]] (multi-file format) or .[[Documentation:Modlr|modlr]] (zip format).
# Create a folder next to your model file and name it <Your Model file name without extension>_AssetsTK.
# Create a folder next to your model file and name it <Your Model file name without extension>_AssetsTK.
# Now, any files put into the _AssetsTK folder will be uploaded along with your model - and expanded out from your application root.
# Now, any files put into the _AssetsTK folder will be uploaded along with your model - and expanded out from your application root.
# If you need to put an image in the Content folder of your app, create a Content folder in _AssetsTK and put your image in there.
# If you need to put an image in the Content folder of your app, create a Content folder in _AssetsTK and put your image in there.
AssetsTK is further detailed in the section on [[Theme_and_style]] - but note that AssetsTK is useful for more things than sending style information to the server.
AssetsTK is further detailed in the section on [[Documentation:Theme and style|Theme_and_style]] - but note that AssetsTK is useful for more things than sending style information to the server.
 
=== View unique styles and scripts ===
View_Assets/[ViewModelName]/[ViewModelName].css and View_Assets/[ViewModelName]/[ViewModelName].js files are detected and Turnkey will inject these when the ViewModel is shown. This is a way to keep styles separated from [[Documentation:Tkusercss|tkusercss.css]]


=== Common Overrides You Can Try ===
=== Common Overrides You Can Try ===
Line 13: Line 17:
<YouModelFileName>_AssetsTK/favicon.ico (or .png) will change the tab logo in the browser.  
<YouModelFileName>_AssetsTK/favicon.ico (or .png) will change the tab logo in the browser.  
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]
{{Edited|July|12|2025}}

Latest revision as of 05:22, 23 January 2025

This page was created by Hans.karlsen@mdriven.net on 2019-07-12. Last edited by Stephanie@mdriven.net on 2025-01-23.

AssetsTK is the strategy to move files along with your model onto the server that runs your Turnkey application every time you upload your model.

Your model has a file name ending with either .ecomdl (multi-file format) or .modlr (zip format).

  1. Create a folder next to your model file and name it <Your Model file name without extension>_AssetsTK.
  2. Now, any files put into the _AssetsTK folder will be uploaded along with your model - and expanded out from your application root.
  3. If you need to put an image in the Content folder of your app, create a Content folder in _AssetsTK and put your image in there.

AssetsTK is further detailed in the section on Theme_and_style - but note that AssetsTK is useful for more things than sending style information to the server.

View unique styles and scripts

View_Assets/[ViewModelName]/[ViewModelName].css and View_Assets/[ViewModelName]/[ViewModelName].js files are detected and Turnkey will inject these when the ViewModel is shown. This is a way to keep styles separated from tkusercss.css

Common Overrides You Can Try

<YouModelFileName>_AssetsTK/Views/EXT_OverridePages/index.cshtml

Now the Index ViewModel will be replaced with the HTML you have in index.cshtml - still framed by the Turnkey app (Main menu and left menu).

<YouModelFileName>_AssetsTK/favicon.ico (or .png) will change the tab logo in the browser.