By Philippe on Thursday, 26 December 2019
Posted in Technical Issues
Likes 0
Views 535
Votes 0
Hello,

Could say me what is the code to display an alias of a group ?
Because I tried this code, but I obtain id:groupalias (for example : 8:mygroupname).

<?php echo $group->getAlias();?>
I would like to display only group alias (for example : mygroupname). Without the number and the :

Thank you
You can try this :


$cluster = ES::cluster($group->cluster_type, $group->id);
$clusterAlias = $cluster->alias;
echo $clusterAlias;
·
Friday, 27 December 2019 10:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Arlex
·
Friday, 27 December 2019 20:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Friday, 27 December 2019 22:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post