RSGallery2 support forums > Display and Templates

Delete title image

(1/1)

ertos82:
It is possible deleted title image in open image gallery?

whazzup:
Hello ertos82,

your question is not clear enough to me. Could you explane it a bit more detailed ?
(1) Do you want to know who is able to delete an title image ?
(2) Do you want to know were to assign a title image (-> In Gallery form you may chose which image to display)
(3) Did you loose or can't find an image any more ?

regards whazzup

ertos82:
View image

mirjam:
So in the gallery view you clicked on an image and now you see a single image. It has its "name" above the image, just below the pagination (previous, 1, 2, etc.).

This is not a setting in RSGallery2. However, you can remove it from the code:

Assuming you're using RSGallery2 3.2.0 and the default template Semantic:
Find the file /JOOMLAROOT/components/com_rsgallery2/templates/semantic/display.class.php

Find the lines 267-271

--- Code: ---[code]        <table <?php echo ($item->published) ? "" : "class='system-unpublished'";?> border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td><h2 class='rsg2_display_name' align="center"><?php echo htmlspecialchars(stripslashes($item->title), ENT_QUOTES); ?></h2></td>
            </tr>
            <tr>
--- End code ---
and either remove the row to get this

--- Code: ---        <table <?php echo ($item->published) ? "" : "class='system-unpublished'";?> border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr>


--- End code ---
or comment the line whith PHP code to output the image title (// on line 269:

--- Code: ---        <table <?php echo ($item->published) ? "" : "class='system-unpublished'";?> border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td><h2 class='rsg2_display_name' align="center"><?php // echo htmlspecialchars(stripslashes($item->title), ENT_QUOTES); ?></h2></td>
            </tr>
            <tr>
--- End code ---

Navigation

[0] Message Index

Go to full version