By Kevin on Saturday, 16 March 2013
Posted in General Issues
Replies 4
Likes 0
Views 1K
Votes 0
I am using ED for many types of discussions on my site. I use ED categories and ACL to both organize discussions and to restrict access to these discussions based on 1) the subscription level of the user and 2) the topic area for the discussions (support discussions vs community discussions). Users gain access to ED through menu items and I intend to appropriately narrow the breadth of discussions at that point to achieve a simple and clean UI experience just like I get each time I access the support forum here (BTW, is your navigation module and template one that I can access/purchase?).

I would like to use the available Navigation Module but can't now because it lists ALL of my categories. Can you offer a hack such that the Navigation Module could be "modal" based on the current category?

For example, mod_easydiscuss_navigation.php detects the current category a user is browsing. Could the Navigation Module then display only the sub-categories of that category? In this way the menu item linked to an EB category would result in the display of the Navigation Module showing ONLY those sub-categories.

I suppose my next wish-list would be for the "Ask a Question" button be similarly modal such that it ONLY lists those categories that are displayed in the Navigation Module. But I'm guessing that would require more than a quick hack ...
Adelene, VERY useful topic! THANKS A LOT!

So, make it easy (after foreach):
if ($category->parent_id != $active && $category->parent_id != 0 ) continue;


and (micro-)question: how get current category info (in this file)? (depth, id, title .....)
I try this code for "Title" (working correct):
		$category = DiscussHelper::getTable( 'Category' );
$category->load( $active );
echo $category->title;

But "$category->depth;" can't get....
how?!
Thanks!
·
Sunday, 27 April 2014 08:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Evgeniy,

May I know what are you trying to accomplish here? As we don't have column 'depth' in Category table. Please advise.
·
Monday, 28 April 2014 10:39
·
0 Likes
·
0 Votes
·
0 Comments
·
NIK, i'm trying to filter the output of categories max depth level 2 start from current.
my post
·
Monday, 28 April 2014 16:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Evgeniy,

Sorry for the late reply. We are sorry but it is not possible since there is no depth column in Category table.
·
Tuesday, 29 April 2014 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post