WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] How to swap title with caption (3 posts)

  1. acekin
    Member
    Posted 5 years ago #

    I have been using NextGEN with great satisfaction for quite sometime now and have integrated it with HighSlide. One issue that stumps me is that HS displays the title, NextGEN has a more generous caption field. I wonder if it is possible to programmatically swap these variables on the fly so that HS gets the title variable which has been passed content from caption?

    Take a look at the post below where the entire text under each photo comes from the title field; very difficult to edit and see in the NG control panel.
    http://www.keptlight.com/blog/?p=437

    Thanks

  2. acekin
    Member
    Posted 5 years ago #

    Does the lack of a reply indicate that the question does not relate to NG Gallery or lack of time? I was hoping for a JS snippet that could be embedded in the post to swap the contents of the variables.

    Ideally, a selector in the NG Gallery console will be the best; a check box, a radio button, a drop-down selector, anything that will allow the user to choose to display one or the other.

  3. acekin
    Member
    Posted 5 years ago #

    I have found the answer, it was a matter of adding the following two lines to the embedded JS code in the WS-Highslide plugin:

    hs.captionEval = "this.a.title";
    hs.show_title="y";

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.