![]() SearchParamsViewModel.cs: namespace DelegatePortal. Model.Delegates = db.Set().Where(x => x.FirstName = firstName) String firstName = searchParams.FirstName Public ActionResult Search(SearchParamsViewModel searchParams) SearchViewModel model = new SearchViewModel() Public ActionResult Search(String firstName) Public LoginViewModel LoginViewModelĭelegateController.cs: // GET: /Delegate/Search The page contains both LoginViewModel and RegisterViewModel.ĭo I need to make another ViewModel which holds these 2 ViewModels? public BigViewModel You can make your blog even more advanced and attractive with the features provided by Blog Extra edition.Ĭheck the advantages of Blog Plus and Extra to learn more about other options you can upgrade your Magento 2 blog with.I want to have 2 models in one view. Once you finish, don't forget to Save configurations and go to the storefront and check your blog post page view. ![]() This is View Count on storefront if you choose Modern Template for post page: It is used for generating blog popular posts. This is how Modern Previous and Next post links are displayed on the storefront:Ĭhoose to Calculate&Display Views Counts in order to be able to see which blog posts are the most popular. You can disable this option but it is a great way to increase user engagement with internal links. And you also select the Template which is either Default (Next/Prev links) or Modern (Next/Prev Post Title links). Here you choose whether to Display Previous&Next Post Links on your blog post page. Read more about comments configuration and learn how each of these comments is displayed on the storefront. In Magento 2 Blog extension there are 3 kinds of comments available for your blog posts: Magefan, Facebook and Disqus Blog Comments.Įach kind of comment has different options you have to configure. This is the Related Products section on the Storefront: You can learn more about it in the article about auto-related blog products. The same as with the Related Posts, if you choose to enable the automatic generation of related products there will appear a new option. Note: this option is available for Blog Plus and Blog Extra users only. attributes to perform its job, class attributes are useful in many class-based designs, and there are two ways to configure or set class attributes.
0 Comments
Leave a Reply. |