Delete category description on pages with filters and pagination

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hi!
Is it possible to remove description in categories pages like http://mysite.com/?pagenumber=2 etc. ?
Thank you!
8 years ago
shvager87 wrote:
Hi!
Is it possible to remove description in categories pages like http://mysite.com/?pagenumber=2 etc. ?
Thank you!


Hi!

You can't remove, but you can hide!

Just insert an IF before category description, checking when querystring is present, should do the job!

CategoryTemplate.ProductsInGridOrLines.cshtml

        @*description*@
        @if (!String.IsNullOrWhiteSpace(Model.Description) && this.Context.Request.QueryString["pagenumber"] != null)
        {
            <div class="category-description">
                @Html.Raw(Model.Description)
            </div>
        }



Try it and let me know!

Ivan.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.