I'm trying to make a component in my community be able to pull in the record Id.
I followed the information in this question: LWC Community recordId undefined
And this documentation: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_config_for_community_builder
My config file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>45.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>ContractorSearch</masterLabel>
<description>Searches for contractors for a given set of criteria</description>
<targets>
<target>lightning__RecordPage</target>
<target>lightningCommunity__Page</target>
<target>lightningCommunity__Default</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<objects>
<object>Requisition__c</object>
</objects>
</targetConfig>
<targetConfig targets="lightningCommunity__Default">
<property name="recordId" default="{!recordId}" type="String"
label="Record ID" description="Should not be changed from default value."/>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
Any ideas?