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

Added edit link tag helper with readme description too #23

Merged
merged 6 commits into from
Nov 16, 2021

Conversation

prjseal
Copy link
Contributor

@prjseal prjseal commented Nov 5, 2021

This is a tag helper element which renders an edit link on the front end only if the current user is logged into umbraco and has access to the content section.

removed all of the styling options and left a bool for use default styles or not
updated readme to reflect changes
@prjseal
Copy link
Contributor Author

prjseal commented Nov 7, 2021

@warrenbuckley. PR updated. I have simplified the edit link code a lot, taking out most of the styling options and leaving a simple bool to say if they want to use default styles or not.

I couldn't find a way to get the edit text if used like this:

<our-edit-link content-id="@(Model.Id)">
    Get this text
</our-edit-link>

So I just made it an attribute instead called text and this value defaults to "Edit"

I've updated the readme too, with a few more examples and notes on the attributes you can change.

@warrenbuckley warrenbuckley merged commit dee84a4 into umbraco-community:main Nov 16, 2021
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

Successfully merging this pull request may close these issues.

2 participants