Hello there.
Thanks everyone for help.
I was trying to do it by myself and finally I found solution, in 2 clock in the morning

I use two UDT codes (SQL query in DB), one for names and one for aliases.
These results I give into "items" and "values" for block_type="dropdown". So user can select right page with right URL in backend.
It is for boxes (DIVs) url and these boxes have Title + some text and small image in background. So it looks like an clickable tile. And these tiles you can completely managed in CMS template.
I dont know how much time tooks querry and code rendering in backend and also in frontend but for me it is not slow. I can say that I expect maximum 50 users in one moment and in these days of internet speed conection I dont think it will be too slow for anyone. But Im only man....
Here is UDT code for names
Code: Select all
//UDT tag name is {all_pages_names}
$db = cmsms()->GetDb();
$query = "SELECT (content_name) FROM " . cms_db_prefix() . "content WHERE type='content' ORDER BY content_id";
$result = $db->Execute($query);
$row = $result->GetRows();
if ($result) {
foreach($row as $key => $value)
{
echo $value['content_name'] . " | ";
}
} else {
echo 'query failed';
}
Here is UDT code for aliases
Code: Select all
//UDT tag name is {all_pages_names}
$db = cmsms()->GetDb();
$query = "SELECT (content_alias) FROM " . cms_db_prefix() . "content WHERE type='content' ORDER BY content_id";
$result = $db->Execute($query);
$row = $result->GetRows();
if ($result) {
foreach($row as $key => $value)
{
echo $value['content_alias'] . " | ";
}
} else {
echo 'query failed';
}
Maybe it help someone for another codeing

Im not sure if these codes are "right way" and not so dirty, maybe some of you know better and clearly code, but it work on 100%
