Activities of "mel@quadsoftpa.com"

link sent

Next question regarding kendo integration. So now I have my theme configured correctly and I want to integrate the modified theme into my modules so that I only have to do this rearranging of files once. So, I've replaced the theme package with a project reference and after some trial and error I have it almost working.

However, it blows up on the application layout Default.cshtml at

    <abp-script-bundle name="@LeptonThemeBundles.Scripts.Global" />

the style bundle loads fine, but it crashes on the scripts.

It would probably be easiest if I sent you the project, What's the best way to do this?

Thank you

done

I believe that is primarily resolved, however it may be contributing to these errors. please advise.

okay, I believe I have resolve this issued.Make sure you do all of the contributors in the same configure block. I had mine separate instead of chaining it together.


            Configure<AbpBundlingOptions>(options =>
            {
                options.StyleBundles.Add(LeptonThemeBundles.Styles.Global, bundle =>
                {
                    bundle.AddBaseBundles(StandardBundles.Styles.Global)
                          .AddContributors(typeof(LeptonGlobalStyleContributor))
                          .AddContributors(typeof(KeyChoicesStyleContributor));
                });

                options.ScriptBundles.Add(LeptonThemeBundles.Scripts.Global, bundle =>
                {
                    bundle.AddBaseBundles(StandardBundles.Scripts.Global)
                          .AddContributors(typeof(LeptonGlobalScriptContributor))
                          .AddContributors(typeof(KeyChoicesScriptContributor));
                });
            });

may be of importance, I also did all of this in the source for the theme instead of in the demo app. This has the same issue

Thank you for your quick response. I have posted a modified demo theme for you to review.

in it I am removing jQuery

public class KeyChoicesScriptContributor : BundleContributor
{
    public override void ConfigureBundle(BundleConfigurationContext context)
    {
        context.Files.RemoveAll(x => x.Contains("/libs/jquery/jquery.js", StringComparison.InvariantCultureIgnoreCase));
    }
}

and then adding it back in

       Configure<AbpLayoutHookOptions>(options =>
       {
           options.Add(LayoutHooks.Head.Last, typeof(JQueryResourcesViewComponent));
       });

jQuery in the head, but still remains lower down the page as well

How can I remove the bottom one? apparently the remove bundle contributor is not working in this version??

Thank you!

I don't believe that this works by integrating it into the commercial theme. To clarify, removing the jQuery does work, inserting new jQuery via the layout hooks works, but no no matter what I tried I end up with two jQuery's loaded and that is causing trouble.

these errors are the main culprits:

How do I get rid of that second JavaScript file or keep it from loading in the first place. I don't know where it's coming from.

Thank you.!

Showing 31 to 38 of 38 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11