Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Aug 22, 2013 @ 06:47
    Kevin Jump
    0

    uLocalGovMVC Starter Kit - Beta Release

    An all new version of the starter kit is now available - built using Mvc for Umbraco 6.1.3 this version is cleaner and nicer than the last one.

    it includes

    • Bootstrap 3 templates, for nice responsiveness
    • Sample pages and structure of a segmented site
    • some maps for venue pages
    • Landing Pages
    • Drop down mega menus
    • Mvc Templates and Partial Views
    • Some Surface controller stuff so you can see how that works

    This version is the result of a complete rebuild and actually done with the benefit of knowing how umbraco works a bit better this time :-)

    feedback greatly received.

    With the growing use of umbraco in local government, we are looking for contributors to help us build this package and the library of umbraco bits that can be help people get their site of the ground.

    if you want to help please get in touch.

  • Kevin Coster 83 posts 120 karma points
    Sep 15, 2013 @ 18:00
    Kevin Coster
    0

    Having problems installing on umbraco Umbraco v6.1.5 (Assembly version: 1.0.4993.19246)

    Its on a local Windows 2008 II7.5 dev box

    When I install ulocalgov I get the error shown below.... it seems to partially install but not fully as things are missing A-Z and sitemap wont work and icons are missing. Have rechecked permission on the site to the point now where IIS account has full access to all files and folders.

    Server Error in '/' Application.


    Specified cast is not valid.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.InvalidCastException: Specified cast is not valid.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [InvalidCastException: Specified cast is not valid.]
       umbraco.editorControls.datepicker.DateData.ToXMl(XmlDocument d) +187
       Umbraco.Core.Models.PropertyExtensions.ToXml(Property property, IDataTypeService dataTypeService) +534
       Umbraco.Core.Services.PackagingService.Export(IContentBase contentBase, String nodeName) +1518
       Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep) +241
       Umbraco.Web.Search.ExamineEvents.IndexConent(IContent sender) +76
       Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +148
       Umbraco.Core.Services.ContentService.Save(IEnumerable`1 contents, Int32 userId, Boolean raiseEvents) +900
       Umbraco.Core.Services.PackagingService.ImportContent(XElement element, Int32 parentId, Int32 userId) +288
       umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +2460
       umbraco.presentation.developer.packages.Installer.ProcessInstall(String currentStep) +716
       umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +618
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

  • Steve Wilkinson 132 posts 211 karma points
    Sep 16, 2013 @ 09:27
    Steve Wilkinson
    0

    Hi

    I've got two issues, one slightly more major than the other so I'll start with the less important one - have you got any css fixes for IE8 as the main welcome part and the News aren't resizing, they are both displaying full width (and sadly, we are currently still using IE8 and whilst Chrome is slowly being rolled out, if I send a link to senior management, it will currently open in IE and as I need their buy in...).

    More importantly if I do a search, I get this:

    Server Error in '/' Application.


    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 5:      var searchTerm = Request.QueryString["q"];
    Line 6:      var Searcher = ExamineManager.Instance.SearchProviderCollection["WebsiteSearcher"];
    Line 7: var searchCriteria = Searcher.CreateSearchCriteria(BooleanOperation.Or); Line 8:    var query = searchCriteria.Field("title",searchTerm).Or().Field("bodyText",searchTerm).Compile();
    Line 9:  var searchResults = Searcher.Search(query);


    Source File: c:\inetpub\umbraco\Views\Partials\ulgSiteSearch.cshtml    Line:

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 16, 2013 @ 10:22
    Kevin Jump
    0

    Hi, yeah

    firt one - the Starter Kit is using Bootstrap 3 - we swapped from 2.3 during development and i think we didn't add the right javascript files for i.e8

    you need to add the HTML5shiv and responsive javascript to the header to get ie8 doing the responsive stuff

    <!--[if lt IE 9]>
      <script src="../assets/js/html5shiv.js"></script>
      <script src="../assets/js/respond.min.js"></script>
    <![endif]-->
    

    Search -

    One thing it's difficult to do with the starter kit is change configuration settings for search in order for umbraco to search the correct fields you need to change the examineindex.config - you can see the settings on the site we build the kit from in the github repository

    https://github.com/KevinJump/uLocalGov.StarterKit/blob/uSyncDocTypeHack/uLocalGovMVC/Config/ExamineIndex.config

    we'll have a look at making the kit include these changes.

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 16, 2013 @ 10:31
    Kevin Jump
    0

    Kevin -

    Hi unfortunatly i haven't had time to test the install on 6.1.5 yet- but it looks like the bit that tidies up the package after installation is failing.

    It looks like all the package files are there but what the end process does is just change some templaste types in the kit.

    the A-Z, Search and Sitemap all use the same docType but have different templates, if you navigate to those pages inside umbraco then go to the properties tab you will be able to change the template to the correct one.

    again - i will have to test on 6.1.5 and make the install work.

  • Kevin Coster 83 posts 120 karma points
    Sep 16, 2013 @ 12:40
    Kevin Coster
    0

    Cool thanks for confirming that about the install, it looked liked it had completed with everything appearing to be installed ok however when found search and A-Z wasnt working thought it maybe down to the installer not completing.

    Also found that doing a webmatrix install over manual has got things working better as well...

    Confirmed changes to doctypes have now allowed the AtoZ and Search now work thank you for your quick response!

    Kev

  • Steve Wilkinson 132 posts 211 karma points
    Sep 16, 2013 @ 13:35
    Steve Wilkinson
    0

    Hi Kevin

    probably a schoolboy error but I don't have any folder called assets - do I need to download HTML5shiv and install it?

    Steve

     

  • Balram Narad 37 posts 89 karma points
    Apr 03, 2014 @ 14:08
    Balram Narad
    0

    Hello

    We've just started using your starter kit is there anyway to change the document types the a-z uses frol "ulgContentPage", "ulgLandingPage" to our own document types

    Bal

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Apr 03, 2014 @ 14:25
    Kevin Jump
    0

    Hi in umbraco you can't (currently) swap the document types of existing content.

    if you just want to change the layout and styles you can change the template on the properties page of any content node,

    in umbraco 7.1 (released sometime today!) you can change the document type, you select actions in the top righthand corner and change type.

    but: you should consider just completely altering the existing document types, you can freely remove and add all the properties you want to the types, and change the templates. the site will work and you can have any info and look and feel you want.

    If you want the structure but not the types I am working on a LGNL import navigation tool, so you can just import the structure onto the site.

  • Balram Narad 37 posts 89 karma points
    Apr 03, 2014 @ 15:28
    Balram Narad
    0

    hi  Kevin

     

    thanks for the quick reply, We've already got a site with our own doctypes and wanted to use your A-z functionality with it so were hoping we could adapt your code to read our doctypes for our a-z rather than it's own.  In your controller you have the following code

    docTypeAliasToIncludeInAZ =

    newstring[] { "ulgContentPage", "ulgLandingPage") and we were hoping we could just change that to our doctypes and it would work but that doesn't seem to be the case

     

    Bal

     

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Apr 03, 2014 @ 18:01
    Kevin Jump
    0

    Hi Bal

    that should work, but you also need to see what the title field is called on your doctypes in the starter kit the field is title (which is actually defined in ulg.Content doctype) if the new doctypes don't have this value then the line:

    if (!azPages.ContainsKey(page.GetPropertyValue<string>("title"))){          
            azPages.Add(page.GetPropertyValue<string>("title"), page.Url);
    }
    

    won't pass so they won't be added to the az - you can just change title to what ever your page titles are.

  • Steve Wilkinson 132 posts 211 karma points
    Apr 04, 2014 @ 10:26
    Steve Wilkinson
    0

    Is there any issues using Contour within the starter kit?

    I have an issue http://our.umbraco.org/forum/umbraco-pro/contour/49662-DatePicker-works-in-preview-but-not-on-web-form?p=0#comment177554 with the calendar part of the datepicker field not appearing.

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Apr 04, 2014 @ 12:25
    Kevin Jump
    0

    Hi

    Im not a big Contour user* so I can't be sure. but if contour requires a different version of jQuery/jQuery UI then going to that version in the kit shouldn't cause any problems.

    also I don't know how Contour would inject the scripts into your page - often this is done with the Client Dependency Framework - which is relativity easy to add to the master pages. the Kit doesn't do that, because I don't want to confuse people early on.

    *so everything in this post could be way off

  • Matthew 138 posts 201 karma points
    Apr 13, 2014 @ 06:46
    Matthew
    0

    Hi Kevin,

    I posted this in the Razor forum (http://our.umbraco.org/forum/developers/razor/49945-Retrieve-children-of-a-lower-branch-and-of-a-different-branch?p=0#comment178561) but thought you might have an idea.  I love the concept of your generic section doctypes to facilitate fee expansion but in my adaption, I seem to keep bumping into Umbraco wanting to retrieve things either by doctype or by relative position in the tree, not by name or other distinct property.  I see a number of things on the cheat sheet that sound like they might work but I've never found good explanations for the uncommon ones.

    Any thoughts on how I might select specific nodes and maintain the generic structure, without changing to specific doctypes?

    Thanks much,

    Matthew

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Apr 13, 2014 @ 14:20
    Kevin Jump
    0

    Hi

    I've put some stuff in the other post.

    It comes down a bit to how you want to categorize, in the past i have had dropdown/checkbox pickers on a doctype, and then used Examine to return all doctypes with certain values selected - that works quite well but needs examine setting up.

    you can do it all with Where() queries, as long as you happy with your lamba syntax

    Kevin

  • Matthew 138 posts 201 karma points
    May 10, 2014 @ 19:43
    Matthew
    0

    Hi again, Kevin. I ran into an oddity with my site that is based on your work, then noticed the same thing happens on a different computer running your package (that I've messed with a bit). It adds p and br tags in the content rte when I save and publish. Here's my post on it. You haven't noticed anything like that have you?

  • Steve Wilkinson 132 posts 211 karma points
    Jul 17, 2014 @ 16:43
    Steve Wilkinson
    0

    Hi Kevin

    if I want to use bootstrap 3 collapse.js to enable "accordion" style collapses, is there anything I need to do (other than get the file) and if I had the file, will it have any impact on rest of the site?

    thanks

    Steve

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Jul 18, 2014 @ 18:38
    Kevin Jump
    1

    Hi the kit comes with the full bootstrap.js included (i think) so you shouldn't need to add anything other than the data-toggle markup and maybe the javascript.

    if you do need to add anything - there should be no problems, using the collapse code with the kit.

  • Steve Wilkinson 132 posts 211 karma points
    Oct 22, 2014 @ 10:26
    Steve Wilkinson
    0

    How do you add icons to the "Related Icon" section? (Umbraco 6.x.x)

    I've got font-awesome.min.css installed but could do with some of the icons in font-awesome that aren't showing in the list.

Please Sign in or register to post replies

Write your reply to:

Draft