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.
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.
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);
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
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.
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!
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
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.
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
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.
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.
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?
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
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?
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?
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.
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
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.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
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: 7
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
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 -
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.
again - i will have to test on 6.1.5 and make the install work.
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
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
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
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.
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
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:
won't pass so they won't be added to the az - you can just change title to what ever your page titles are.
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.
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
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
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
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?
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
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.
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.
is working on a reply...