Hi, I have some code from another post on this forum in order to display child elements in a Dynamic Select field:
SELECT CONCAT( REPEAT('-', (category.level)-1), category.title) AS text, category.id AS value
FROM #__categories AS category
LEFT JOIN #__categories AS parent
ON category.lft BETWEEN parent.lft AND parent.rgt
WHERE parent.id = 115 ORDER BY category.lft
This almost gives me what I'm looking for so the select field displays like this (note the dash on sub options):
Option 1
Option 2
-Sub Option 1
-Sub Option 2
Option 3
Option 4
Unfortunately it displays the Parent category at the top which I don't want. I can't quite get my head round the SQL code so could anyone give me some help as to how I show all the children, in hierarchical order but not display the top level parent, please?