This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 11 - Pages: 1 - Last Post: 21-Jun-2015 11:52 Last Post By: Photoplaca Threads: [ Previous | Next ]
Photoplaca

Posts: 11
Registered: 11-Jun-2015
creat a Submenu
Posted: 11-Jun-2015 18:05
 
  Click to reply to this thread Reply
hello,
how can I create a submenu on a blank page?
RobM

Posts: 4,372
Registered: 4-Aug-2006
Re: creat a Submenu
Posted: 11-Jun-2015 22:18   in response to: Photoplaca in response to: Photoplaca
 
  Click to reply to this thread Reply
when adding template pages they are automatically linked to the other pages. If you mean you want a page to have its own menu to other, non-album pages for example, then you will need to add that code to the page. If you want to modify the existing menus then that would require more advanced coding.

Can you clarify what you really want?
Photoplaca

Posts: 11
Registered: 11-Jun-2015
Re: creat a Submenu
Posted: 12-Jun-2015 10:11   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
ok, an example:
Main Folder = COMMUNITY
Inside folders = Chatroom - Forum - Guestbook

HTML Menu:

<a href="COMMUNITY/index.html"> COMMUNITY code
<a href="COMMUNITY/Chatroom\index.html"> chatroom <a href="COMMUNITY/Forum \index.html"> Forum code <a href = "COMMUNITY / Guestbook / index.html "> Guestbook </a>

-----------------------------------------
How can I display this html menu automatically,
for all inside folders (Chatroom - Forum - Guestbook) ?
RobM

Posts: 4,372
Registered: 4-Aug-2006
Re: creat a Submenu
Posted: 12-Jun-2015 21:28   in response to: Photoplaca in response to: Photoplaca
 
  Click to reply to this thread Reply
The attached shows the menu structure that is created by jAlbum using the Base skin.
At the root level is the community folder, which contains the three subfolders Chatroom, Forum and Guestbook. Each of the subfolders contains just one template page, for demo purposes.

The menu has a link to the community folder, with a dropdown menu that has links to the index page for each subfolder. All of this is done by the skin as is, with default settings, you just need to create the folder structure. Is that what you want?

jAlbum only produces static pages, so you will need a content management system for the chatroom etc.
Photoplaca

Posts: 11
Registered: 11-Jun-2015
Re: creat a Submenu
Posted: 15-Jun-2015 00:15   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
OK thank you,
I want to copy the menu in the text area to display it.

How is the embed-code for a menu ?

Edited by: Photoplaca on 16-Jun-2015 11:18
RobM

Posts: 4,372
Registered: 4-Aug-2006
Re: creat a Submenu
Posted: 16-Jun-2015 16:31   in response to: Photoplaca in response to: Photoplaca
 
  Click to reply to this thread Reply
Photoplaca wrote:
OK thank you,
I want to copy the menu in the text area to display it.

How is the embed-code for a menu ?

Edited by: Photoplaca on 16-Jun-2015 11:18

Sorry, I don't understand what you are asking. The code generated is HTML & CSS, maybe some JavaScript too. Are you wanting to add that menu to another, non-jAlbum generated HTML page?
Photoplaca

Posts: 11
Registered: 11-Jun-2015
Re: creat a Submenu
Posted: 17-Jun-2015 09:19   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Yes I want this HTML & CSS Menu show in folder description without thumbnales

so it looks like
<hr/>
COMMUNITY - Chatroom - Forum - Guestbook
<hr/>
RobM

Posts: 4,372
Registered: 4-Aug-2006
Re: creat a Submenu
Posted: 17-Jun-2015 16:09   in response to: Photoplaca in response to: Photoplaca
 
  Click to reply to this thread Reply
To have the menu appear without actually having the folders present within jAlbum requires a modification to the skin. One way of doing it is to edit the skin's 'page-header.inc' file.
You will need to duplicate the skin and edit the copy, note if you want to keep the skin update then you will need to repeat this with each new skin version.

Open jAlbum and select the 'Base' skin.
From the menu select 'Tools', then 'Skin Developer' and then 'Create new skin'.
Enter a name, like 'MyBase' and check that 'Base' is shown as the skin on which to base your new skin.
Click 'OK'.
In the next dialog box click 'Yes' to edit the skin.
Click on the 'page-header.inc' tab to select that file.
Scroll down to line 48, which reads '${topNavigation}'.
Append the following HTML code to that line
<ul><li><a href="Community/index.html">Community</a><ul><li><a href="Community/Chatroom/index.html">Chatroom</a></li><li><a href="Community/Forum/index.html">Forum</a></li><li><a href="Community/Guestbook/index.html">Guestbook</a></li></ul></li></ul>

Save the change and close the page edit window.
Make a test album and check the top menu shows the links, which won't work of course unless you have those folders and index pages in the output folder already.

Does that do what you want?
RobM

Posts: 4,372
Registered: 4-Aug-2006
Re: creat a Submenu
Posted: 18-Jun-2015 11:53   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Maybe I should have said so before but the menu links require the full absolute paths to the pages, not just the relative ones as I posted above. You can use relative paths if you want, you need to use jAlbum variables, in particular ${rootPath} instead of the domain path.
Photoplaca

Posts: 11
Registered: 11-Jun-2015
Re: creat a Submenu
Posted: 19-Jun-2015 08:48   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
many thanks,
can I do so to display the inside of the folders ?
<a href="$ {topnavigation} ">Navigation</a>
<a href="${rootPath} ">Submenu</a>
RobM

Posts: 4,372
Registered: 4-Aug-2006
Re: creat a Submenu
Posted: 19-Jun-2015 12:03   in response to: Photoplaca in response to: Photoplaca
Helpful
  Click to reply to this thread Reply
Photoplaca wrote:
can I do so to display the inside of the folders ?
<a href="$ {topNavigation} ">Navigation</a>
<a href="${rootPath} ">Submenu</a>
${topNavigation} is a variable that has the full navigation menu for the album.
${rootPath} is a variable that will show the path, for any given page within the album, back to the root level of the album. Something like '../../../', say, which means go back three folders.

You cannot use those variables on pages not generated by jAlbum. If you want more menu choices shown on the album pages then you just need to append them again, as in the post above. If you want links from other pages to the album then you will have to code those yourself.
Photoplaca

Posts: 11
Registered: 11-Jun-2015
Re: creat a Submenu
Posted: 21-Jun-2015 11:52   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
many thanks
ok they have fully helped
So I need to do so: '../../../'
3 levels up
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums