-
AuthorPosts
-
December 15, 2017 at 10:49 am #1081471
Hi guys,
As the title, would it be possible to add it has the hyperlink?
Like clicking each of gallery can link to other pages.
Does anyone have a better suggestion?Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 18, 2017 at 7:13 am #1081847Hi Luke,
You can achieve that by customizing ACM Gallery type a bit. Try with my tweak:
- Go to file: root/templates/ja_smallbiz/acm/gallery/tmpl/style-1.xml
-
Add a new field for the link as below:
<fieldset name="gallery" label="GALLERY_LABEL" description="GALLERY_DESC" multiple="1"> <field name="gallery-image" type="media" default="" label="GALLERY_LABEL" description="GALLERY_DESC"></field> <field name="title-link" type="text" default="" size="40" label="GALLERY_LINK_LABEL" description="GALLERY_LINK_DESC" /> </fieldset>
- Go to file: root/templates/ja_smallbiz/acm/gallery/tmpl/style-1.php
- Look for the code which renders the image and call the link.
I attach these 2 files so you can have a comparison.
Then go to backend settings of this module, there will be a text field underneath the image field and simply add your desired link for each image there.
Cheers!
1 user says Thank You to Saguaros for this useful post
December 18, 2017 at 7:56 am #1081868This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 18, 2017 at 8:37 am #1081883Hi Luke,
You can do that way with almost types of JA ACM but there are some types which need additional JS which added into template JS specific so you will need to check JS also and it’s more complicated.
Cheers!
December 19, 2017 at 10:15 am #1082158This reply has been marked as private. -
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Saguaros 6 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum