expandingTwoLevelMenus.js / Sub sub menu / 2.x

artteca / 2012-06-20 20:55:05   

Hi,

First of all, Thanks to Vaska and Eatock for their great and hard work.

I had the expandingTwoLevelMenus.js in the old version and I was wondering if there is a way to have it again in the new one.
This was the thread
indexhibit.org/forum/thread/10012/

Vaska A / 2012-06-20 23:56:32   

I hope to release submenus within a couple weeks. We already have them working but I need to spend a day or two resolving some bugs. Expanding menus already work with it, too.

artteca / 2012-06-21 14:58:10   

Awesome! I will wait for that release.
Meanwhile how can I try it? Even tho It might not work full I already have the expanding menus active and would love to try it.

Thank u so much!

Vaska A / 2012-06-21 15:12:20   

Ok, but I don't want people to start sending me emails telling me they turned this on and it doesn't work - there is a reason why I took this out at the last moment before release. It needs more work...

You can uncomment the code and it will be active. It begins around line 1994:

  1. // this is where we display subdirectories if they exist
  2. // enable later
  3. /* <= remove this line
  4. if ($rs['sec_proj'] == 0)
  5. {
  6. ...
  7. }
  8. */ <= and this one

And then you will have the tools when you are editing a section to create subsections. You order them on the same page, too.

artteca / 2012-06-21 15:23:21   

I wont complain :P
I'll try it but will wait for the release anyway.

artteca / 2012-06-21 18:01:27   

This is the sample so far,

lauraserrano.es/index.php/projects-1/INTERIOR%2001/01/

under projects 1
Its almost there!!

cruro / 2012-06-21 18:23:08   

Would be nice, if you could close sections or subsections by clicking the specific title.

artteca / 2012-06-21 19:03:49   

Eventually I was trying to get that.
To click in the menu and unroll, click again and roll back.

hmadrona / 2012-07-02 17:37:16   

@Vaska,

Congratulations for Indexhibit 2.0. It is quite a great enhancement over 0.7X.

I've been looking into the issue of the sub sub menus and there is a bug that doesn't allow Indexhibit to display pages saved with uppercase letters/whitespaces in their folder names.

This is one of the problems artteca had with her site with the aforementioned page:
lauraserrano.es/index.php/projects-1/INTERIOR%2001/01/

I'll try to elaborate: When retrieving the page from the DB by url in index.php, the uri contains lowercase letters only and whitespaces, but the DB stores the original name with uppercase letters and all and escaped HTML characters, so not match happens and Indexhibit redirects you to the home page of the site.

Hope this give you some hints to solve the issue. So far folder names should contain "safe" characters: lowercase letters and dashes, as far as I've seen in my tests.

There are other small issues related to the menu generation and the JS file. Let me know if you need any input on this issues.

Cheers!

Vaska A / 2012-07-02 17:57:19   

It's on the list of things to look at. ;)

Jesco / 2012-07-04 15:22:34   

I think the expanding-menus-problem is a font and font-weight problem...
I changed some settings and it works now with this code. you can open and close the menus by clicking.

Edited by Vaska: instead of posting the whole CSS please explain to us what was changed - I certainly can't even tell what was going on there.

Vaska A / 2012-07-04 15:24:59   

Can you only post the pertinent parts...

Jesco / 2012-07-04 21:20:24   

I'm not really shure, why it works that way, I just changed it and now I can click the menue open and you can close them.

body {
    font-size: 10px;
    font-family: Verdana, sans-serif; (HERE I CHANGED THE FONT)
    background: #E8E8E8;
    
    line-height: 1.3em;
    /* font-weight: 300; */
}

/* active exhibit title parts */
li.active a:link, li a.active, li.active a:hover, li a.active, li.active a:active, li a.active,
li.active a:visited, li a.active, li span.active, #index ul.section li.active a:link,
#index ul.section li.active a:hover, #index ul.section li.active a:active, #index ul.section li.active a:visited
{ font-weight: normal; } (HERE I CHANGED THE FONT-WEIGHT FROM BOLD TO NORMAL )

Vaska A / 2012-07-04 21:26:16   

Thank you! Now we have something to think about...

;)

paolodll / 2012-07-10 22:26:54   

Dear All,

I would like to get a two level menu, shaped this way:

PROJECTS (main session)

-2012
-2011
-2010

than have a visual index for each project year, with preview images and links to my exhibits.
Is this something I can get with Indexhibit 2.0?

hope I explained well what I'd like to do...
thank you in advance

P

paolodll / 2012-07-10 22:32:49   

Oh, it is exactly what artteca did here, under interiors session
lauraserrano.es

wich is the easiest way to get it?

paolodll / 2012-07-11 13:07:27   

...and just to try...where can I find the code to uncomment to activate the sub sections?

artteca / 2012-07-12 14:26:45   

I think paolodll will be able to do it when the submenus are released and with the expanding menus plugin disabled.

paolodll / 2012-07-12 17:43:01   

thanks for your kind reply artteca.
But just to try in the meantime, could you please tell me where can i find the code to uncomment, as Vaska previously suggested to you? I'm not an expert at all, but I'd love to try anyway.
thanks a lot

bipster / 2012-07-14 08:35:21   

paolodll, you can find the code in the file /ndxzstudio/module/system/index.php

Sergio_Olivotti / 2013-07-15 10:04:46   

HI,
I tried follow what Vaska suggested:

1) uploaded and activated INDEXPAND;

2) changed:

// this is where we display subdirectories if they exist
// enable later
/*

Sergio_Olivotti / 2013-07-15 10:06:32   

...sorry, i finish.
I tryed what I said before but still clicking on the menu it doesn't happen anything (sorry for my english and my explanation.. :(
italianposterbiennal.it

arsondpi / 2013-07-15 11:11:51   

Works fine for your Exhibitions section (with the 2010 subsection and the 1 exhibit)
At least from my end.

Sergio_Olivotti / 2013-07-16 16:17:49   

Thank you Arsondpi,
yes it runs, but only with this "cronological" option (and why 2010?).
When in "admin" I change the section organization into "default" I can't see anything (I just did it).
Other problem. When I try to upload some images to the subsection it appear this message: "You can not upload to this exhibit. Change the media source in options."

Sergio_Olivotti / 2013-07-16 16:25:06   

(I just solved the second problem putting "tag.php" as template option...but I really don't know what I did :) ...still working on the first problem...

This thread has been closed, thank you.