Skip Navigation

[Resolved] How to add link to inline field in paragraph block

This support ticket is created 2 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by davidW-32 2 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2420045

I use dynamic sources in paragraph blocks; e.g. an @ symbol from fontawesome and then a website taken from dynamic sources.

Here is an HTML sample:
<p><i class="fas fa-at">
<span data-provider="__current_post" data-source="toolset_custom_field|feldgruppe-sample" data-field="website" data-uniqueid="5" class="tb-inline-field">hidden link;

I want to have the website as link of course, so how can I add the link to the dynamic website text "hidden link"?

#2420225

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Thank you for getting in touch.

When you say Dynamic Link text are you referring to the link name being changed per post being viewed?

This below seems to be generated by our Toolset Single Field Block.

<p><i class="fas fa-at">
<span data-provider="__current_post" data-source="toolset_custom_field|feldgruppe-sample" data-field="website" data-uniqueid="5" class="tb-inline-field"><em><u>hidden link</u></em>;

Please let me know if this link will be between texts.
Thanks,
Shane

#2420517

Hi Shane,

I could use the Toolset Single Field Block for the website field (dynamic sources), but I want an icon from fontawesome to be shown before the website field: <fontwesome icon> <website field> and the website field content should be displayed as a link. Is this possible with Toolset Single Field Block?
I thought that this is not possible, that is why I used a standard paragraph block as shown in the html above. Problem with this approach is that the website field content is not displayed as a link, but just as simple text.
What do you suggest?

#2420861

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

In that case you may need to do it manually like below.

<a href="[types field='my-field' output='raw'][/types]"><fontwesome icon> [types field='my-field' output='raw'][/types] </a>

Replace 'my-field' with the slug of your custom field that has the url.

Thanks,
Shane

#2420957

My issue is resolved now. This is exactly what I needed! Great job! Thank you!