I tried following the question and answer to no success here: Lightning Component record ID when component in Lightning Page
How can I access the record ID from the URL in a custom lightning component? My end goal is to create a styled object details component showing some of the information (instead of the default details component).
Here is the code I have used so far:
<aura:component controller="CommunityPost_Controller" implements="forceCommunity:availableForAllPageTypes,force:hasRecordId,force:recordTab">
<aura:attribute name="Community_News_Item__c" type="Community_News_Item__c" />
<ui:outputText class="form-control" aura:id="recid" value="{!v.recordId}" />
</aura:component>
And I am loading this off of a data detail page on a salesforce community with the Napili template enabled.