Skip to content

Commit fd1ed63

Browse files
author
Warren Buckley
committed
CWS Start 0.0.1 Alpha Release
1 parent 10dc369 commit fd1ed63

13 files changed

Lines changed: 284 additions & 65 deletions

File tree

CWSStart.Web/CWSStart.Web/App_Data/Logs/UmbracoTraceLog.txt

Lines changed: 232 additions & 0 deletions
Large diffs are not rendered by default.
64 KB
Binary file not shown.

CWSStart.Web/CWSStart.Web/App_Data/packages/created/createdPackages.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="1" version="0.0.1" url="http://" name="CWS Start" folder="3a76f90e-3b8f-41f3-8770-63b97aeed117" packagepath="" repositoryGuid="" packageGuid="792447da-63c5-427c-a925-df92b7e84545" hasUpdate="False" enableSkins="False" skinRepoGuid="00000000-0000-0000-0000-000000000000">
3+
<package id="1" version="0.0.1" url="http://creativewebspecialist.co.uk" name="CWS Start" folder="3a76f90e-3b8f-41f3-8770-63b97aeed117" packagepath="~/media/created-packages/CWS_Start_0.0.1.zip" repositoryGuid="" packageGuid="792447da-63c5-427c-a925-df92b7e84545" hasUpdate="False" enableSkins="False" skinRepoGuid="00000000-0000-0000-0000-000000000000">
44
<license url="http://www.opensource.org/licenses/mit-license.php">MIT license</license>
55
<author url="http://creativewebspecialist.co.uk">Warren Buckley</author>
66
<readme><![CDATA[]]></readme>
@@ -12,7 +12,7 @@
1212
</content>
1313
<templates>1048,1087,1049,1050,1046,1084,1045,1051,1052,1102,1091,1085,1088,1096,1047,1099,1089,1092</templates>
1414
<stylesheets>1106,1107,1108,1109,1110</stylesheets>
15-
<documenttypes>1058,1069,1063,1064,1054,1068,1053,1059,1060,1103,1078,1067,1070,1097,1055,1071,1093</documenttypes>
15+
<documenttypes>1058,1069,1063,1064,1054,1068,1053,1059,1060,1103,1111,1078,1067,1070,1097,1055,1071,1093</documenttypes>
1616
<macros>
1717
</macros>
1818
<files>
@@ -46,6 +46,7 @@
4646
<file>/umbraco/Images/Umbraco/CWS-user-silhouette-question.png</file>
4747
<file>/umbraco/Images/Umbraco/CWS-user.png</file>
4848
<file>/umbraco/Images/Umbraco/CWS-users.png</file>
49+
<file>/Views/SiteChromeSurface</file>
4950
</files>
5051
<languages>
5152
</languages>

