We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10457
    • 5 Posts
    Hi,

    In gallery, we have the option for name and description - appearing in the chunk as below.
    <div class="image-title">[[+name]]</div>
            <div class="image-desc"> [[+description]]</div>


    I would like to add additional fields in order to:

    1) Enable each image to have a copyright notice in the alt tag - but that doesn't appear in bodytext.
    2) Input information without using the br function which I'm having a nightmare with.
    3) Style each line differently (I think this is what Gallery / RichText question was asking)

    My ideal world would be adding a copyright and another field - something like:

    <li>
        <a class="thumb" href="[[+image]]" title="[[+name]]">
            <img src="[[+thumbnail]]" alt="[[+name]][[+copyright]]" />
        </a>
        <div class="caption">
            <div class="image-title">[[+name]]</div>
            <div class="image-desc"> [[+description]]</div>
            <div class="image-anotherfield"> [[+anotherfield]]</div>
        </div>
    </li>



    My work around is to use the name as the alt tag and just have the description field in the caption. However, I cannot work out how to use the br function without causing Gallery to hang on saving ad infinitun and with this method I cannot style lines differently.


    Thank you.
    [ed. note: gaomeile last edited this post 12 years, 7 months ago.]