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
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 ?
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.
@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
"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.
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.
Thank you so far,
bilderbar.de
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 = 'getCustomImage(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 = 'getCustomImage(1200,null,null,null,null,null,null,true))) . '" alt="' . html_encode($image->getTitle()) . '" />';
echo zp_apply_filter('custom_image_html', $html, false);
echo '
} ?>
`
`
$images = $albumobj->getImages(0);
`
to
`
$images = $albumobj->getImages(0, NULL, 'random');
`
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...
But not all images are visible when looking to index.php .hm.