Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: How to adjust attributes of "Component" block

$
0
0
Found it. Need to use injection....
    Compiler.WixSourceGenerated += document =>
    {
        var components = document.FindAll("Component");
        foreach(var component in components)
        {
            if(component.Attribute("Id").Value.ToString().ToUpper().Trim().EndsWith(".PPLC"))
            {
                component.SetAttributeValue("Permanent", "yes");
            }
        }
    };
Thanks

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>