• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

Add a link from image in web app

Community Beginner ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

I need to add a link to social media site in a static image in a web app detail layout.

I have thought this would be...

<a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" /></a>

but this displays the link bedside the icon.

I have tried field type "Text string (Hyperlink)" and "Text string (String)".

any help appreciated.

thanks megan

TOPICS
Web apps

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 11, 2013 Sep 11, 2013

Nope

That is text hyperlink so that renders its own anchor tag.

You need to use text only for that to do what you want.

You cant edit type and save, you have to delete that and remake it.

Votes

Translate

Translate
LEGEND ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

Hi Megan, Hyperlink will form a link, If you use string text field as the facebook href tag and you do the above code it will work. But if your doing that manually and setting a manual image you do not need to make a custom field for it as if you wanted it to be youtube you cant change the image. So why not just hard code it into the layout?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

Hey Liam,

Franchise list of stores added to a web app abd each store can have a different link added to the icon.

  • The icon is hard coded into the layout
  • The url needs to change for each

e.g. 15 Stores, some have their own Facebook page, some will link to a central Facebook page.

So the icon is static in the web app detail layout, but url changes.

When I add the code

<a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" />

the result in browser looks like...

2013-09-12_12h13_18.png

thanks Liam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

Well Look at what you posted first and this:

<a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" />

You not closed off the anchor in this case above.
So how exactly you put your html? You very likely have a syntax error.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

2013-09-12_13h18_07.png

hey Liam, no sorry I typed into the forum incorrectly.

See layout from web app above.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

And that is a text type custom field - what are you pasting in it?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

2013-09-12_13h55_59.png

yes.  See above screen dump.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

Nope

That is text hyperlink so that renders its own anchor tag.

You need to use text only for that to do what you want.

You cant edit type and save, you have to delete that and remake it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 11, 2013 Sep 11, 2013

Copy link to clipboard

Copied

LATEST

Thanks Liam.  Solved. I needed to DELETE to make it stick!
 

Much appreciated, megan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines