Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
beardcoder
/
menu.ts
Forked from
pgampe/menu.ts
Created
Mar 31, 2017
Star
0
Fork
0
Star
Code
Revisions
2
Embed
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Download ZIP
Fully cached menu with TypoScript
Raw
menu.ts
page
.10
>
page
.10
=
COA
page
.10
{
cache
{
key
=
main
-
menu
}
10
=
TEXT
10
{
data
=
date
:
U
strftime
=
%
H
:%
M
:%
S
noTrimWrap
=
|
Time
: | |
}
20
=
HMENU
20
{
special
=
directory
special
.
value
=
2
wrap
=
<
div
class
"
menu
"
>
|
<
/
div
>
1
=
TMENU
1.
expAll
=
1
1.
wrap
=
<
ul
>
|
<
/
ul
>
1
{
NO
=
1
NO
.
wrapItemAndSub
=
<
li
>
|
<
/
li
>
}
2
<
.1
3
<
.1
4
<
.1
}
}
#
replaces
the
A
tag
of
the
active
menu
item
page
.
stdWrap
.
replacement
.10
{
search
.
cObject
=
HMENU
search
.
cObject
{
special
=
list
special
.
value
.
field
=
uid
#
take
care
to
copy
any
additional
params
to
the
A
tag
1
=
TMENU
1
{
NO
=
1
}
}
replace
.
cObject
=
HMENU
replace
.
cObject
{
special
=
list
special
.
value
.
field
=
uid
#
take
care
to
copy
any
additional
params
to
the
A
tag
1
=
TMENU
1
{
NO
=
1
NO
.
ATagParams
=
class
=
"active"
}
}
}
/*
debug here
page.20 >
page.20 < page.stdWrap.replacement.10.search.cObject
page.30 >
page.30 < page.stdWrap.replacement.10.replace.cObject
*/
Sign up for free
to join this conversation on GitHub
. Already have an account?
Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.