• Hi

    it seems, that a tag like this
    <img class="ngg_displayed_gallery mceItem" alt="" src="https://mydomain/nextgen-attach_to_post/preview/id--816" />

    is the hook to generate the right gallery in a post.

    I would like to keep the path relative to the root of mydomain.
    src="/nextgen-attach_to_post/preview/id--816"

    because I usually build the whole site on a development server with an dummy domain and then I port it to the customers server with the real domain-name

    but that doesn’t work. How can I adjust the plugin to work like this?

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @jkling – If it does not adjust by itself when you migrate to the production server, then it should correct itself by using the Reset Option under Gallery > Other Options which is one of its primary functions.

    Thanks!

    – Cais.

    Thread Starter jkling

    (@jkling)

    I can only find

    Other Options
    – Image Options
    – Thumbnail Options
    – Lightbox Effects
    – Watermarks
    – Styles
    – Roles & Capabilities
    – Miscellaneous

    But that won’t solve my problem, I think. Because the new path will be like this:
    src="https://other-domain/nextgen-attach_to_post/preview/id--816"
    I only need to adjust the wordpress-url to get this

    why does this one don’t work?
    src="/nextgen-attach_to_post/preview/id--816"

    I guess the reset would not affect already postet gallery-links in the content of posts or pages.

    In general I try to avoid all absolute paths.

    Plugin Contributor photocrati

    (@photocrati)

    @jkling – Since version 2.0.57 you would find after “Miscellaneous” the “Reset Option” … and by using the Reset Option it will ensure the NextGEN Gallery installation uses relative paths as well as most likely correcting any “path” related issues.

    There is no danger to your existing galleries, albums, or images when using the Reset Option.

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘relative url / path in posts’ is closed to new replies.