Page 1 of 1

Sub Folders

PostPosted: Tue Jan 25, 2011 9:37 pm
by germanic42
I have a main folder and several subfolders on my web site. My problem is I do not want to save the images into every subfolder to make the navmenus for each subfolder. The menus are all the same. I'd like to save the images into one folder and use that for all the subfolders. Can this be done?

Re: Sub Folders

PostPosted: Wed Jan 26, 2011 12:06 am
by Aivars
You can, actually. Use button "Insert Into Web Page", select "Just Generate HTML code and necessary files", select "I will put files in a *subdirectory*", and choose subdirectory name that corresponds to absolute URI, like "/images" (starting with slash).
Use the generated HTML and make sure to copy the files to that folder on your website :)

Re: Sub Folders

PostPosted: Sat Jan 29, 2011 4:56 am
by germanic42
I tried this method and can't get it to work. Let me try to explain it better.

I have a website with a main directory. In that directory is a page called mainindex. Also in the main directory I have two subdirectories, one called foldera and the other called folderb. In each is a web page, folderaindex and folderbindex.

I would like to use the same navigation image files for all three.

Re: Sub Folders

PostPosted: Sat Jan 29, 2011 1:59 pm
by Aivars
I'll try to explain in more details.

When you create your menu, choose export to HTML and make sure to prefix subdirectory name with /, like this:
Image

Then you need to upload the created subfolder to your website in web root, like this:
Image

Notice that my pictures ended up in http://kaitnieks.com/menuimages/ (check http://kaitnieks.com/menuimages/mb_button.gif)

Here are both test pages (created by copy/paste HTML generated with Easy Menu & Button Maker export to HTML)
http://kaitnieks.com/mainindex/menuaindex/menutest.php
http://kaitnieks.com/mainindex/menubindex/menutest.php

The main point is that if you prefix folder name with /, browser won't look for subfolder (i.e. http://example.org/mainindex/menuaindex/menuimages) but for folder relative to site root (i.e. http://example.org/menuimages)

I hope that makes sense. Feel free to ask for more help if it doesn't.

Re: Sub Folders

PostPosted: Sat Jan 29, 2011 9:50 pm
by germanic42
I understand the way the program works now and I have it working.

Thanks,

Re: Sub Folders

PostPosted: Wed May 18, 2011 2:52 pm
by reneuend
But you didn't explain "how you fixed it" which makes this whole thread useless for others with the same issue!!!!! :shock:

Re: Sub Folders

PostPosted: Wed May 18, 2011 9:13 pm
by germanic42
reneuend wrote:But you didn't explain "how you fixed it" which makes this whole thread useless for others with the same issue!!!!! :shock:


Simple, I followed the directions given. I thought that was implied.

Re: Sub Folders

PostPosted: Wed May 18, 2011 10:23 pm
by Aivars
reneuend: Do you see the images I posted in this thread? If not, find out what's blocking them and unblock.

Re: Sub Folders

PostPosted: Fri May 27, 2011 12:37 am
by reneuend
I see the images. when I tried entering a forward slash in the subdirectory name field, I get an error message that the character is not allowed. I'm going to redo my work and try again.

Re: Sub Folders

PostPosted: Fri May 27, 2011 8:14 am
by Aivars
reneuend wrote:I see the images. when I tried entering a forward slash in the subdirectory name field, I get an error message that the character is not allowed. I'm going to redo my work and try again.


Ok, let me know in case there are problems. Maybe you need to update your EBMM version, it's possible that older versions did not allow slash character. If that doesn't help, let me know which wizard exactly you're using (insert into web page or other) so I can test to see if we have missed anything.

Re: Sub Folders

PostPosted: Thu Jul 28, 2011 8:06 pm
by Karlis
There is now a knowledge base article about this:
http://kb.blumentals.net/kb/index.php?V ... ntryID=134

Re: Sub Folders

PostPosted: Wed Jul 09, 2014 7:38 pm
by txhillcountry
Aivars wrote:I'll try to explain in more details.

When you create your menu, choose export to HTML and make sure to prefix subdirectory name with /, like this:
Image

Then you need to upload the created subfolder to your website in web root, like this:
Image

Notice that my pictures ended up in http://kaitnieks.com/menuimages/ (check http://kaitnieks.com/menuimages/mb_button.gif)

Here are both test pages (created by copy/paste HTML generated with Easy Menu & Button Maker export to HTML)
http://kaitnieks.com/mainindex/menuaindex/menutest.php
http://kaitnieks.com/mainindex/menubindex/menutest.php

The main point is that if you prefix folder name with /, browser won't look for subfolder (i.e. http://example.org/mainindex/menuaindex/menuimages) but for folder relative to site root (i.e. http://example.org/menuimages)

I hope that makes sense. Feel free to ask for more help if it doesn't.


I Don't understand this answer. The two samples given above each have the menu details (links, etc) embedded in them. I want a complete menu that displays on every page of my site that only has to be changed one place. Currently I use PHP include that works, but the editor view is a mess (Expression Web 4). It does work when posted. I thought this presented technique was designed to do what I want, but apparently it can not. Can you help, or do I stay with PHP include?

Re: Sub Folders

PostPosted: Wed Jul 09, 2014 9:52 pm
by Aivars
Stay with PHP include. Include combined with keeping all image files in a single location is as universal as it gets.