Create a Media Picker property on your document type and select the folder. You can also do this with the multi-node tree picker if you wanted to pick just a few media items in the folder, for example.
@Parameter (The name 'Parameter' does not exist in the current context) Model.MediaById(folderId) ('Umbraco.Web.Models.RenderModel' does not contain a definition for 'MediaById' and no extension method 'MediaById' accepting a first argument of type 'Umbraco.Web.Models.RenderModel' could be found (are you missing a using directive or an assembly reference?)
How can I use the media images in my template?
1.
2.
3.
How can I use the media images in my template?
I need only the urls like this:
"media/349/example.jpg65465.jpg"
Do you want to loop through all of the media items in the folder? Here's a start: http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets/simple-media-browser/media-folder-content-list
Create a Media Picker property on your document type and select the folder. You can also do this with the multi-node tree picker if you wanted to pick just a few media items in the folder, for example.
Hope this helps!
Thanks, but in umbraco 4.11.1 it doesn`t work :(
@Parameter (The name 'Parameter' does not exist in the current context)
Model.MediaById(folderId) ('Umbraco.Web.Models.RenderModel' does not contain a definition for 'MediaById' and no extension method 'MediaById' accepting a first argument of type 'Umbraco.Web.Models.RenderModel' could be found (are you missing a using directive or an assembly reference?)
When I inherits following:
my
@Html.Link("~/css/bootstrap.min.css")
@Html.Link("~/css/bootstrap.min.customize.css")
@Html.Link("~/css/Collection.css")
doesn´t work.
I need the @Html.Link(...) and @Url.Content(...).
What can I do?
is working on a reply...