Copied to clipboard

Flag this post as spam?

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


  • hetaurhet 245 posts 267 karma points
    Feb 13, 2012 @ 11:25
    hetaurhet
    0

    body content on landing page

    hello

    by default uBlogsy shows summery on landing page. But is it possible that instead, it shows post content on landing page.

    If yes, then please guide further.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 13, 2012 @ 12:21
    Anthony Dang
    0

    You can do anything you like with it

    It only shows the summary if the summary exists.

    Check out the uBlogsyShowPost and uBlogsyListPosts cshtml files

    You'll see an if statement which says if the summary is not an empty string, then display it. Just change/delete that part

     

     

  • hetaurhet 245 posts 267 karma points
    Feb 13, 2012 @ 13:04
    hetaurhet
    0

    thank you for information.

    But I wanted to ask that if summary is not there. then it will not show it. But then it should show the post content itself. So is that possible?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 13, 2012 @ 13:50
    Anthony Dang
    0

    If the summary is not filled in then the first part of the body content is used.

    You can change this to use the entire body content if you wish.

     

  • hetaurhet 245 posts 267 karma points
    Feb 13, 2012 @ 15:10
    hetaurhet
    0

    I saw the uBlogsyShowPost.cshtml file and found this function where content is displayed.

    @helper RenderPostBody(DynamicNode d)
        {
            string useSummary = DataService.Instance.GetValueFromLanding(Model.Id, "uBlogsyGeneralUseSummary");
            if (useSummary == "1"
                && Model.NodeTypeAlias == "uBlogsyLanding"
                && d.GetProperty("uBlogsyContentSummary").Value.Trim() != string.Empty
                )
            {
            @Html.Raw(d.GetProperty("uBlogsyContentSummary").Value)
            }
            else
            {
            @Html.Raw(umbraco.library.RenderMacroContent(d.GetProperty("uBlogsyContentBody").Value, d.Id))
            }
    }

    But I dont find where we have to change so that it shows entire body content?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 13, 2012 @ 17:10
    Anthony Dang
    0

    Retract all that.

    If all you want is for the entire post body to be rendered then go to the general settings tab in the landing node. There is is an option to "Use summary".

    Deselect it.

     

  • hetaurhet 245 posts 267 karma points
    Feb 14, 2012 @ 05:20
    hetaurhet
    0

    ok. thats what I have done. I thought still something is to be done so asked.... thanks anyways.

  • Arslan 5 posts 25 karma points
    Mar 19, 2013 @ 13:06
    Arslan
    0

    Hi Anthony,

    I need to show Addthis social links on landing page but the issue that I am facing is that when someone tries to like a post, It increases the number of count for each of the posts at that page(Infact its not liking the post but the page). How can I overcome this issue. Please suggest. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft