Use stable resource names
A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.
Id = m_rsc:rid(page_home, C).
Check the result before using it: that name may not exist on your site. A database ID copied from another site can identify unrelated content. Use a stable name, URI, or explicit import mapping when moving data between sites.
Reserve names for resources your application can identify consistently. Editors can still manage their titles and bodies. See model#rsc, Install initial content with a datamodel, and Move content between sites.