Page 1 of 1

Home Page

Posted: Tue Apr 16, 2013 6:37 am
by ktalati
Hello,

I had successfully configured Heat Clinic Demo and it is running perfectly fine.

But now i want to update home page with some new attributes as well as new objects.

I had checked in my workspace but unfortunately i'm unable to find that from which controller or from where home page (home.html) is coming ?

Please please please help me...

Thanks in advance...

Regards,
Kishan Talati

Re: Home Page

Posted: Tue Apr 16, 2013 11:23 am
by phillipuniverse
This is configured by the 'Home' category. If you notice, the URL for this category is set to '/' and the template is configured as 'layout/home' which will ensure that 'home.html' is returned as the template.

Re: Home Page

Posted: Wed Apr 17, 2013 12:35 am
by ktalati
Thanks Phillip, Now i'm able to update home page with custom attributes.

And One More Question, i want to configure breadcrumb in site so is there any way to configure it from broadleaf ?

Regards,
Kishan Talati

Re: Home Page

Posted: Wed Apr 17, 2013 10:57 am
by phillipuniverse
We don't currently have that functionality built in but it would not be that difficult to set one up yourself. I would probably create a Thymeleaf processor to look at the current category that you are on (perhaps based on the current URL or if you are on a category page/product page then maybe look at the category already on the model) and then just keep following category.getDefaultParentCategory() until you get to one that's null. Should be relatively straightforward recursion.

Re: Home Page

Posted: Sat May 31, 2014 5:37 am
by gowthamgutha
How do I do that in broadleaf?

I have actually done the following..

<span th:each="eachCategory : ${category.buildFullCategoryHierarchy(category)}">
<a th:text="${eachCategory.name}" th:href="${eachCategory.url}"></a>
</span>

But, the problem here is how do i get it in reverse order.

i.e. instead of Merchandise > Primary Nav > Root, i should get

Root > Nav > Merchandise

Also, the url of the primary nav and root is same as that of the category. It isn't changing.

Thanks in advance.

Re: Home Page

Posted: Tue Jan 13, 2015 5:57 am
by alison3492
You are welcome.