문제

I want to display the title in the NextGen gallery. The plugin does not offer an option for that, so I have to somehow go past it, and modify the code.

NextGen Version:2.0.33.

Has anyone got across the same problem? How can I solve it?

도움이 되었습니까?

해결책

Stefan - The view folder is in the modules/ngglegacy folder. New version I guess.

As for the gallery title, I modified some code I found here,

http://psychopixi.com/tech/how-to-link-back-to-an-album-in-a-nextgen-gallery/

It's actually for showing breadcrumbs and providing a back button, but if you change the values of the iterators myi and myi2 in lines 10 and 13 it will just output with the title, which you can format as you wish.

As per their suggestion I used the plugin Shortcode Exec PHP to make shortcode which I then placed in my gallery page. You can then place the shortcode for your gallery after.

It's not an elegant solution, and it assumes that the url of your gallery has the name of the gallery in it.

Good luck.

다른 팁

<?php echo $gallery->title ?>

Place this in your gallery template file wherever it's needed.

I found a solution to this problem having searched all day on inet.

Your 'view' folder is in the ngglegacy folder of the plugin. You can add <?php echo $gallery->title ?> to that file. Then goto Gallery options in your admin area and select gallery.php to show for the Basic Thumbnails.

thats it!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top