Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a hybrid IPageService to set page titles, add meta headers etc. #2433

Closed
4 tasks done
iJungleboy opened this issue Jun 1, 2021 · 0 comments
Closed
4 tasks done
Assignees

Comments

@iJungleboy
Copy link
Contributor

iJungleboy commented Jun 1, 2021

I'm submitting a ...
[x] feature request

...about
[x] Razor templating
[x] Hybrid Apps / Templates

Current behavior

The previous implementation used a static RazorBlade object called HtmlPage, but such static implementations won't work reliably in future. So we must create a service which can be requested using GetService<...>()

Expected behavior

This should work in future

Tasks

  • Create API
  • Test / verify
  • Document
  • Update tutorials
var page = GetService<ToSic.Sxc.Web.IPageService>();
page.SetTitle("new Title");

Your environment

  • 2sxc version(s): 12.01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant