Ik ben bezig met een website die ExponentCMS gebruikt. Alles leuk en wel, maar het menu dat gewenst is is redelijk lastig.
Dit is zoals het eruit moet zien wanneer je op een subitem drukt (dit plaatje is als je op de mainlink drukt)

En dit is wanneer je dus momenteel op een subitem drukt
...

Exponent gebruikt voor zaken als deze een TPL file, die ik al ver aangepast heb. Ik zelf zat te denken aan een PHP code die alles menuitems die ubitems onderzich hebben een aparte style geeft. Ik heb dit echter nog niet voor elkaar gekregen....
Dit is de inhoud van de TPL file zoals die nu op dit moment is:
Dit is zoals het eruit moet zien wanneer je op een subitem drukt (dit plaatje is als je op de mainlink drukt)

En dit is wanneer je dus momenteel op een subitem drukt

Exponent gebruikt voor zaken als deze een TPL file, die ik al ver aangepast heb. Ik zelf zat te denken aan een PHP code die alles menuitems die ubitems onderzich hebben een aparte style geeft. Ik heb dit echter nog niet voor elkaar gekregen....
Dit is de inhoud van de TPL file zoals die nu op dit moment is:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
| <table cellpadding="0" cellspacing="0" border="0" width="200" style="margin-left:0px;margin-top:0px;">
{foreach from=$sections item=section}
{assign var=commonParent value=0}
{foreach from=$current->parents item=parentId}
{if $parentId == $section->id || $parentId == $section->parent}
{assign var=commonParent value=1}
{/if}
{/foreach}
{if $section->numParents == 0 || $commonParent || $section->id == $current->id || $section->parent == $current->id}
<tr>
{if $section->numParents == 0}
<td style="border-top: 3px #733907 solid; padding-top:0px; padding-bottom:0px;">
{/if}
{if $section->numParents <> 0}
<td style="padding-bottom: {math equation="x*0" x=$section->depth}px">
{/if}
{if $section->active == 0 && $section->numParents == 1 }
{if $section->id == $current->id}
<div style="background-color: #FFFFFF; margin: 0px; padding: 0px; width: 162px; overflow:visible; position: relative;">
{/if}
{/if}
{if $section->active == 1 && $section->numParents == 0 }
{if $section->id == $current->id}
<div style="background-color: #FFFFFF; width: 162px; overflow:visible; position: relative;">
<a href="{$section->link}" class="navlink_current"{if $section->new_window} target="_blank"{/if}> {$section->name} </a>
</div>
{/if}
{if $section->id != $current->id}
<a href="{$section->link}" class="navlink"{if $section->new_window} target="_blank"{/if}> {$section->name} </a>
{/if}
{/if}
{if $section->numParents <> 0 }
<div style="padding-bottom: 0px; background-color:#FFFFFF; width: 162px; overflow:visible; position: relative;">
{if $section->id == $current->id}
<div style="background-color: #FFFFFF; margin: 0px; padding: 0px; width: 162px; overflow:visible; position: relative;">
<a href="{$section->link}" class="navlinksmallcurrent"{if $section->new_window} target="_blank"{/if}> {$section->name} </a>
</div>
{/if}
<div style="background-color: #FFFFFF; margin: 0px; padding: 0px; width: 162px; overflow:visible; position: relative;">
{if $section->id != $current->id}
<a href="{$section->link}" class="navlinksmallcurrent"{if $section->new_window} target="_blank"{/if}> {$section->name} </a>
{/if}
</div>
</div>
</div>
{/if}
</td></tr>
{/if}
{/foreach}
</table>
{permissions level=$smarty.const.UILEVEL_NORMAL}
{if $canManage == 1}<br/>
[<a class="navlink" href="{link action=manage}">BEHEER PAGES</a>]
{/if}
{/permissions} |
Those who surrender freedom for security will not have, nor do they deserve, either one.