These are chat archives for ExtCore/ExtCore

23rd
Jun 2017
Martin H.
@Matldownunder
Jun 23 2017 22:14
Hi, i am new to ExtCore, really like the way to build dynamic web apps, so my question is, how do i also move partial views to other libs, is it possible that the razor view engine can handle partial views?
Dmitry Sikorsky
@DmitrySikorsky
Jun 23 2017 22:22
Hi! Sure! It is very easy, just take a look at the huge Platfornus project or at the samples. Accounting sample contains partial views too
Martin H.
@Matldownunder
Jun 23 2017 22:27
Hmm, i am not sure i mean, i would like to place a dynamic partial on the root web application, but the dynamic partial is comming from an extension.
I tried to add a custom RazorViewEngine to parse the partials for each extension because they will all have his own path,…
Do you know what i mean
Not partials within the same extesion, partials from the main application pointing to views of extensions
Dmitry Sikorsky
@DmitrySikorsky
Jun 23 2017 22:30
I'm not sure I got you, but if you put the partial view inside the main (host) web application it will be used by default by the ExtCore, even if the extension contains other view with the same path.
so you can override the views in your main app
Martin H.
@Matldownunder
Jun 23 2017 22:37
Thats the point, what i like to do is all extensions provide their own content during page build.
So i would like to iterate through the extensions and append the content to the main page by using partial includes,...
Dmitry Sikorsky
@DmitrySikorsky
Jun 23 2017 22:39
no problems. this sample builds menu in this way: https://github.com/ExtCore/ExtCore-Sample-Accounting
but you can use partials from different extensions with no problems
just create some metadata class that will provide names of the partial views to sue
*to use
Martin H.
@Matldownunder
Jun 23 2017 22:40
Ok, thank you so much, i will have a look! Awesome!
Dmitry Sikorsky
@DmitrySikorsky
Jun 23 2017 22:49
Good! Welcome!