Suppose i am creating new page in admin selecting theme "_sitelayout" and default as a layer. I would like to add Razor code for specific pages in the area called RenderBody() using HTML text editor, is it possible?. If not kindly me an alternative solution.
Sure Mike. Below is the picece of razor code i would like to add in the specific pages only not in all the pages.
<divid="home-slider-container"><divid="home-slider">@{foreach(varcommentinposting){<divclass="home-slider-item"><imgclass="large-photo"alt=""style=""src="@Href("~/Thumbnail/",comment.id,new{size="large"})"unselectable="on"/><divclass="slider-caption"><h2>@comment.Heading</h2><p>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque.
</p></div></div>}}</div><divid="slider-controller"class="content-width"><ahref="#"id="slider-prev"><iclass="icon-angle-left"></i></a><ahref="#"id="slider-next"><iclass="icon-angle-right"></i></a></div><divid="header-image-shadow"class="content-width"></div></div>
Member
229 Points
662 Posts
webmatrix
Jun 25, 2013 04:14 PM|ssvikramuk|LINK
Hello,
I am using Mike's cms. How to add Razor code if pages created using cms.
Thanks
All-Star
194016 Points
28029 Posts
Moderator
Re: webmatrix
Jun 25, 2013 04:47 PM|Mikesdotnetting|LINK
Where do you want to add Razor code?
Member
229 Points
662 Posts
Re: webmatrix
Jun 26, 2013 12:14 AM|ssvikramuk|LINK
Suppose i am creating new page in admin selecting theme "_sitelayout" and default as a layer. I would like to add Razor code for specific pages in the area called RenderBody() using HTML text editor, is it possible?. If not kindly me an alternative solution.
Thanks
All-Star
194016 Points
28029 Posts
Moderator
Re: webmatrix
Jun 26, 2013 12:55 AM|Mikesdotnetting|LINK
What code do you want to add? What do you want it to do?
Member
229 Points
662 Posts
Re: webmatrix
Jun 26, 2013 01:25 AM|ssvikramuk|LINK
Sure Mike. Below is the picece of razor code i would like to add in the specific pages only not in all the pages.
All-Star
194016 Points
28029 Posts
Moderator
Re: webmatrix
Jun 26, 2013 01:56 AM|Mikesdotnetting|LINK
If you want to include Razor like that, you need ot create a folder widget: http://www.webpagescms.com/documentation/folder-widgets