I have created a fresh install of Umbraco 6 and installed uBootstrap as my starter package. After the fresh install and viewing the pages, I see 'Error loading MacroEngine script' in each macro location.
This led me to think what else could possibly have conflicts with 6. Has anyone successfully installed and used this package for Umbraco 6? What potential issues could arise and can it be easily adapted?
I'm starting a new project and am curious if I should take this route (Umbraco 6 + uBoostrap) to save time, or will it inevitably create more of a headache.
I also came across an error that had me head scratching for a bit in PageTitle.cshtml . In the end I avoided the .pluck method and opted to replaces with the slightly longer foreach to get things running.
@inherits umbraco.MacroEngines.DynamicNodeContext
@{
@Model.AncestorsOrSelf().First().SiteName
if (@Model.Level > 1)
{
foreach (var name in Model.AncestorsOrSelf().Where("Visible").Where("Level > 1").Pluck("Name"))
{
@Html.Raw(" - ");
@name ;
}
}
}
Other than these initial hiccups with razor, has anyone had success using this starter kit with umbraco 6? I'm new to umbraco and like the idea of this starter kit very much since it uses the bootstrap framework. I've worked through the initial razor syntax fixes and have a basic site running, but are you guys encountering any further issues farther into development?
Since I prepared a v6 version of the package (I updated the razor scripts and all the dependencies to the latest version) I've not seen any problems further down the road. I've also couple this package with a bunch of others including of course uComponents and a custom extension I've written.
Has anyone had similar problems with the ResizeImage script?
I've got uBootstrap installed on Umbraco 6 - and made the changes to the navigation.cshtml and pagetitle.cshtml - everything seems to be working except I'm not getting any images. The output from ResizeImage.cshtml seems to be completely empty in the page source - any ideas?
There seems to be a bit of a issue with creating the content nodes in the package on v6 that means that the gallery nodes don't actually have any images picked. So the reason the gallery appears blank is that there are actually any images set. Check the image pickers on those content nodes are set and give it a wirl =)
Are the fixes above included in the latest version? I tried the one 1.1.0 from http://our.umbraco.org/projects/starter-kits/ubootstrap and it does'nt seem to have the fixes included. Also tried github, but did'nt find source there.
Update: Sorry, I did not look in the correct branch. Found package 1.1.1 in the umbraco branch, works like a charm. Thanks :-)
"Found package 1.1.1 in the umbraco branch, works like a charm. Thanks :-)"
@Larsi To make this forum a little bit better it would be great if you could add a link to the solution or a discription how to find it. Beacuse not all people can find the way from the information within your update
NewsList.cshtml also refuses to work, cannot even save it as is in the editor. Keeps barking at me about a missing curly brace } even though all that should be are there.
I've got this up and running on v6 - thanks to everyone who posted the code fixes above.
One thing I can't work out - all the pages - even ones I add - have "http://en.umbraco.local/" at the start of the url after being published and I can't for the life of me work out why!
*** Update to answer my own question: the domain setting can be found by right-clicking on the home node, then selecting "culture and hostnames". ***
Umbraco 6 coupled with uBootstrap
I have created a fresh install of Umbraco 6 and installed uBootstrap as my starter package. After the fresh install and viewing the pages, I see 'Error loading MacroEngine script' in each macro location.
This led me to think what else could possibly have conflicts with 6. Has anyone successfully installed and used this package for Umbraco 6? What potential issues could arise and can it be easily adapted?
I'm starting a new project and am curious if I should take this route (Umbraco 6 + uBoostrap) to save time, or will it inevitably create more of a headache.
Thanks!
p.s. Great package by the way!
Do you have some extra error info? Perhaps it's just 1 error which breaks all macro's.
Jeroen
Haven't investigate much yet, but seems to revolve around parsing the navigation:
Error loading MacroEngine script (file: Navigation.cshtml)
Error loading MacroEngine script (file: SideNavigation.cshtml)
Umbraco 6 uses MVC 4 and that is stricter with Razor: http://issues.umbraco.org/issue/U4-1143#comment=67-4333
In the code I see some @ characters which should be removed. For example at @Model.Level == 1 it's not allowed.
Jeroen
Fixed it. Thanks Jeroen.
This was mentioned twice in the code:
It needed a space between the 'li' and '@'.
Here is the updated code:
Hi Greg,
I also came across an error that had me head scratching for a bit in PageTitle.cshtml . In the end I avoided the .pluck method and opted to replaces with the slightly longer foreach to get things running.
Thanks Drew, that is helpful!
Other than these initial hiccups with razor, has anyone had success using this starter kit with umbraco 6? I'm new to umbraco and like the idea of this starter kit very much since it uses the bootstrap framework. I've worked through the initial razor syntax fixes and have a basic site running, but are you guys encountering any further issues farther into development?
Hi Steve,
Since I prepared a v6 version of the package (I updated the razor scripts and all the dependencies to the latest version) I've not seen any problems further down the road. I've also couple this package with a bunch of others including of course uComponents and a custom extension I've written.
Thanks Drew
Has anyone had similar problems with the ResizeImage script?
I've got uBootstrap installed on Umbraco 6 - and made the changes to the navigation.cshtml and pagetitle.cshtml - everything seems to be working except I'm not getting any images. The output from ResizeImage.cshtml seems to be completely empty in the page source - any ideas?
Andrew
Hi Andrew,
There seems to be a bit of a issue with creating the content nodes in the package on v6 that means that the gallery nodes don't actually have any images picked. So the reason the gallery appears blank is that there are actually any images set. Check the image pickers on those content nodes are set and give it a wirl =)
Ha - thanks Drew - works perfectly :-)
Hi!
Are the fixes above included in the latest version? I tried the one 1.1.0 from http://our.umbraco.org/projects/starter-kits/ubootstrap and it does'nt seem to have the fixes included. Also tried github, but did'nt find source there.
Update: Sorry, I did not look in the correct branch. Found package 1.1.1 in the umbraco branch, works like a charm. Thanks :-)
Larsi
"Found package 1.1.1 in the umbraco branch, works like a charm. Thanks :-)"
@Larsi
To make this forum a little bit better it would be great if you could add a link to the solution or a discription how to find it. Beacuse not all people can find the way from the information within your update
I´m new in this forum.
Can anyone tell me what an umbraco branch is and where to find it?
Hi there @Larsi
Will you be linking to the package you found? I think a few of us would really appreciate this.
Hi all!
Same problem with file RelatedLinks.cshtml with Umbraco 6.0:
Error loading MacroEngine script (file: RelatedLinks.cshtml)
Code:
@using umbraco.MacroEngines
@inherits DynamicNodeContext
@{
var links = @Model.AncestorsOrSelf().First().FooterLinks.link;
<ul class="nav nav-pills">
<li><span>@Dictionary.RelatedLinks</span></li>
@foreach (var item in links)
{ var url = item.type == "internal" ? Library.NodeById(item.link).Url : item.link;
var rel = item.type == "external" ? " rel=\"external\"" : string.Empty;
var title = item.title;
<li><a href="@url"@Html.Raw(rel)>@title</a></li>
}
</ul>
}
Hi,
I'd like to know if someone has an idea about how to make the umbNaviHide work with the Navigation.cshtml? doesnt seem to be working for me.
Also, id like to move the root 'a level down', can anyone explain where to do so?
Kind Regards,
Djan
Demóstenes,
I am also having the same problem with file RelatedLinks.cshtml with Umbraco 6.0:
have you fixed this yet?
has anyone fixed issue with RelatedLinks.cshtml ?
NewsList.cshtml also refuses to work, cannot even save it as is in the editor. Keeps barking at me about a missing curly brace } even though all that should be are there.
Umbraco v6 uses MVC 4 with Razor 2.0 and that has some changes: http://issues.umbraco.org/issue/U4-1143#comment=67-4333
"using @ in a codeblock will now break the rest of the razor script."
So you need to remove the following @ characters
@Model.Children.OrderBy("NewsDate desc");
@Dictionary.TimeFormat
Jeroen
Hi!
I am running Uboostrap 1.1.1 on Umbraco 6.1.1 but there is private memory leak on server 1GB on one page and 590MB on the 2th page is that normal?
Regards Adam
// Sight change to the RelatedLinks.cshtml file so that there is no error when no links are added
I've got this up and running on v6 - thanks to everyone who posted the code fixes above.
One thing I can't work out - all the pages - even ones I add - have "http://en.umbraco.local/" at the start of the url after being published and I can't for the life of me work out why!
*** Update to answer my own question: the domain setting can be found by right-clicking on the home node, then selecting "culture and hostnames". ***
is working on a reply...