Copied to clipboard

Flag this post as spam?

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


  • Rik Hodiamont 56 posts 156 karma points
    Apr 12, 2013 @ 11:07
    Rik Hodiamont
    0

    uquery and ucomponents 5.4.1.

    Hi,

    I just installed uComponents under Umbraco 4.11 and I have some problems with the ucomponents.core.dll and the uquery.

    I used ucomponents version 3.1.3 and used this code in visual studio: 

    Dim homepageNode As Node = uQuery.GetCurrentNode()

    When I use this, I will get this error:

    Could not load type 'uComponents.Core.uQuery' from assembly 'uComponents.Core, Version=5.4.1.0, Culture=neutral, PublicKeyToken=null'.

     This is the code I use:

    Imports umbraco.presentation.nodeFactory
    Imports uComponents.Core
    Public Class ah_reacties
        Inherits System.Web.UI.UserControl

        Dim nodeID As Integer

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            Try
                Dim homepageNode As Node = uQuery.GetCurrentNode()
                nodeID = homepageNode.GetProperty("@id").Value
             

            Catch ex As Exception

                nodeID = "0"


            End Try

            txtName.Text = nodeID

        End Sub

    How can I get the current node in the new situation?

    Thanks in advance!

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 12, 2013 @ 11:24
    Hendy Racher
    1

    Hi Rik,

    uQuery was moved into Umbraco Core(and moved to the legacy dll of uComponents), so perhaps changing Imports uComponents.Core to Imports umbraco will fix this ?

    HTH,

    Hendy

  • Rik Hodiamont 56 posts 156 karma points
    Apr 12, 2013 @ 12:58
    Rik Hodiamont
    0

    Hi Hendy,

    Tnx, your solution works :)

    Kind regards, Rik

Please Sign in or register to post replies

Write your reply to:

Draft