ZenphotoCMS Forum
menu_manager creates empty link for gallery index on live site - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: menu_manager creates empty link for gallery index on live site (/thread-7876.html)



menu_manager creates empty link for gallery index on live site - fretzl - 20-11-2010

Latest nightly, Zenpage theme:

The menu_manager creates an empty link for the [i]gallery index[/i] (and only for the gallery index)on a remote host.
On my local install it works just fine.
Any ideas ?
Thanks.




menu_manager creates empty link for gallery index on live site - fretzl - 20-11-2010

edit:
My local install is in a subfolder.
The remote install is in the root.




menu_manager creates empty link for gallery index on live site - sbillard - 20-11-2010

Try changing line 167 of menu_manager.php change the "WEBPATH" references to "FULLWEBPATH"




menu_manager creates empty link for gallery index on live site - sbillard - 20-11-2010

Try changing line 167 of menu_manager.php change the "WEBPATH" references to "FULLWEBPATH"




menu_manager creates empty link for gallery index on live site - fretzl - 20-11-2010

Thanks, that works :-)

But now I see that the [i]$css_class_topactive[/i] (in the printCustomMenu()) is not assigned to the active [i]gallery index[/i] anymore.

Any ideas ?




menu_manager creates empty link for gallery index on live site - sbillard - 21-11-2010

If it was before, it is probably because the link is no longer blank. Have to look and see what can be done.




menu_manager creates empty link for gallery index on live site - fretzl - 21-11-2010

Hi sbillard, I saw what you did in changeset[6192] but that does not solve it.
I still have to use the FULLWEBPATH to create a link to the [i]gallery index[/i].
And somehow that causes the [i]$css_class_topactive[/i] not to be assigned to the active [i]gallery index[/i].




menu_manager creates empty link for gallery index on live site - sbillard - 21-11-2010

FULLWEBPATH will cause that problem with the class. What is not happening with the link? The actual link should be to the full web path.




menu_manager creates empty link for gallery index on live site - fretzl - 21-11-2010

The [i]Gallery index[/i] link works fine when I use the FULLWEBPATH.
It's just that the class [i]$css_class_topactive[/i] is not assigned to it when it is actually active.
I'll find a workaround.
Thanks.




menu_manager creates empty link for gallery index on live site - sbillard - 21-11-2010

You answered the wrong question. What is wrong with the changeset [6192] implementation. As I said, using FULLWEBPATH will NOT work for the class stuff. WEBPATH is required for that. But that is only for the particular function and subsequent uses of its output. The place in printCustomMenu() where the actual URL is emitted does detect that it is empty and substitutes FULLWEBPATH in the href.

I have tested this on my test site and it is working there. Perhaps there is something specific about your menu set. Maybe we need to see it in its full.




menu_manager creates empty link for gallery index on live site - fretzl - 22-11-2010

Changeset[6192] works fine. I just did not understand FULLWEBPATH/class implication.

Question:
The fact that I need to use FULLWEBPATH with this remote host, has that something to do with their server configuration ?




menu_manager creates empty link for gallery index on live site - sbillard - 22-11-2010

Not a server issue, just a problem we have in general with root installs. If the actual URI is empty it is equivalent to pointing to the current page. Most of our testing is with root installs.