michaelG-24
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Taxonomy as URL parameter in Button block “Link” field
Started by: michaelG-24
in: Toolset Professional Support
Problem: I would like to use a Toolset Button Block to function as a link to a custom Page containing a Form. Several Form fields are set up to accept values from URL parameters, so I need to add those URL parameters to the Button block's "Link", or destination URL, field. I have been able to use Types field shortcodes successfully as URL parameter values here, but a Views taxonomy shortcode does not seem to work. The same shortcode placed outside the Button block works as expected and displays the relevant term name. Solution: Normally I would not expect shortcodes to work in the Button block's "Link", or destination URL, field. Instead I usually recommend a custom HTML block instead, using a combination of HTML, CSS, and Toolset shortcodes as seen in the following examples: <div class="tb-button"> <a href="https://yourseite.de/bewerbungsformular?rmail=[types field='e-mail-adresse' output='raw' item='@ansprechpartner-stelle.parent' ][/types]&rtitle=[wpv-post-title output='sanitize']&rklinik=[wpv-post-taxonomy type='standort' format='name']&rstelle=[types field='vertragsart' output='raw'][/types]" class="tb-button__link"> <span class="tb-button__content">Bewerben</span> </a> </div> Then add CSS in the template to apply the desired background and text color to the button, like this: .tb-button .tb-button__link { background-color: rgba( 6, 147, 227, 1 ); color: rgba( 255, 255, 255, 1 ); } |
|
2 | 7 | 3 years, 11 months ago | |
Regarding my last ticket I have an additional issue – Taxonomy as URL parameter
Started by: michaelG-24 in: Toolset Professional Support |
|
2 | 2 | 3 years, 11 months ago | |
URL with dynamic parameter – mail address field from related post
Started by: michaelG-24
in: Toolset Professional Support
Problem: I would like to use a custom field from a related post to generate a dynamic link in the child post template. The Types field shortcode for this field is not returning any value. Solution: You can use the Types field shortcode to output information from a related post using a special syntax in the "item" attribute, like this: [types field="e-mail-adresse" output="raw" item="@contact-job.parent"][/types] Relevant Documentation: |
|
2 | 3 | 4 years, 4 months ago |