Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Biagio Paruolo 1619 posts 1911 karma points c-trib
    Jun 17, 2016 @ 10:20
    Biagio Paruolo
    0

    Integrate Articulate into a site: Is't better to use the master under Articulate theme or the master of the site?

    Hi, I wish to integrate the Articulate blog into a site and use the same "layout" (css, js, etc ) and so of the master site.

    The question is: Is't better to use the master view under Articulate theme or the master view of the site?

    Thx

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Jun 20, 2016 @ 16:49
    Shannon Deminick
    0

    If you want to use the master of your site, then use the master of your site. There would be no benefit of copying the logic of your sites master to the default articulate theme. Then you're maintaining two versions of almost the same thing.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Dec 14, 2016 @ 09:42
    Ismail Mayat
    0

    Shannon,

    To use master view of your site do you just have to update the articulate doc type/s and assign templates?

    Regards

    Ismail

  • Biagio Paruolo 1619 posts 1911 karma points c-trib
    Dec 14, 2016 @ 09:59
    Biagio Paruolo
    0

    Hi, No, because the theme is under the plugin folder. I create a theme under the plugin folder and I choose it from Articulate configuration panel. I manage only doctype to customize or add fields. Se here http://www.volaresereni.it/blog/ and http://www.gruppoargentino.it/blog/

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Dec 14, 2016 @ 11:08
    Ismail Mayat
    0

    Biagio,

    Ok I found https://www.marceldigital.com/blog/2015/09/how-to-setup-an-articulate-blog-package-to-an-existing-umbraco-layout so i have got a bit further. My issue is i am using models builder and in my base template i have,

    @inherits UmbracoTemplatePage<CoreBasePage>
    

    I have updated the articulate doctype and added composition to it of my base page doctype.

    However in the list template i cannot do:

    @inherits UmbracoViewPage<Umbraco.Web.PublishedContentModels.CoreBasePage>
    

    because i get

    Cannot convert type 'Umbraco.Web.PublishedContentModels.CoreBasePage' to 'Articulate.Models.ListModel'
    

    This is on line,

    var articulateModel = (Articulate.Models.ListModel)Model;

    Just thinking about how to create articulate list model from my model.

    Regards

    Ismail

  • Biagio Paruolo 1619 posts 1911 karma points c-trib
    Dec 14, 2016 @ 13:47
    Biagio Paruolo
    0

    I made this workaround. I create a partial view with this code that list the last six post.

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<IPublishedContent>
    @using Articulate;
    @using Articulate.Models;
    @using Umbraco;
    @using Umbraco.Web;
    @using Umbraco.Core;
    @using Umbraco.Core.Models;
    @using System.Linq;
    @using System;
    
    @{
    
    
        var umbracoHelper = new Umbraco.Web.UmbracoHelper(UmbracoContext.Current);
    
        var root1 = Umbraco.TypedContentAtRoot();
    
        var blogA = root1.DescendantsOrSelf("ArticulateArchive").FirstOrDefault();
        //first child of type ArticulateArchive
        //var blogArchive = root.Children.OfTypes("ArticulateArchive").First();
    
        //var blogRoot = Umbraco.ContentAtRoot().DescendantsOrSelf("Articulate").FirstOrDefault();
        //var blogArchive = blogRoot.Children.First();
    
        var fivepost = blogA.Children.Where(x => x.IsVisible()).OrderByDescending(x => x.CreateDate).Take(6);
    
        DateTime datapub = new DateTime();
    
    }
    
    
      <div class="row multi-columns-row post-columns">
    
                @foreach (var post in fivepost)
                {
                    datapub = Convert.ToDateTime(post.GetPropertyValue("publishedDate"));
    
                    <div class="col-sm-4 col-md-4 col-lg-4">
                        <article class="post format-slider bg-white">
                            <div class="post-preview">
                                <div class="image-slider" data-carousel-options='{"transitionStyle": "fade"}'>
                                    <img src="@post.GetCropUrl("postImage", "blogPost400x300")" alt="@post.Name">
                                    <img src="@post.GetCropUrl("postImage", "blogPost400x300")" alt="@post.Name">
                                </div>
                            </div>
                            <div class="post-content">
                                <h2 class="post-title"><a href="@post.Url">@post.Name</a></h2>
                                <ul class="post-meta">
                                    <li>@datapub.ToString("dd") @datapub.ToString("MMM") @datapub.ToString("yyyy")</li>
                                    @*<li>By <a href="#">@post.Author</a></li>*@
                                </ul>
                                <p>@post.GetPropertyValue("Excerpt").ToString().Truncate(150)</p>
                                <a href="@post.Url" class="btn btn-lg btn-link btn-base">Leggi ›</a>
                            </div>
                        </article>
                    </div>
    
    
    
    
    
    
    
                }
    
            </div>
    

    Gist file: https://gist.github.com/biapar/2902f4ee8790af18dcd875a0040d8a32

  • Biagio Paruolo 1619 posts 1911 karma points c-trib
    Jun 21, 2016 @ 12:48
    Biagio Paruolo
    0

    Integrated with a new template.

    Here is the result that I will update day by day...

    http://www.volaresereni.it/blog/

Please Sign in or register to post replies

Write your reply to:

Draft