Line 1: #pragma checksum "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "AFDA076F4757F3DD6E341C5D7167EB17C6FC272A"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16:
Line 17: #line 7 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 18: using System.Linq;
Line 19:
Line 20: #line default
Line 21: #line hidden
Line 22: using System.Net;
Line 23: using System.Web;
Line 24: using System.Web.Helpers;
Line 25: using System.Web.Security;
Line 26: using System.Web.UI;
Line 27: using System.Web.WebPages;
Line 28: using System.Web.Mvc;
Line 29: using System.Web.Mvc.Ajax;
Line 30: using System.Web.Mvc.Html;
Line 31: using System.Web.Routing;
Line 32:
Line 33: #line 4 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 34: using Umbraco.Web;
Line 35:
Line 36: #line default
Line 37: #line hidden
Line 38:
Line 39: #line 1 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 40: using Umbraco.Core;
Line 41:
Line 42: #line default
Line 43: #line hidden
Line 44: using Umbraco.Core.Models;
Line 45: using Umbraco.Web.Mvc;
Line 46:
Line 47: #line 2 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 48: using umbraco;
Line 49:
Line 50: #line default
Line 51: #line hidden
Line 52: using Examine;
Line 53:
Line 54: #line 5 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 55: using RJP.MultiUrlPicker.Models;
Line 56:
Line 57: #line default
Line 58: #line hidden
Line 59:
Line 60: #line 6 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 61: using Umbraco.Web.PublishedContentModels;
Line 62:
Line 63: #line default
Line 64: #line hidden
Line 65:
Line 66: #line 8 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 67: using Umbraco.Core.Services;
Line 68:
Line 69: #line default
Line 70: #line hidden
Line 71: using Microsoft.Web.Helpers;
Line 72: using DotNetOpenAuth.AspNet;
Line 73: using WebMatrix.WebData;
Line 74: using Microsoft.Web.WebPages.OAuth;
Line 75: using WebMatrix.Data;
Line 76:
Line 77:
Line 78: public class _Page_Views_Genre_cshtml : System.Web.Mvc.WebViewPage<dynamic> {
Line 79:
Line 80: #line hidden
Line 81:
Line 82: public _Page_Views_Genre_cshtml() {
Line 83: }
Line 84:
Line 85: protected ASP.global_asax ApplicationInstance {
Line 86: get {
Line 87: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 88: }
Line 89: }
Line 90:
Line 91: public override void Execute() {
Line 92:
Line 93: #line 9 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 94:
Line 95: Layout = null;
Line 96: var uh = new UmbracoHelper(UmbracoContext.Current);
Line 97: var home = uh.TypedContentSingleAtXPath("//Home");
Line 98: var allTags = uh.TypedContentAtXPath("//tagItem"); //umbraco.library.GetPreValueAsString();
Line 99: var count = 0;
Line 100:
Line 101:
Line 102: #line default
Line 103: #line hidden
Line 104: WriteLiteral("\r\n");
Line 105:
Line 106: WriteLiteral(" ");
Line 107:
Line 108:
Line 109: #line 16 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 110: Write(home.Name);
Line 111:
Line 112:
Line 113: #line default
Line 114: #line hidden
Line 115: WriteLiteral("<br />\r\n\r\n");
Line 116:
Line 117:
Line 118: #line 18 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 119:
Line 120:
Line 121: #line default
Line 122: #line hidden
Line 123:
Line 124: #line 18 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 125: foreach(var x in allTags)
Line 126: {
Line 127:
Line 128:
Line 129: #line default
Line 130: #line hidden
Line 131:
Line 132: #line 20 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 133: Write(x.Name);
Line 134:
Line 135:
Line 136: #line default
Line 137: #line hidden
Line 138: WriteLiteral(" <br/>\r\n");
Line 139:
Line 140:
Line 141: #line 21 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 142:
Line 143:
Line 144: #line default
Line 145: #line hidden
Line 146:
Line 147: #line 21 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 148: Write(x.Id);
Line 149:
Line 150:
Line 151: #line default
Line 152: #line hidden
Line 153: WriteLiteral(" <br />");
Line 154:
Line 155: WriteLiteral("<br />\r\n");
Line 156:
Line 157:
Line 158: #line 22 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 159: }
Line 160:
Line 161:
Line 162: #line default
Line 163: #line hidden
Line 164: WriteLiteral("\r\n");
Line 165:
Line 166:
Line 167: #line 24 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 168: foreach(Genre child in home.Children.Where(contact => contact.DocumentTypeAlias =="Genre"))
Line 169: {
Line 170:
Line 171:
Line 172: #line default
Line 173: #line hidden
Line 174: WriteLiteral(" <h1>");
Line 175:
Line 176:
Line 177: #line 26 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 178: Write(child.Name);
Line 179:
Line 180:
Line 181: #line default
Line 182: #line hidden
Line 183: WriteLiteral("<br/></h1>\r\n");
Line 184:
Line 185:
Line 186: #line 27 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 187: foreach (Title grandchild in child.Children)
Line 188: {
Line 189: count++;
Line 190: IContent myContent = ApplicationContext.Current.Services.ContentService.GetById(Convert.ToInt32(grandchild.Id));
Line 191: var link = grandchild.ContentType.FirstOrDefault() as Link;
Line 192:
Line 193: var currentTagJson = myContent.GetValue<string>("contentType");
Line 194: if (currentTagJson != null)
Line 195: {
Line 196: currentTagJson = currentTagJson.Replace("6584", "7746").Replace("6585", "7747").Replace("6586", "7748").Replace("6587", "7749").Replace("6588", "7751");
Line 197: if (count < 1000)
Line 198: {
Line 199: //myContent.SetValue("contentType", currentTagJson);
Line 200: //ApplicationContext.Current.Services.ContentService.SaveAndPublishWithStatus(myContent);
Line 201: }
Line 202: }
Line 203:
Line 204:
Line 205:
Line 206: #line default
Line 207: #line hidden
Line 208: WriteLiteral(" <h2>");
Line 209:
Line 210:
Line 211: #line 44 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 212: Write(grandchild.Name);
Line 213:
Line 214:
Line 215: #line default
Line 216: #line hidden
Line 217: WriteLiteral("</h2> ");
Line 218:
Line 219:
Line 220: #line 44 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 221:
Line 222:
Line 223: #line default
Line 224: #line hidden
Line 225:
Line 226: #line 44 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 227: Write(link!= null ? link.Name : "!__NONE__!");
Line 228:
Line 229:
Line 230: #line default
Line 231: #line hidden
Line 232:
Line 233: #line 44 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 234:
Line 235:
Line 236:
Line 237: #line default
Line 238: #line hidden
Line 239: WriteLiteral(" <!--<p> ");
Line 240:
Line 241:
Line 242: #line 45 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 243: Write(myContent.GetValue("contentType"));
Line 244:
Line 245:
Line 246: #line default
Line 247: #line hidden
Line 248: WriteLiteral("</p>\r\n <p>");
Line 249:
Line 250:
Line 251: #line 46 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 252: Write(currentTagJson);
Line 253:
Line 254:
Line 255: #line default
Line 256: #line hidden
Line 257: WriteLiteral("</p>-->\r\n");
Line 258:
Line 259:
Line 260: #line 47 "C:\inetpub\wwwroot\NBCSports\Web\Views\Genre.cshtml"
Line 261:
Line 262: }
Line 263: }
Line 264:
Line 265: #line default
Line 266: #line hidden
Line 267: }
Line 268: }
Line 269: }
Line 270:
|