By Andy on Thursday, 06 February 2014
Replies 7
Likes 0
Views 1.1K
Votes 0
[SOLVED!] My mistake - The solution was simply a back-end config option - see my accepted answer post below.

When the ED Content Plugin is moved from beta to stable, could you consider this please:

CURRENTLY: The 'View Discussion' link that gets injected into EasyBlog entries takes the format http://www.site.com/component/easydiscuss/world-cancer-day?Itemid=2443

DESIRED: Can it respect menu structure and SEF URLs? So the component/easydiscuss bit could be replaced with the menu item ID / URL of the EasyDiscuss main page? This also ensures of course that the modules and things are as required when ED is loaded - and the current URL doesn't achieve that.

Thanks!
UPDATE: What I'm trying to do here is already an option in the back-config of EasyDiscuss.... Doh! Silly me!

So if anyone else is reading this thread for a solution, it's right there in SETTINGS > SEO and then I selected 'Let ED pick the best menu id option' and that solved everything perfectly for me
·
Friday, 07 February 2014 08:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this
·
Thursday, 06 February 2014 12:10
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm wondering if I can hack the URL for now to fix it for my site.... I found where it's created in default.php of the plugin.... and there's the code:

<?php echo $post->getPermalink();?>


I can't see where the getPermalnk() is created though... assuming that's only used for this purpose, do you know where I can go and look at and change how the getPermalink() gets created, or alternatively can I replace that code directly with something that'll generate the right URL - If so its easy to hard code http://www.mysite.com/myseflinktoeasydiscuss/ but I'd need help to understand how to add to the end the name-of-discussion?Itemid=x bit
·
Thursday, 06 February 2014 19:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

This code is calling the code from EasyDiscuss core files and I don't think you should modify the codes from getPermalink as this would affect your entire EasyDiscuss. You should just alter this particular code from the plugin.
·
Thursday, 06 February 2014 23:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Agreed - Can you point me to where the links are constructed in the 'EasyDiscuss Core Files' you mention - Hopefully I can work out how to add the name-of-discussion?Itemid=x bit after my hard coded site link to EasyDiscuss....

Thanks a million - and thanks for continuing to support the might miracle of ED amongst all your other miracles
·
Thursday, 06 February 2014 23:29
·
0 Likes
·
0 Votes
·
0 Comments
·
The file is in /administrator/components/com_easydiscuss/tables/post.php
·
Friday, 07 February 2014 00:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Andy
·
Friday, 07 February 2014 12:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post