Dec
6
2011
Hi, today i want to write about Alltuts theme for blog engine and how i fixed bugs of it.
First of all very much thanks to Pravesh Soni for his efforts. He converted the theme from site5.
Secondly, i dont know anything about packaging of a theme for blogengine right now. I will learn how to do it and provide a downloadable package of corrected theme. May be via http://dnbegallery.org
Lets come to the subject.
- Can not edit or delete widgets.
This bug is mentioned and fixed at Pravesh's post about the theme. There is a div with the below code in WidgetContainer.cshtml.
<div class="widget @Model.Widget.Name.Replace(" ", String.Empty).ToLowerInvariant()"
id="widget-@(Model.Widget.WidgetId)">
just remowe the dash (-) character between the word "widget" and "@" character.
You can download the fixed WidgetContainer.cshtml from the link below.
WidgetContainer.cshtml (1.15 kb)
- Can not add dropdown navigation menu items.
There are a couple of reasons for that issue.
- Self-closing script tag issue.
All the script include tags in site.cshtml is self-closing. This results in processing of only the first script tag. As you can see in below screenshot the first script tag is included but the rest is neglected.

all you need to do is to write closing tag of script tags in site.cshtml explicity.
- ddssmoothmenu initialization is forgotten
add ddssmoothmenu initialization to script block after <!-- lightbox initialize script --> comment line. it should look like below.
<!-- lightbox initialize script -->
<script type="text/javascript">
$(function () {
$('a.lightbox').lightBox();
$(@(Html.Raw(lightBoxString))).lightBox();
ddsmoothmenu.init({
mainmenuid: "topMenu",
orientation: 'h',
classname: 'ddsmoothmenu',
contentsource: "markup"
});
});
</script>
Corrected site.cshtml (7.03 kb) file can be downloaded.
See you in another post.
by Selman AY