I want to expose an internal record page-based LWC on a record page in a customer community. This is the current meta file:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>47.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>Load Tracking Log</masterLabel>
<targets>
<target>lightning__RecordPage</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<objects>
<object>Load__c</object>
</objects>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
How do I do this? It is specific to the Load__c object so I assume I would do something like this:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>47.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>Load Tracking Log</masterLabel>
<targets>
<target>lightning__RecordPage</target>
<target>lightningCommunity__Page</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<objects>
<object>Load__c</object>
</objects>
</targetConfig>
<targetConfig targets="lightningCommunity__Page">
<objects>
<object>Load__c</object>
</objects>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
However this creates an error on save:
The 'objects' tag isn't supported for lightningCommunity__Page
How do you expose an object-specific LWC on a customer community correctly?
Thanks.