confused about Menu_manager..

Hi all,
the menu-manager is confusing me. I have installed 1.4.9 with Libratus theme. Now I have 3 albums for my images published, and a "title-image" album for the startpage and one "internal album" for my article-images.
Now I want to hide the "title-album" and my "internal album" in the quickmenu, but it ist confusing me.
If I set the "title album" and the "internal album" in the album-page to "not-published" they are not vivisble in the menu.
But the images are hidden to so there are no images in my artickles and on the startpage.
If I set the menu-entries in the menu manager to "hide" they are still visible in the quickmenu on th page.
What do I have to do, I need the images of these Albums for my news-pages and article pages, but I don´t want to see them in the menustructures. Anyone can help?

THX
Torsten
test.bilderbar.de

Comments

  • fretzl Administrator, Developer
    From the Libratus theme options:
    Be careful with this option to ensure there are images that meet the statistic and they are viewable (rights), otherwise no images will show.

    You should be able to use images from unpublished albums in news and pages when you insert them using the tinyZenpage button in the editor.

    Indeed, when I manually add an unpublished album to a custom menu (menuManager), it still shows up. Not sure if this is intended but @acrylian will surely know.

    However, if I unpublish a menu-item (in menuManager) in does not show anymore.(makes sense ;-))
    Sure you were not logged in ?
  • hi fretzl,

    this what i tried:
    Option 1:
    titleImageAlbum (not published) with images inside (published) show no images on the startpage AND is not visible in menu when I am not logges in.

    Option 2:
    titleImageAlbum (published) with images visible (published) show images on the titleImage AND is visible in the menu when not logges in.

    There should be a option to hide the albums (with the images for articles, news and the startpage-title) in the menu structure.
  • acrylian Administrator, Developer
    Not sure if this is intended but @acrylian will surely know.

    This is intended since the menu is created manually. If you add it you probably want to add it ;)

    @leiferikson
    If I am not mistaken you can "unpublish" a menu entry itself.

    Generally items within unpublished items inherit the parent status even if published themselves. Generally all items follow these rules unless you do something manually to access thme (embedding via tinyZenpage, object model programming):
    http://www.zenphoto.org/news/an-overview-of-zenphoto-users#rules-of-protection-andvisibility-for-zenphoto-obj
  • Hiho acrylian,

    "Not published/not password protected: People have to "know about" these items to view them. (That is they need to know the URL, they will not show in menus if the visitor does not have the appropriate credentials.)"

    This should be the right option for title images, if I understand this right, but it is not working. The title images are not shown... It doesn´t bother me if somebody can see the title images by guessing the url, but it would be nice if the album with these title-image will not to be echoed in the menu structure.
    hm, difficult

    Is this so complex, I am not very in these codes... still lost.
  • acrylian Administrator, Developer
    I am not familiar with the Libratus theme and what it exactly does for the title image.

    I assume you refer to the full screen slideshow on the index page? It would be correct if it does not display published images from an unpublished album. That is the expected inheritance I spoke of. That is what all internally should do. It can be overriden by code of course but as said I have no idea what the theme exactly does and uses here.

    The menu manager is not the same as the standard menu functions like the album menu or the category menu etc.. It is simply the difference between manual and automatic setup of a menu.

    Also keep in mind that being loggedin generally always shows you even unpublished items. Always try another browser to be sure what a normal visitor sees. Or use the "show_not_logged-in" plugin to simulate the behaviour.
  • "the full screen slideshow on the index page? " Yep, thats the album I am talking about. I think I will have to get familar with the menumanager and make my own menustructure there. Libratus seems to be a little special there. I will post my efforts,

    Thank you so far,

    bilderbar.de
  • fretzl Administrator, Developer
    For the slideshow on index.php try this:

    On line 7 replace
    `
    $images = getImageStatistic(5,getOption('libratus_ss_type'),getOption('libratus_ss_album'),true);
    `
    with

    `
    $albumobj = newAlbum('title-album');
    $images = $albumobj->getImages(0);
    `
    and after line 8 add:

    `$image = newImage($albumobj, $image);`

    So this part of the code now is:

    `
    .....

      <?php
      $albumobj = newAlbum('title-album');
      $images = $albumobj->getImages(0);
      foreach ($images as $image) {
      $image = newImage($albumobj, $image);
      echo '
    • ';
      $html = 'imagegetCustomImage(1200,null,null,null,null,null,null,true))) . '" alt="' . html_encode($image->getTitle()) . '" />';
      echo zp_apply_filter('custom_image_html', $html, false);
      echo '
    • ';
      } ?>
    .....
    `
    This assumes you have an album called `title-album` with images in it.
    Note that you cannot use the theme option Home Slideshow Type anymore.
    If you still want to be able to use any album (and not Entire Gallery) from the album selector dropdown, use something like this:

    `
    .....

      <?php
      if ( getOption('libratus_ss_album') !== 'Entire Gallery' ) {
      $albumobj = newAlbum(getOption('libratus_ss_album'));
      $images = $albumobj->getImages(0);
      }
      foreach ($images as $image) {
      $image = newImage($albumobj, $image);
      echo '
    • ';
      $html = 'imagegetCustomImage(1200,null,null,null,null,null,null,true))) . '" alt="' . html_encode($image->getTitle()) . '" />';
      echo zp_apply_filter('custom_image_html', $html, false);
      echo '
    • ';
      } ?>
    .....
    `
  • fretzl Administrator, Developer
    ...and if you want the slideshow to be random, change
    `
    $images = $albumobj->getImages(0);
    `
    to

    `
    $images = $albumobj->getImages(0, NULL, 'random');
    `
  • thank you for your answer, but it seems to me now that I have more troubles.
    Furthermore every image I place inside my title-album ist NOT displayed in on the startpage index.php... you see&edit it in the backend but it will not shown on the startpage, there is only a scaled "image not published" icon. I tried to load them up via ftp-client (cyberduck) and elFinder - same problem. What makes me sick, I got antother identical zp-installation, same server, same theme - it works.
    bilderbar.de fails, torstenbahr.com is running proper.to hell...
  • acrylian Administrator, Developer
    Do you really have the same image setting? Are the images published?
  • well, when I look in the album "titelbilder" very image is visible. With my ftp-client all images have the same rights.
    But not all images are visible when looking to index.php .hm.
  • fretzl Administrator, Developer
    bilderbahr.de seems to work fine. It only looks like something is wrong with surfbrett_det.jpg
  • acrylian Administrator, Developer
    The image error is probably some other issue and not file system rights. There should be an error somewhere in the logs (zp or server). Could be memory, an somehow corrupt image or just corrupt meta data that breaks processing.
  • thank you for your answer acrylian. Now I open an image and save it with psd again, that helped on one. But I had to save a copy of the image without the colorprofile "sRGBIC..." now it seems to work. But it is not clear why...all the other image worked fine. Thanks mate!
  • So and now back to my problem, menumanager ;-)
  • fretzl Administrator, Developer
    The question now is: Why would you add an album (titelbilder) to a custom menu when you do not want it to be visible in the menu ? ;-)
Sign In or Register to comment.