Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Couple of questions related to it.
1. I thought to add Website Model in the IMasterModel. Is it correct way? (code snippet below)
2. Also on Master page I am not getting any Model.Content or CurrentPage. How can we get it?
public interface IMasterModel { IEnumerable<MenuItem> MenuItems { get; set; } string SeoTitle { get; set; } string SeoDescription { get; set; } Website website { get; set; } }Thanks!
Awesome Package!
Hello,
This has changed between v6 and v7. In the version for v6 you could use Model.Content, but in v7 you don't have that. If you want to have some website properties on the masterpage you need to add them manually.
This example shows how to add the Twitter link: https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/BLL/ModelLogic.cs#L31
Jeroen
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Need to get most website properties in the master page.
Couple of questions related to it.
1. I thought to add Website Model in the IMasterModel. Is it correct way? (code snippet below)
2. Also on Master page I am not getting any Model.Content or CurrentPage. How can we get it?
public interface IMasterModel {
IEnumerable<MenuItem> MenuItems { get; set; }
string SeoTitle { get; set; }
string SeoDescription { get; set; }
Website website { get; set; }
}
Thanks!
Awesome Package!
Hello,
This has changed between v6 and v7. In the version for v6 you could use Model.Content, but in v7 you don't have that. If you want to have some website properties on the masterpage you need to add them manually.
This example shows how to add the Twitter link: https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/BLL/ModelLogic.cs#L31
Jeroen
is working on a reply...