-
AuthorPosts
-
October 30, 2007 at 2:54 am #123494
I have added menu Nr. 2 under main menu to be able to have more links on left side without having more than 4 links on top.
When I click on any link from this menu, header image stays the same. I need them to rotate.What is the solution?
October 30, 2007 at 3:25 am #231775The header images for the whole site does not always rotate but tend to get stuck.
I have read several people posting this issue, but no answer / solution.
Anyone?
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
October 30, 2007 at 5:05 am #231788The header images are rotated according to the main menu level currently.
What kind of the rotation do you want?
October 30, 2007 at 3:08 pm #231822Just any rotation… if user starts clicking on menu nr. 2 there is the same image that stays on in the header, regadless hwere user moves within the menu nr.2.
If user clicks on main menu, header images rotate.
Is there a way to add more links on the main menu, but only 4 of them be dispayed in top (since all the main menu links display on top as well and owerflow)?
Hope that makes sense….Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
October 30, 2007 at 4:20 pm #231825Ok, you could modify a function inside file ja_templatetools.php to get that effect. Search function getCurrentMenuIndex and replace with following function
function getCurrentMenuIndex(){
global $Itemid, $database, $mosConfig_shownoauth, $my;
//Get top menu id;
$id = $Itemid;
$menutype = 'mainmenu';
$ordering = '0';$sql = "select parent, menutype, ordering from #__menu where id = $id limit 1";
$database->setQuery($sql);
$row = null;
$database->loadObject($row);
if ($row) {
$menutype = $row->menutype;
if ($menutype != 'mainmenu') return 0;
$ordering = $row->ordering;
}else return 0;if ($mosConfig_shownoauth) {
$sql = "SELECT count(*) FROM #__menu AS m"
. "nWHERE menutype='". $menutype ."' AND published='1' and ordering <= $ordering";
} else {
$sql = "SELECT count(*) FROM #__menu AS m"
. "nWHERE menutype='". $menutype ."' AND published='1' AND access <= '$my->gid' and ordering <= $ordering";
}
$database->setQuery($sql);return $database->loadResult();
}
October 30, 2007 at 7:59 pm #231839Khanh Le, thank you for a quick answer.
I replaced the function with the code. Images are still not rotating in the menu nr.2. Am I missing something?
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
October 31, 2007 at 3:44 am #231857Do you have a live site url?
November 3, 2007 at 7:47 pm #232110Hallo professionals, do you solf this problem ?
I am also interested …November 6, 2007 at 9:36 pm #232355<em>@Khanh Le 30807 wrote:</em><blockquote>Do you have a live site url?</blockquote>
I sent you link in PM.
stefiart Friendstefiart
- Join date:
- June 2007
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
December 8, 2007 at 9:11 pm #234187Yes do we have a sollution here?
Thanks
December 9, 2007 at 3:49 pm #234254same problem here…hope someone solves this soon
coldclimber JA JobBoardcoldclimber
- Join date:
- December 2007
- Posts:
- 82
- Downloads:
- 59
- Uploads:
- 3
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
December 26, 2007 at 9:34 am #235220I also have a problem with the header images not rotating, at first they did through the pages but once i moved the menu about and reordered my pages to the way i want them everything just stopped working. I know with other templates not from JA you can just redorder your menu and everything would still work, this is very anoying as i need this to work. I have tried to duplicate the template and call it JAM2 but even assigning another template to a page does not work.
Anyone one know how to fix the header images ?????
-
AuthorPosts
This topic contains 12 replies, has 6 voices, and was last updated by coldclimber 16 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum