I am trying to edit this partial view script written by someone else to include a link and some text. I don't have a clue where to begin. I would be grateful for any help. Also when I try and replicate the script in a test page I get the error 'no umbracoFile defined'
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@*
Macro to display child pages below the root page of a standard website.
Also highlights the current active page/section in the navigation with
the css class "current".
*@
@{
@*Get the root of the website *@
var root = CurrentPage.AncestorOrSelf(1);
}
@if (Model.Content.HasValue("sliderimages"))
{
var imagesList = Model.Content.GetPropertyValue
Hi James,
No, I uploaded Gibe.LinkPicker and called the data type link picker, all the documentation refers to a link on the page or node I can't find the sytax for the property on the media item.
slide-caption is where the RTE content is displayed, the @if(carouselSlide.HasValue("linkSlide")) just check if there is link, if there is link whole image then is link, bodyTextPositionHorizontal and bodyTextPositionVertical is the ability to specify the x and y coordinates of the RTE content on top of image
Thanks for your help guys. trying to implement the same code in umbraco 7.2.4 but keep getting an error - Cannot resolve a Url for a media item when there is no 'umbracoFile' property defined. has the syntax changed between versions? New to bootstrap and MVC hence all the questions. Thanks again.
bootsrap carousel
Hi There
I am trying to edit this partial view script written by someone else to include a link and some text. I don't have a clue where to begin. I would be grateful for any help. Also when I try and replicate the script in a test page I get the error 'no umbracoFile defined'
@* Macro to display child pages below the root page of a standard website. Also highlights the current active page/section in the navigation with the css class "current". *@
@{ @*Get the root of the website *@ var root = CurrentPage.AncestorOrSelf(1); }
@if (Model.Content.HasValue("sliderimages")) { var imagesList = Model.Content.GetPropertyValue
}
Thanks in advance Natasha
Okay so I've been able to add text and a link as follows, but can anyone tell me what's wrong with my link statement as it returns the following link
www.mysite.com/%7B%20%20"id":%200,%20%20"name":%20"",%20%20"url":%20"/about-leap/volunteer-with-us/",%20%20"target":%20"_self"%7D
here's the code: @if(@imageItem.GetPropertyValue("text")!=null){
@imageItem.GetPropertyValue("text")
}any help at all received gratefully Best wishes,
Is the property "Link" a standard text field?
Hi James, No, I uploaded Gibe.LinkPicker and called the data type link picker, all the documentation refers to a link on the page or node I can't find the sytax for the property on the media item.
Thanks in advance Natasha
i have created this bootstrap xslt sometime ago, i know its not razor maybe it can give you some idea
this is not bootstrap but slick carousel (http://kenwheeler.github.io/slick/), maybe can give you idea,
slide-caption is where the RTE content is displayed, the @if(carouselSlide.HasValue("linkSlide")) just check if there is link, if there is link whole image then is link, bodyTextPositionHorizontal and bodyTextPositionVertical is the ability to specify the x and y coordinates of the RTE content on top of image
here is the DocumentType
Thanks for your help guys. trying to implement the same code in umbraco 7.2.4 but keep getting an error - Cannot resolve a Url for a media item when there is no 'umbracoFile' property defined. has the syntax changed between versions? New to bootstrap and MVC hence all the questions. Thanks again.
is working on a reply...