Copied to clipboard

Flag this post as spam?

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


  • dave 36 posts 149 karma points
    Apr 24, 2015 @ 23:12
    dave
    0

    utwit install package - installed now what?

    I installed the utwit package.

    I am new to umbraco and find things to be somewhat confusing. I installed from the developer menu option in the menu. It says uTwit "is a combination of two packages to allow you to easily embedd twitter statuses on your website".

    It also says this, which i followed

    "You'll want to start by installing the data type package first. Once you install it, you should have available a new Data Type definition named Twitter OAuth. Simply add this as a new property to your doc type and hit the Authorize link to obtain a Twitter OAuth token."

    After installation i found the data type 'twitter oauth' and i provided consumer key and secret. I then went to settings - document types - home - properties and added 'site' property to the document type.

    I then navigated to content home and selected the site tab. I was able to 'authorize'.

    Now what do i do now? How do i get my latest tweets to show on the home page? Was there another package i had to install? If i go to packages I only see utwitpropertyeditor package. Where how do i get the other package for utwit?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 24, 2015 @ 23:18
    Jan Skovgaard
    0

    Hi Dave

    How are you trying to render the uTwit property that you added to your document type?

    /Jan

  • dave 36 posts 149 karma points
    Apr 24, 2015 @ 23:20
    dave
    0

    I found the utwit web package at this location https://our.umbraco.org/projects/website-utilities/utwit and installed.

    I see in my view folders i have some partial views.

    What do i do now to get the views on the home page? (not sure the relationship between the property and the rendering) I am guessing now that i have partial views i can somewhere get the latest tweets on the page.

    Ideas on this one?

    The readme says this... *Simply drop them on the page, and configure the variables within them and you should have tweets displaying on your website.*

    How do i drop partial views on the page? hmm

  • dave 36 posts 149 karma points
    Apr 24, 2015 @ 23:42
    dave
    0

    Ok, i think i figured it out. Finding documentation/help for some of these issues seems to be quite difficult. I very much appreciate any feedback from others on this forum.

    I then took my datatype alias and placed in the latesttweets.cshtml file.

    I then opened my master page and put the following code in the page @Html.Partial("/Views/Partials/latesttweets.cshtml")

    Now the home page has the latest tweets.

    Question now.. is how do i setup so that all pages (which rely on the master page) show the tweets. I am sure it has got to be something with the datatype that i added to the home document type. If I want to show on all pages (ie. via the master page) what should i associate the document type to?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 25, 2015 @ 09:13
    Jan Skovgaard
    0

    Hi Dave

    I see that the documentation is actually not very clear with this package - Hopefully the package creator will see this post and make some changes to the documentation to make it more clear. I think they're assuming that people are used to MVC and know what they mean by "Simply drop the partial into a page". But for newcomers to Umbraco and the ASP.NET stack this is not very clear...even not for old-timers.

    But it's a general issue with 3rd party packages - Documentation varies but fortunately it's possible to ask for help in the associated forums for the packages :)

    If you have placed to call to the latesttweets.cshtml on your masterpage, I suppose the other templates inherit from your master template? If so then the tweets should be displayed since the other templates will inherit from the master page.

    However you might need to amend the way the queryuing is done in the partial view (latesttweets) - Unfortunately I don't know this package in details. But you might need to use AncestorOrSelf in the query if it's not using that already.

    Hope this helps.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft