- 25
Hello.
I want to use ACL to custom menus.
For example, I added 2 of customer roles, A and B.
For A, I want to show only A category, not B.
For B, I want to show only B category, not A.
Below is the code I have.
//For A
<li>
<span title="A">A</span>
<div class="plus-button"></div>
<div class="sublist-wrap">
<ul class="sublist">
<li class="back-button">
<span>@T("SevenSpikes.MegaMenu.ResponsiveBackButton")</span>
</li>
<li>
<a href="a" title="a">a</a>
</li>
<li>
<a href="b" title="b">b</a>
</li>
<li>
<a href="c" title="c">c</a>
</li>
</ul>
</div>
</li>
//For B
<li>
<span title="B">B</span>
<div class="plus-button"></div>
<div class="sublist-wrap">
<ul class="sublist">
<li class="back-button">
<span>@T("SevenSpikes.MegaMenu.ResponsiveBackButton")</span>
</li>
<li>
<a href="1" title="1">1</a>
</li>
<li>
<a href="2" title="2">2</a>
</li>
<li>
<a href="3" title="3">3</a>
</li>
</ul>
</div>
</li>
What kind of line should I add?
Thanks.
I want to use ACL to custom menus.
For example, I added 2 of customer roles, A and B.
For A, I want to show only A category, not B.
For B, I want to show only B category, not A.
Below is the code I have.
//For A
<li>
<span title="A">A</span>
<div class="plus-button"></div>
<div class="sublist-wrap">
<ul class="sublist">
<li class="back-button">
<span>@T("SevenSpikes.MegaMenu.ResponsiveBackButton")</span>
</li>
<li>
<a href="a" title="a">a</a>
</li>
<li>
<a href="b" title="b">b</a>
</li>
<li>
<a href="c" title="c">c</a>
</li>
</ul>
</div>
</li>
//For B
<li>
<span title="B">B</span>
<div class="plus-button"></div>
<div class="sublist-wrap">
<ul class="sublist">
<li class="back-button">
<span>@T("SevenSpikes.MegaMenu.ResponsiveBackButton")</span>
</li>
<li>
<a href="1" title="1">1</a>
</li>
<li>
<a href="2" title="2">2</a>
</li>
<li>
<a href="3" title="3">3</a>
</li>
</ul>
</div>
</li>
What kind of line should I add?
Thanks.