Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created February 26, 2024 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trnktms/8c1d8102a7400d389e796c79d3f2ef58 to your computer and use it in GitHub Desktop.
Save trnktms/8c1d8102a7400d389e796c79d3f2ef58 to your computer and use it in GitHub Desktop.
public class FooterResolver : IComponentResolver
{
public int Order => 100;
private readonly IApiPublishedContentCache _apiPublishedContentCache;
public FooterResolver(IApiPublishedContentCache apiPublishedContentCache)
{
_apiPublishedContentCache = apiPublishedContentCache;
}
public IPublishedContent ResolveContent(IPublishedContent content)
{
return _apiPublishedContentCache.GetByRoute("/site-data/page-frames/footer/");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment