1

I'm creating a popup dialog inside plugin by Alchemy4Tridion, at WEB 8. The AttachToView function seems disappeared from the ResourceGroup.cs file. Any idea why?

using Alchemy4Tridion.Plugins.GUI.Configuration;
using Alchemy4Tridion.Plugins.GUI.Configuration.Elements;
namespace Tridion.Plugin.Publish.GUI
{
public class PublishPopupGroup : Alchemy4Tridion.Plugins.GUI.Configuration.ResourceGroup
{
    public PublishPopupGroup()
    {
        AddFile("Publish.js");
        AddWebApiProxy();
        AttachToView("PublishPopup.aspx");
        Dependencies.Add("Tridion.Web.UI.Editors.CME");
    }
}
}

The error is: the name AttachToView does not exist in the current context.

The Alchemy4Tridion.Plugin version is 1.0.0-beta6-1

1

When looking at the source code, it looks like the ResourceGroup class still has a public AttachToView function (see here : https://github.com/Alchemy4Tridion/Alchemy4Tridion/blob/master/Alchemy4Tridion.Plugins/GUI/Configuration/ResourceGroup.cs#L184)

Could you share the error that you get, or the relevant piece of source code so we have a better understanding of your problem ?

Based on your comment, you say you can't see version .08 in the package manager

This is what I see in my visual studio, when i search for alchemy in the nuget package manager enter image description here

  • using Alchemy4Tridion.Plugins.GUI.Configuration; using Alchemy4Tridion.Plugins.GUI.Configuration.Elements; namespace Tridion.Plugin.Publish.GUI { public class PublishPopupGroup : Alchemy4Tridion.Plugins.GUI.Configuration.ResourceGroup { public PublishPopupGroup() { AddFile("Publish.js"); AddWebApiProxy(); AttachToView("PublishPopup.aspx"); Dependencies.Add("Tridion.Web.UI.Editors.CME"); } } } – qchen01 Jan 26 '17 at 17:12
  • The error is: the name AttachToView does not exist in the current context – qchen01 Jan 26 '17 at 17:12
  • I have just tried to build a test plugin with the code you placed here, and it builds correctly (i don't get the error about not recognizing AttachToView) I think the main problem is that you are using an old version of alchemy (the most recent version is 1.0.0-beta8-3 – Harald Hoffelinck Jan 27 '17 at 15:10
  • Inisde Nuget, the Alchemy4Tridion package only has version is 1.0.0-beta6-1. I need to manually build and reference version 1.0.0-beta8-3. After upgrade it, the AttachToView method is back. – qchen01 Jan 28 '17 at 2:14
  • When you look here, you can see the nuget version is available for version 8.3 as well : nuget.org/packages/Alchemy4Tridion.Plugin – Harald Hoffelinck Jan 29 '17 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.