Hi Alex Many Thanks for helping me
In Umazel starterkit SectionPortfolio.cshtml
@itemCategoriesNoCommas -> error above
//Get the ids and drop commas - those will be in the class attribute for script to work
string itemCategories = item.Categories;
string itemCategoriesNoCommas = itemCategories.Replace(" ", "").Replace(",", " ");
<div class="nf-item @itemCategoriesNoCommas @spacingClass">
<div class="item-box">
<a href="@item.Url" title="@item.GetPageTitleForMenu()">
<img class="item-container" src="@imageThumb" alt="@counter" />
<div class="item-mask">
<div class="item-caption">
<h5 class="white">@item.GetPageTitleForMenu()</h5>
@if (!currSection.DoNotDisplayCategories && !hideCategories)
{
<p class="white">@categoryNames</p>
}
</div>
</div>
</a>
</div>
</div>
Helper class portfolio helper
public IEnumerable<DGenericCategoryItem> GetCategories()
{
IEnumerable<DGenericCategoryItem> categories = null;
if (_hasCategories)
{
//Check if category is contained in at least one portfolio item's picker. If not, don't add to list since it's an empty category.
categories = _categoryItems.AsEnumerable();
}
return (categories);
}
Portofolio categories not working
Hi have created portofolio page but my categories aren't working insted of the pageId I get this line 87 sectionPortofolio
/Christina
Hi Christina
Can you show all the code?
Alex
Hi Alex Many Thanks for helping me In Umazel starterkit SectionPortfolio.cshtml @itemCategoriesNoCommas -> error above
Helper class portfolio helper
Hi Again I know whats wrong Its the obsolte MultiNode Picker, when i changed I got this error String "1521" is not a valid udi. line 87 /C
is working on a reply...