-
AuthorPosts
-
PGLion Friend
PGLion
- Join date:
- March 2006
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
February 1, 2010 at 11:44 pm #148295I have some problems with JA NEWS2. New visitors to my website can only see one row with three columns, even if this section contains 9 categories It doesn’t matter if JA User Setting is published or not. The only way to show all categories is to tick them all manually in the JA NEWS 2 module on the frontpage.
New visitor don’t know they can change these settings so I want to expand all categories when they enter the website. How can I fix this?
Edit: After typing this message I found another topic here dealing this problem. Unfortunately no solution offered.
February 2, 2010 at 8:29 am #331289I must say im disappointed in Joomlart for not dealing with this issue. There has been a number of posts on this very problem yet no solution.
It would be unnecessary to make another post but a solution to this problem is in order.
kryptos Friendkryptos
- Join date:
- November 2009
- Posts:
- 105
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 9
- Thanked:
- 13 times in 9 posts
February 2, 2010 at 9:56 am #331305In Extensions forum, I found this topic. It’s also unanswered yet.
http://www.joomlart.com/forums/topic/janews2-add-more-category/
I’m also interested with this problem. This is a great module, but this useful option is missing…
PGLion FriendPGLion
- Join date:
- March 2006
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
February 2, 2010 at 4:02 pm #331324I decided to drop my categories layout fantasy and use sections instead now.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 8, 2010 at 2:27 am #331936Hello guys!
i’m sorry for my delay!
Please kindldy read thread and try to follow the solution to resolve this issue:
http://www.joomlart.com/forums/showthread.php?p=145285#post145285if you can not make done with the solution, please let me known, t’ll try to fix your issue
Thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 8, 2010 at 3:08 am #331939Hello guys!
Now, i have a second options to manage the number of categories display on the module:
1) please open the file: modulesmod_janews2mod_janews2.xml and try to add this tag into file:
<param name=”max_categories_display” type=”text” default=”3″ label=”MAX CATEGORIES DISPLAY” description=”MAX CATEGORIES DISPLAY DESC” />
2) please open the file: modulesmod_janews2helper.php
a) try to find the function loadCategories($sid) function at line 404 ( in my file ) and find codes of this function at line 422:
[PHP] $limit = ( int ) $this->get ( ‘cols’, 2 ); [/PHP]
replace:
[PHP] $limit = $this->get( ‘max_categories_display’ , 3 );[/PHP]
b) find the function getCatIDs($secid) { at line 171 and find codes of this function at line 179:
[PHP] $limit = ( int ) $this->get ( ‘cols’, 2 );[/PHP]
Replace:
[PHP] $limit = $this->get( ‘max_categories_display’ , 3 );[/PHP]When you customized your modules with the above way, please access the module’s confiugration and put the number of categories you expected in this “MAX CATEGORIES DISPLAY” paramter. so the module’ll display categories follow rule:
if number of categories is greater the number of columns, then the module auto create a new row to display the remainder of categories.salvomic Friendsalvomic
- Join date:
- June 2008
- Posts:
- 200
- Downloads:
- 16
- Uploads:
- 23
- Thanks:
- 24
- Thanked:
- 6 times in 1 posts
February 8, 2010 at 2:43 pm #332064<em>@tienhc 163984 wrote:</em><blockquote>Hello guys!
Now, i have options 2 to manage the number of categories display on the module:
….</blockquote>
It works for me, but, please: how to have again categories ordered by database order, as it was first?
thanks
salvo
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 8, 2010 at 4:58 pm #332085yes, i improved categories ordering via their order, but the module have not release because it need to test :), now here is the solution:
please open the file: modulesmod_janews2helper.php
a) try to find the function loadCategories($sid) function at line 404 ( in my file ) and find the following sql query:
[PHP]
$query = “SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(“:”, `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=” . ( int ) $sid . $where;
[/PHP]
Replace:
[PHP]
$query = “SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(“:”, `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=” . ( int ) $sid . $where .’ ORDER BY s.ordering’;
[/PHP]6 users say Thank You to Saguaros for this useful post
salvomic Friendsalvomic
- Join date:
- June 2008
- Posts:
- 200
- Downloads:
- 16
- Uploads:
- 23
- Thanks:
- 24
- Thanked:
- 6 times in 1 posts
February 8, 2010 at 5:23 pm #332088<em>@tienhc 164146 wrote:</em><blockquote>yes, i improved the categories ordering via the their order, but the module have not release because it need to test :), now here is the solution:
…</blockquote>many thanks!
salvokidi Friendkidi
- Join date:
- March 2009
- Posts:
- 134
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 28
- Thanked:
- 2 times in 1 posts
February 10, 2010 at 11:04 am #332285Thank you !
Alan Kyne Perry FriendAlan Kyne Perry
- Join date:
- September 2014
- Posts:
- 80
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 13
February 28, 2010 at 6:42 pm #334135it works great! thank you. good job!!!
i would like to ask if it is possible to adjust level of second row of categories
please look at http://www.industrialculture.org and there are 6 categories in Sounds section, depends of number of letters, images are lower or higher in second row. is it possible to keep them on the same level?davidrabinov Frienddavidrabinov
- Join date:
- January 2010
- Posts:
- 128
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 15
- Thanked:
- 1 times in 1 posts
March 3, 2010 at 7:03 am #334589This fixed a bunch of issues with this template at least at my end. Thank you very much, good job.
feanorv Friendfeanorv
- Join date:
- March 2010
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
March 25, 2010 at 11:00 pm #337801tienhc, If you can help. Is there any way that I choose to have all 9 of my categories enabled and just limit the amount of news I have ?
For example, I have 9 categories, but the module will only show the 3 latest articles, regardless of the category.
OR much more importantly :
An alternative, If you have time to code it…When someone only has one category, how can all 3 rows have articles from the same category ?
-
AuthorPosts
This topic contains 24 replies, has 15 voices, and was last updated by gianfranco 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum