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

İmage title and alt text shown #40

Closed
ademsenel opened this issue Mar 19, 2021 · 4 comments
Closed

İmage title and alt text shown #40

ademsenel opened this issue Mar 19, 2021 · 4 comments

Comments

@ademsenel
Copy link

Hi dear i build application
i upload image and i filled image metatags title and alt text
but its not show image alt text and title in web site
you can see result in website https://www.admoteknikservis.com
version is piranha 8.4.2

best regards
Adem

@tidyui
Copy link
Member

tidyui commented Mar 19, 2021

If alt text and title as actually used depends on the project template and not Piranha itself. I'll move this issue over to the template repository so we can look at it there!

@tidyui tidyui transferred this issue from PiranhaCMS/piranha.core Mar 19, 2021
@ademsenel
Copy link
Author

hi hakan
thank you

@pitools
Copy link

pitools commented Jan 6, 2022

You can add a title and alternative text for the image using the properties of the model.
By editing the image block template file.

// File: ./Views/Cms/DisplayTemplates/ImageBlock.cshtml`
<img src="@Url.Content(WebApp.Media.ResizeImage(Model, 1110))"
    title="@Model.Body.Media.Title" alt="@Model.Body.Media.AltText">

For version 10.0.1 this works.

@ademsenel
Copy link
Author

Bo reason

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

3 participants