---
title: "TS check for subpages in menu"
url: "https://www.typo3.net/d/61341-ts-check-for-subpages-in-menu"
source: "typo3.net"
tags: ["TYPO3","Menüs","English","Frage"]
created: "2007-04-21"
last_reply: "2007-04-21"
replies: 3
solved: false
page: 1
pages: 1
lang: "en"
---

# TS check for subpages in menu

TYPO3 › Menüs · 3 Antworten · gestartet 2007-04-21

## Eröffnungsbeitrag

**htp** · 2007-04-21 · [Beitrag #1](https://www.typo3.net/d/61341-ts-check-for-subpages-in-menu/1)

Hi again to all!

I had a question about some extended options in TS, when I building a menu.

So, I had build 2 level menu list with TS. Is it possible TS to check if in page name ( for example: friends ) has subpages ( for example: new, good, best ). So the menu is like that: Primary (first level) Friends (second level) new, good, best.

Friends|
       -new
       -good
       -best

When I click on the friends link they will be show some text: This is page for my friends.

So, if Friends is empty ( no sub pages ), by onClick on the link Friends, right image from Friends I want to be Blue triangle.

If there are subpages (new, good, best ), by onClick on the link Friends, right image from it I want to be Red triangle.

Currently I have only this: When I onClick on Friends there is only red triangle, I can't implement TS to tell if there is subpages and change the image.

Is it possible to do this with TS? Or I'll need to implement other external scripts?

Thanks for your time, Georgi.

## Antworten

### [#2](https://www.typo3.net/d/61341-ts-check-for-subpages-in-menu/2) · just2b · 2007-04-21

Hello,

of course this is possible with TS. Like the items NO or ACT there are also the items IFSUB and ACTIFSUB which are used as all other items in your menu

georg

### [#3](https://www.typo3.net/d/61341-ts-check-for-subpages-in-menu/3) · htp · 2007-04-21

Wow, thanks for your help again!

I miss that in Typo3 book.

Cheers, georgi!

### [#4](https://www.typo3.net/d/61341-ts-check-for-subpages-in-menu/4) · just2b · 2007-04-21

You are welcome ;)

have a nice weekend
georg

---

Quelle: „TS check for subpages in menu“, typo3.net, https://www.typo3.net/d/61341-ts-check-for-subpages-in-menu
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
