Saturday, 29 February 2020
  4 Replies
  670 Visits
0
Votes
Undo
Hi,

I have set-up an JEvents calendar for a club web-site and it mostly works fine - great tool!

As part of the event details view, I use the contact field to enter/display a URL to an external event page. This works for most URLs fine, but I have some problems with URLs containing special characters, such as the following:


https://omanager.orientierungslauf.de/service/f?p=105:7:::NO::P7_ID:9423


When looking at the event detail page, the link gets broken after the '105' parameter, i.e. before the first colon after the question mark (see screenshot). Interestingly enough, the colon after the https protocol identified does not cause any problems.

I tried modifying the layout by encapsulating the URL in a hyperlink by including the following HTML code in the custom layout:


<a href="/{{Kontakt:CONTACT}}">Link</a>


However, this also results in a crippled output and broken link to the external URL (see screenshot)

However, if you enter the above HTML code directly in the contact field, it works fine. I find this a bit cumbersome though, especially as I would like to generate the link label ( "link" ) dynamically from the contacts label or extra info field.

Any idea, why this happens or how to work around it?

Thanks,
Mathias
5 years ago
·
#215411
0
Votes
Undo
What if you do:

<a href="{{Kontakt:CONTACT}}">Link</a>

Does the content store correctly? But not render correctly?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

5 years ago
·
#215441
0
Votes
Undo
Hi Tony,

thanks for your help.

What if you do:
<a href="{{Kontakt:CONTACT}}">Link</a>

Im am not quite sure what you mean: a) to store the above hyperlink in the custom template for the event details page or b) to store the above hyperlink in the contacts field when creating/editing an event?

a) is what I did before and results in the broken link. Please note that the additional (forward) slash in the above post seems to stem from the code view of the forum, it is NOT present in my template.

b) doesn't seem to make any sense to me - where would the actual URL be stored? Anyhow, I tried it and it also results in a broken link as above (see screenshot-new).

Does the content store correctly? But not render correctly?


As far as I can tell, whatever I enter into the contact field is stored correctly in the underlying database. You can retrieve/edit it from the admin interface at least (see edit-event). It just a problem with the rendering.

I tried one more thing: I also entered the link into the event description, which work fine (also in the screenshots). The problem seems to be specific to other fields.

Mathias
5 years ago
·
#215442
0
Votes
Undo

I tried one more thing: I also entered the link into the event description, which work fine (also in the screenshots). The problem seems to be specific to other fields.


Somemore experiments, which support the above assumption that it is somehow field specific. I stored the same URL in the three fields description, extra_info and contacts and rendered it using the following custom template in a very similar way:


<table>
<tbody>
<tr>
<td><strong><span class="location">{{Ort Bezeichnung:LOCATION_LABEL}}</span><br /></strong></td>
<td>{{Ort:LOCATION}} </td>
</tr>
<tr>
<td><strong>{{Kontakt Bezeichnung:CONTACT_LABEL}}</strong></td>
<td><a href="/{{Kontakt:CONTACT}}">Register-Contact</a></td>
</tr>
<tr>
<td><strong>Meldeschluss</strong></td>
<td><a href="/{{Extra Info:EXTRAINFO}}">Register-Extra</a></td>
</tr>
<tr>
<td><strong>Meldeschluss</strong></td>
<td><a href="/{{Beschreibung:DESCRIPTION}}">Register-Description</a></td>
</tr>
</tbody>
</table>
<div></div>
<div class="jev_evdt_desc">
<div class="jev_evdt_desc"><hr /><a href="/{{Beschreibung:DESCRIPTION}}">Register-Description</a></div>



The result (see screenshot) is that the rendering is correct for the URL stored in the description field, but incorrect for the URLs stored in the extra_info and contacts field.
5 years ago
·
#215477
0
Votes
Undo
Hello,

Ok so if links exist we auto link them and that's what we have done for a long time. I would suggest using the Custom Fields plugin and setting a URL Custom field for this scenario.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.