Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bobby Wallace 5 posts 75 karma points
    1 week ago
    Bobby Wallace
    0

    Programmatically modify Content - Page Title

    Umbraco version 8.16.0

    I have found some ideas, but still no success.

    One example uses: @inject IContentService Services

    The code fails with: The name 'inject' does not exist in the current

    Link to example: Code

    Another example uses:

    IContentService contentService = new ApplicationContext.Current.Services.ContentService();

    The code fails with:

    1. The type or namespace name 'IContentService' could not be found
    2. The type or namespace name 'ApplicationContext' could not be found

    Link to second example: code

    Ultimately, I would like to resolve all of these reference issues, but I am open to other suggestions as well.

Please Sign in or register to post replies

Write your reply to:

Draft