By Sunny on Thursday, 25 September 2014
Posted in General Issues
Replies 3
Likes 0
Views 585
Votes 0
I want to echo alias of easydiscuss threads, basically i want to put links of ED discussions dynamically at different places in my site.

Can you please do let me know the syntax for echoing Alias of ED pages.

regards
Hello Sunny,

You need to load up the discuss object first before you are able to retrieve the alias. In this case, you should do something like this if you have the id of the discussion


<?php
$post = DiscussHelper::getTable('Post');
$post->load($id);

echo $post->alias;
?>


Also, please understand that support will not be provided for customizations.
·
Thursday, 25 September 2014 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark, After reading your post i realized a work around.
As i'm having custom fields in jreviews, i can use one of the custom field of jreviews as alias for ED discussions and then pass the link to ED in jreviews pages.
thanks for making my mind work:D
·
Thursday, 25 September 2014 18:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Sunny, glad that your issues are resolved now
·
Thursday, 25 September 2014 23:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post