Page 1 of 1

settings.menu.mainmenu.enabled=false (Possible?)

Posted: 16 Aug 2011, 20:30
by miro
I want to be able to disable the menu on the first page and re-enable it on other pages.
The idea is to have a simple custom swf page like 3 buttons in the center: ABOUT GALLERY CONTACT
Can i do this with parameters or is it only accessible trough the admin area?
Thanks

Re: settings.menu.mainmenu.enabled=false (Possible?)

Posted: 18 Aug 2011, 04:09
by Martin
miro wrote:I want to be able to disable the menu on the first page and re-enable it on other pages.
Can i do this with parameters or is it only accessible trough the admin area?
I wished it could be done... but it is not possible.

Re: settings.menu.mainmenu.enabled=false (Possible?)

Posted: 19 Aug 2011, 01:32
by mjau-mjau
miro wrote:I want to be able to disable the menu on the first page and re-enable it on other pages.
The idea is to have a simple custom swf page like 3 buttons in the center: ABOUT GALLERY CONTACT
You can disable the menu, but how would it know to re-appear after a folder loads? The menu is not attached to folders, and is a global display item unrelated to folder. Unfortunately ...

Why not have the menu available in addition to your custom SWF page? It provides consistency from start, and if its collapsed, it doesn't take a lot of space or attention ...

Re: settings.menu.mainmenu.enabled=false (Possible?)

Posted: 29 Sep 2011, 14:15
by Artur
miro wrote: The idea is to have a simple custom swf page like 3 buttons in the center: ABOUT GALLERY CONTACT
Then you can code menu-visibility in your custom swf page. For example:
Code
import com.asual.swfaddress.SWFAddress;

myInterval = setInterval(getMenuXPosition,1000);   // put some delay, just because menu apear little bit after rest of the gallery elements

function getMenuXPosition(){
	clearInterval(myInterval );
	maskX=_root.mainmenumask._x;
	backX=_root.mainmenuback._x;
	menuX=_root.mainmenu._x;
	textX=_root.menubuttontext._x;
	switchMenu();
}

function switchMenu(){
	if(SWFAddress.getValue().indexOf("start") != -1){
		if(_root.mainmenumask._x != -300){
			_root.mainmenumask._x = -300;
			_root.mainmenuback._x = -300;
			_root.mainmenu._x = -300;
			_root.menubuttontext._x = -300;
		}
	}else{
		if(_root.mainmenumask._x != maskX){
			_root.mainmenumask._x = maskX;
			_root.mainmenuback._x = backX;
			_root.mainmenu._x = menuX;
			_root.menubuttontext._x = textX;
		}
	}
}

SWFAddress.onChenge = function(){
	switchMenu();
}
This code simply switch menu-visibility, depends on which folder i curently viewed (If your startpage is named "start")

Re: settings.menu.mainmenu.enabled=false (Possible?)

Posted: 09 May 2012, 05:38
by fsfs
Sounds good, any possibilities in the future?

Would be great to just have a plain startpage (photoblind) and when clicking on the image it loads the startpage2 with the galleryfunction.

Could be a great thing actually. People who has private gallery can show the startpage and the cool effect. When clicking on the photoblind it asks for pwd to continue.