Comments (4)
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!
from piranha.core.templates.
hi hakan
thank you
from piranha.core.templates.
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.
from piranha.core.templates.
Bo reason
from piranha.core.templates.
Related Issues (20)
- Startup code missing for PostgreSQL
- Remove CMS Controllers from Swagger docs HOT 3
- Add category to PostBlock
- Update Piranha.Manager reference
- Add meta-information to web templates
- Add pagination to Archive View
- Support site prefix in menu generation
- Incorrect reference to SetupController
- Add authentication to web templates
- Create new blocks fail
- Add example code for adding permissions
- Add validation (where applicable) of fields to prevent unhandled exception HOT 4
- Add error handling for removed images in the carousel
- How to put all posts in site root instead of putting in folder such as "blog"? HOT 2
- dotnet new piranha flags not working HOT 2
- Update Piranha Templates to version 9.2.0 HOT 1
- Paging runs over edge of screen on Page Archive HOT 2
- Handling of unpublished blog posts in Archive.cshtml
- launchSettings.json missing from Razor Pages and MVC templates - Breaks dotnet watch run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piranha.core.templates.