CWSStart.Web/CWSStart.Web/App_Data/umbraco.config

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<!DOCTYPE root[<!ELEMENT CWS-Photo ANY>
1+
<!DOCTYPE root[<!ELEMENT CWS-Profile ANY>
2+
<!ATTLIST CWS-Profile id ID #REQUIRED>
3+
<!ELEMENT CWS-Photo ANY>
24
<!ATTLIST CWS-Photo id ID #REQUIRED>
35
<!ELEMENT CWS-Search ANY>
46
<!ATTLIST CWS-Search id ID #REQUIRED>
@@ -103,9 +105,12 @@
103105
<CWS-Forgotten-Password id="1090" parentID="1056" level="2" creatorID="0" sortOrder="8" createDate="2013-07-29T15:15:53" updateDate="2013-07-30T13:34:35" nodeName="Forgotten Password" urlName="forgotten-password" path="-1,1056,1090" isDoc="" nodeType="1069" creatorName="admin" writerName="admin" writerID="0" template="1087" nodeTypeAlias="CWS-Forgotten-Password">
104106
<umbracoNaviHide>1</umbracoNaviHide>
105107
</CWS-Forgotten-Password>
106-
<CWS-Profile-Edit id="1080" parentID="1056" level="2" creatorID="0" sortOrder="9" createDate="2013-07-25T15:37:24" updateDate="2013-07-30T13:47:25" nodeName="Edit Profile" urlName="edit-profile" path="-1,1056,1080" isDoc="" nodeType="1078" creatorName="admin" writerName="admin" writerID="0" template="1091" nodeTypeAlias="CWS-Profile-Edit">
108+
<CWS-Profile id="1112" parentID="1056" level="2" creatorID="0" sortOrder="9" createDate="2013-08-02T12:29:36" updateDate="2013-08-02T14:07:20" nodeName="Profile" urlName="profile" path="-1,1056,1112" isDoc="" nodeType="1111" creatorName="admin" writerName="admin" writerID="0" template="1113" nodeTypeAlias="CWS-Profile">
109+
<CWS-Profile-Edit id="1080" parentID="1112" level="3" creatorID="0" sortOrder="1" createDate="2013-07-25T15:37:24" updateDate="2013-08-02T14:05:45" nodeName="Edit Profile" urlName="edit-profile" path="-1,1056,1112,1080" isDoc="" nodeType="1078" creatorName="admin" writerName="admin" writerID="0" template="1091" nodeTypeAlias="CWS-Profile-Edit">
110+
<umbracoNaviHide>1</umbracoNaviHide>
111+
</CWS-Profile-Edit>
107112
<umbracoNaviHide>1</umbracoNaviHide>
108-
</CWS-Profile-Edit>
113+
</CWS-Profile>
109114
<CWS-Search id="1098" parentID="1056" level="2" creatorID="0" sortOrder="10" createDate="2013-07-31T11:18:27" updateDate="2013-07-31T14:17:08" nodeName="Search" urlName="search" path="-1,1056,1098" isDoc="" nodeType="1097" creatorName="admin" writerName="admin" writerID="0" template="1096" nodeTypeAlias="CWS-Search">
110115
<umbracoNaviHide>1</umbracoNaviHide>
111116
</CWS-Search>

CWSStart.Web/CWSStart.Web/CWSStart.Web.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
<Compile Include="Controllers\AuthSurfaceController.cs" />
272272
<Compile Include="Controllers\ContactFormSurfaceController.cs" />
273273
<Compile Include="Controllers\ProfileSurfaceController.cs" />
274+
<Compile Include="Controllers\SiteChromeSurfaceController.cs" />
274275
<Compile Include="Controllers\ViewProfileController.cs" />
275276
<Compile Include="CWSExtensions\EmailHelper.cs" />
276277
<Compile Include="CWSExtensions\ExtensionMethods.cs" />
@@ -335,7 +336,7 @@
335336
<Content Include="Views\CWS-Reset-Password.cshtml" />
336337
<Content Include="Views\CWS-Verify-Email.cshtml" />
337338
<Content Include="Views\AuthSurface\VerifyEmail.cshtml" />
338-
<Content Include="Views\Partials\Navi.cshtml" />
339+
<Content Include="Views\SiteChromeSurface\Navi.cshtml" />
339340
<Content Include="Views\CWS-XML-Sitemap.cshtml" />
340341
<Content Include="Views\CWS-Profile-Edit.cshtml" />
341342
<Content Include="Views\CWS-Search.cshtml" />
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using Umbraco.Core;
7+
using Umbraco.Core.Models;
8+
using Umbraco.Web.Mvc;
9+
10+
namespace CWSStart.Web.Controllers
11+
{
12+
public class SiteChromeSurfaceController : SurfaceController
13+
{
14+
15+
public ActionResult RenderNavi()
16+
{
17+
//Get the homepage node
18+
var home = Umbraco.TypedContentAtRoot().SingleOrDefault(x => x.DocumentTypeAlias == "CWS-Home");
19+
var pages = home.Children.Where(x => x.IsVisible());
20+
21+
//Return our collection of pages to the view
22+
return PartialView("Navi", pages);
23+
}
24+
25+
}
26+
}

CWSStart.Web/CWSStart.Web/Controllers/ViewProfileController.cs

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -84,54 +84,5 @@ public override ActionResult Index(RenderModel model)
8484
//Return template with our profile model
8585
return CurrentTemplate(profile);
8686
}
87-
88-
89-
//public ActionResult RenderMemberProfile(string profileURLtoCheck)
90-
//{
91-
// //Try and find member with the QueryString value ?profileURLtoCheck=warrenbuckley
92-
// Member findMember = Member.GetAllAsList().FirstOrDefault(x => x.getProperty("profileURL").Value.ToString() == profileURLtoCheck);
93-
94-
// //Create a view model
95-
// ViewProfileViewModel profile = new ViewProfileViewModel();
96-
97-
// //Check if we found member
98-
// if (findMember != null)
99-
// {
100-
// //Increment profile view counter by one
101-
// int noOfProfileViews = 0;
102-
// int.TryParse(findMember.getProperty("numberOfProfileViews").Value.ToString(), out noOfProfileViews);
103-
104-
// //Increment counter by one
105-
// findMember.getProperty("numberOfProfileViews").Value = noOfProfileViews + 1;
106-
107-
// //Save it down to the member
108-
// findMember.Save();
109-
110-
// //Got the member lets bind the data to the view model
111-
// profile.Name = findMember.Text;
112-
// profile.MemberID = findMember.Id;
113-
// profile.EmailAddress = findMember.Email;
114-
115-
// profile.Description = findMember.getProperty("description").Value.ToString();
116-
117-
// profile.LinkedIn = findMember.getProperty("linkedIn").Value.ToString();
118-
// profile.Skype = findMember.getProperty("skype").Value.ToString();
119-
// profile.Twitter = findMember.getProperty("twitter").Value.ToString();
120-
121-
// profile.NumberOfLogins = Convert.ToInt32(findMember.getProperty("numberOfLogins").Value.ToString());
122-
// profile.LastLoginDate = DateTime.ParseExact(findMember.getProperty("lastLoggedIn").Value.ToString(), "dd/MM/yyyy @ HH:mm:ss", null);
123-
// profile.NumberOfProfileViews = Convert.ToInt32(findMember.getProperty("numberOfProfileViews").Value.ToString());
124-
125-
// }
126-
// else
127-
// {
128-
// //Couldn't find the member return a 404
129-
// return new HttpNotFoundResult("The member profile does not exist");
130-
// }
131-
132-
// //Get Edit Profile as the content node to pass through with our model
133-
// return View("View", profile);
134-
//}
135-
13687
}
13788
}

CWSStart.Web/CWSStart.Web/Models/ProfileViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public class ProfileViewModel
4444

4545
public class ViewProfileViewModel
4646
{
47+
4748
[HiddenInput(DisplayValue = false)]
4849
public int MemberID { get; set; }
4950

CWSStart.Web/CWSStart.Web/Views/CWS-Master.cshtml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@inherits UmbracoViewPage<dynamic>
2-
@{
1+
@{
32
Layout = null;
43
}
54
<!DOCTYPE html>
@@ -32,7 +31,7 @@
3231
<div id="wrap">
3332

3433
<!-- Fixed navbar -->
35-
@Html.Partial("~/Views/Partials/Navi.cshtml")
34+
@Html.Action("RenderNavi", "SiteChromeSurface")
3635

3736
<!-- Begin page content -->
3837
<div class="container">
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
2+
@{
3+
Layout = "CWS-Master.cshtml";
4+
}

0 commit comments

Comments
 (0)