• Resolved englchris

    (@engl4614)


    Is there a way to use custom templates in shortcodes?

    I tried setting a shortcodes like this:
    [ngg src=”galleries” ids=”3″ display=”basic_slideshow” display_view=”custom\customSlider-view.php”]

    I have created different templates for displaying sliders. The template that I set in the gallery settings is displayed, regardless of whether I specify the desired template.

    Thanks for helping 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @engl4614.

    There should be such possibility to indicate a custom view for the gallery if inserting it via shortcodes instead of visually and the structure you’ve mentioned looks fine.

    Could you please confirm that you’ve stored your custom views using a folder structure as in the example from below:

    /wp-content/ngg/modules/photocrati-nextgen_basic_gallery/templates/slideshow/customSlider-view.php

    • This reply was modified 3 years, 3 months ago by Imagely.
    Thread Starter englchris

    (@engl4614)

    Hi @imagely ,
    thanks first of all for the quick response.
    Yes, I have the same folder structure as you indicated.

    Plugin Contributor Imagely

    (@imagely)

    Hi @engl4614,

    Could you please let us know if you are able to see the custom view while editing the gallery in visual mode?

    Thread Starter englchris

    (@engl4614)

    In visual mode I can select the custom template only if this is in the folder:

    ...ngg\modules\photocrati-nextgen_basic_slideshow

    But as soon as I refresh the page, the block “NextGEN Gallery” resets the setting in the select view to “Legacy”.

    The custom template “custom-view” is just a duplicate of an already existing and working template, in which only one CSS class was changed.

    Plugin Contributor Imagely

    (@imagely)

    Ok. Just wanted to confirm that you press “Insert Gallery” then “Publish” the page’s changes after selecting the custom view?

    Thread Starter englchris

    (@engl4614)

    Yes, I do

    Plugin Contributor Imagely

    (@imagely)

    @engl4614,

    Could you perhaps as a workaround try adding the slideshow template to …/ngg/modules/photocrati-nextgen_basic_thumbnails/templates then select it using “Basic Thumbnails” display type?

    • This reply was modified 3 years, 3 months ago by Imagely.
    Thread Starter englchris

    (@engl4614)

    I have tried this workaround, but it is the same problem. As soon as I insert the gallery and publish the page, NextGEN Gallery changes the setting to Legacy, even though I use an already working custom template as the base setting.

    Is it possible to use multiple custom templates only with a Pro version? I can’t explain it otherwise.

    • This reply was modified 3 years, 3 months ago by englchris.
    Plugin Contributor Imagely

    (@imagely)

    @engl4614,

    That’s odd. We are not limiting in any way the custom views for the free users.

    Thread Starter englchris

    (@engl4614)

    Ok, but still it doesn’t work.

    Now I have written as best I could an additional stylesheet, which is only supposed to be a workaround. But since I haven’t received any other, better solution from you yet, it will probably have to stay that way.

    • This reply was modified 3 years, 2 months ago by englchris.
Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Shortcode with costum template view’ is closed to new replies.