Support » Plugins » [Plugin: NextGEN Gallery] Show gallery instead of directory index

  • Hi,

    I just wondered how I can force WP to show the gallery when addressing it directly like http://mydomain/wp-content/gallery/mygallery

    Currently the directory index is shown and the first option on the gallery options page (sorry, using the German version, don’t know what it is named in English) is marked. However, any setting still shows the directory index, and does not display the gallery.

    Is it possible to get it done, that with a permalink the gallery is shown?

    Regards, Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tofo

    (@tofo)

    Hi,

    sorry to bother, but anyone have an idea?

    Regards, Thomas

    Hi Thomas,

    It is possible. You also have permalinks for this plugin. You just need to update your structure of the blog permalinks after you enable the ngg’s one. Displaying the gallery in the form – ‘http://mydomain/wp-content/gallery/mygallery’ wouldn’t be a solution after my opinion. Probably you will want something like – ‘http://mydomain/gallery/mygallery’ which is indeed very possible. In order to achieve this result, you need to create a page for the gallery itself. Create a page with the name gallery ang place the code

    [album id=X template=compact]

    Replace the X with the ID of your gallery. This will show you the main gallery. Remember, this is the GALLERY part from the link ‘http://mydomain/GALLERY/mygallery’. Now you need to create a page for the MYGALLERY. Do this, name it mygallery and for your convenience use the GALLERY page you created earlier as the parent. Use the code

    [nggallery id=X]

    where X is the ID from your “mygallery”.
    Now, when you acces the main gallery at ‘http://mydomain/gallery’ you need to see a compact template of the ‘mygallery’. If you want to use more galleries simply create more pages with the name you want them to be.

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Show gallery instead of directory index’ is closed to new replies.