简体   繁体   English

在umbraco中从媒体文件夹中选择图像

[英]Select the Image from Media folder in umbraco

im new to umbraco and doing the maintenance for this site which i come across.i want to select the image from my Media folder,my banner from image 1 to 5 works fine (which done by someone else) however i want to put the banner for image6 which doesn't not works fine.cant locate the image logo.i have the image(banner6) below.the id:7745 which i guess since i follow the id from the last image.. 我是umbraco的新手,正在为这个网站做维护工作。我想从媒体文件夹中选择图片,我的图片从1到5的横幅广告效果很好(由其他人完成),但是我想放横幅广告对于无法正常工作的image6。无法找到图像徽标。我在下面有图像(banner6).ID:7745,我猜这是因为我遵循了上一张图像的ID。 模板

thanks in advance 提前致谢

You can't guess the image ID, you need to look it up in the Media section. 您无法猜测图像ID,需要在“媒体”部分中查找它。 When you hover with your mouse over the media-item in the media-tree, you can see the ID of the media in the lower left corner: 当您将鼠标悬停在媒体树中的媒体项目上时,您可以在左下角看到媒体的ID:

在此处输入图片说明

In this case the Id of the image is 6508 and this is the Id that should be used if you want to display images hardcoded 在这种情况下,图片的ID为6508,如果您要显示经过硬编码的图片,则应使用此ID

我已经能够解决我的问题,因为我使用的是Umbraco V3,所以我要做的就是将图像插入内容页面之一以进行测试,我可以获取该图像的ID,然后使用该代码编写代码ID ..它工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM