Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Ektron Menu Item List

Posted on July 30, 2015October 26, 2015 By David Kittell

List out all items in an Ektron menu

SELECT mt.[mnu_id] AS 'Menu ID'
	,mnu_name AS 'Menu Name'
	,[item_title] AS 'Menu Item Title'
	,[item_link]
	,CASE [item_target]
		WHEN 1
			THEN 'Popup'
		WHEN 2
			THEN 'Self'
		WHEN 3
			THEN 'Parent'
		WHEN 4
			THEN 'Top'
		END AS 'Item Target'
	,
	--[item_target],
	[item_id] AS 'Content ID'
	,c.[content_title] AS 'Content Title'
	,
	--  ,[item_type],
	CASE item_type
		WHEN - 1
			THEN CAST(item_type AS VARCHAR(5)) + ' - AllTypes'
		WHEN 1
			THEN CAST(item_type AS VARCHAR(5)) + ' - Content'
		WHEN 2
			THEN CAST(item_type AS VARCHAR(5)) + ' - Forms'
		WHEN 3
			THEN CAST(item_type AS VARCHAR(5)) + ' - Archive Content'
		WHEN 4
			THEN CAST(item_type AS VARCHAR(5)) + ' - Archive Forms'
		WHEN 7
			THEN CAST(item_type AS VARCHAR(5)) + ' - PDF Assets'
		WHEN 8
			THEN CAST(item_type AS VARCHAR(5)) + ' - Assets'
		WHEN 9
			THEN CAST(item_type AS VARCHAR(5)) + ' - Archive Assets'
		WHEN 12
			THEN CAST(item_type AS VARCHAR(5)) + ' - Archive Media'
		WHEN 99
			THEN CAST(item_type AS VARCHAR(5)) + ' - Non Library Content'
		WHEN 101
			THEN CAST(item_type AS VARCHAR(5)) + ' - MS Office Assets'
		WHEN 102
			THEN CAST(item_type AS VARCHAR(5)) + ' - PDF Assets'
		WHEN 103
			THEN CAST(item_type AS VARCHAR(5)) + ' - PDF Assets'
		WHEN 106
			THEN CAST(item_type AS VARCHAR(5)) + ' - PNG Image Assets'
		WHEN 104
			THEN CAST(item_type AS VARCHAR(5)) + ' - Multimedia'
		WHEN 1102
			THEN CAST(item_type AS VARCHAR(5)) + ' - Archived PDF Assets'
		WHEN 1111
			THEN CAST(item_type AS VARCHAR(5)) + ' - Discussion Topic'
		WHEN 3333
			THEN CAST(item_type AS VARCHAR(5)) + ' - Catalog Entry'
		ELSE CAST(item_type AS VARCHAR(5))
		END AS 'Content Type'
	,cft.FolderPath AS 'Content Folder Path'
	,[order_loc]
	,[item_description]
	,
	--[link_type],
	CASE
		WHEN link_type = 0
			THEN 'QuickLink'
		WHEN link_type = 1
			THEN 'Menu Template'
		END
--	[id]
FROM [HPM-DEV].[dbo].[menu_to_item_tbl] mtit
INNER JOIN menu_tbl mt ON mt.mnu_id = mtit.mnu_id
LEFT OUTER JOIN [content] c ON c.content_id = mtit.item_id
LEFT OUTER JOIN [content_folder_tbl] cft ON c.folder_id = cft.folder_id
ORDER BY mnu_name
	,mt.mnu_id
	,order_loc
Originally Posted on July 30, 2015
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Ektron MSSQL MSSQL - Ektron MSSQL - Ektron 8.7 SQL

Post navigation

Previous post
Next post

Related Posts

Get Windows Shortcut (.lnk) Details

Posted on March 17, 2016

The below will help you get the full path of a Windows shortcut (.lnk) in your program. The below examples specifically create a command-line executable file but you could use the function in your program just as well. View the full code in GitHub at https://github.com/dkittell/lnk-parser using System; using System.Collections.Generic;…

Read More

NetSuite – SuiteScript 2.0 – Useful Functions

Posted on August 31, 2018

These first function snippets are from https://gist.github.com/W3BGUY /** * @NApiVersion 2.x * @NScriptType ScheduledScript * @NModuleScope SameAccount * * According to the documentation this is a read-only field. According to this working code and a verification from * NetSuite tech support, the documentation is wrong. Hope this helps someone out….

Read More

Validate Links

Posted on August 15, 2013October 26, 2015

function validatelink($link) { // Create a curl handle to a location $ch = curl_init($link); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_NOBODY, true); if (curl_exec($ch) === false) { echo ‘INVALID: ‘ . $link . " " . curl_error($ch); } else { echo ‘VALID: ‘ . $link; } // Close handle curl_close($ch); } Example

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes