...but not having name it’s impossible to open it for editing/deleting.
-
MODX Staff
- 12,272 Posts
What if we simply appended "(ID XX)" after every TV name inside the link to prevent this from being an issue? Likely would need this for snippets, chunks, plugins and modules, too.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
What about "Untitled <whatever>" being used if the POST element is empty? Documents already do this;
if (trim($pagetitle == "")) {
if ($type == "reference") {
$pagetitle = $_lang['untitled_weblink'];
} else {
$pagetitle = $_lang['untitled_document'];
}
}
-
MODX Staff
- 10,725 Posts
Ryan’s idea was quick, works, and provides quick reference to the actual id’s of each component type (something I always had to look in the status bar for in the URLs). It also stylistically matches the tree.
I am always searching for template IDs, that will be great. How would you use snippet or chunk IDs? Can you reference a snippet by ID with the runSnippet function?