This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 25-Feb-2017 12:44 Last Post By: RobM Threads: [ Previous | Next ]
andomare

Posts: 31
Registered: 14-May-2012
How to hide image-controls (internal magic question)
Posted: 24-Feb-2017 14:55
 
  Click to reply to this thread Reply
I've choosen Fully to create a full website. It is nearly perfect for my purposes.
I only made some small css modifications to change the dark look to a bright one.
BUT:
I would like to completely hide all image-controls (foward/back-button, thumbnail-control and the imagecount) if a folder contains only 1 image.
Anybody out there who knows how to archive this easily?
(This would be also a reasonable addition for the next version).
RobM

Posts: 4,387
Registered: 4-Aug-2006
Re: How to hide image-controls (internal magic question)
Posted: 24-Feb-2017 23:43   in response to: andomare in response to: andomare
Helpful
  Click to reply to this thread Reply
Attachment index.htt (2,1 KB)
Try the attached index.htt file (keep the original outside the skin).
It just has a test for variable totalImages being greater than one, you can see the changes by searching for the
<ja:if test="<%=(totalImages >1)%>">
some code to only show if more than one image
</ja:if>
andomare

Posts: 31
Registered: 14-May-2012
Re: How to hide image-controls (internal magic question)
Posted: 25-Feb-2017 12:05   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
GREAT!
And a simple, perfect solution!

Thank you very much!
RobM

Posts: 4,387
Registered: 4-Aug-2006
Re: How to hide image-controls (internal magic question)
Posted: 25-Feb-2017 12:44   in response to: andomare in response to: andomare
 
  Click to reply to this thread Reply
Fully is unlikely to have any further updates, it is in the unsupported skins forum. If you are happy as it is that is fine, but further changes might be harder to implement by those who develop their own skins. It is always worth asking though ;)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums