Problem with 0.9 version and subcategories on main page
-
This is cool as heck, could you share the code used to achieve this? I'm interested in having this on my forum as well
-
@julian said:
Let us know what the new code looks like
In fact, it's still not working ...
I've moved the code to "item", but there even if it's displayed, there is still the same error in the console, and it breaks other pages
When it works, I can do that ^^
In a former version (0.7.0 I think), I've made a change so that the subcategories were showing as unread or not. Not working since 0.8.2, but that something I will try to put back online again
(my test website: http://151.80.135.39/)
-
@ffmad I'd be intrested in know how you have done that as well, as the only way I found to do it in 0.7.1 was to hack the categories.js file around, now that has changed in 0.9.0
-
@uncle_muddy said:
@ffmad I'd be intrested in know how you have done that as well, as the only way I found to do it in 0.7.1 was to hack the categories.js file around, now that has changed in 0.9.0
I've done the same in 0.7.1
Finally, I've used javascript to do what I wanted
https://cryptofr.com -
@ffmad said:
I add the following code to item.tpl of persona
<!-- IF ../children.length -->
<!-- BEGIN ../children -->
<!-- END ../children -->
<!-- ENDIF ../children.length -->but it produces this error error: RangeError: Maximum call stack size exceeded
please help me check -
I've just downgrade template.js in nodebb to 0.2.8 then it works
-
@julian said:
won't do anything if the array is empty
I guess the problem is that latest release of template.js does not allow another the loop inside a template, then I have to declare that loop in another template and include into my item.tpl