Monday, 30 July 2018
  3 Replies
  1.4K Visits
0
Votes
Undo
Hi,
I setup a custom venue page and the URL is being listed twice - Example:
https://golfersresource.com/component/jevlocations/detail/3/1/dutcher-creek-golf-course?Itemid=103

venue-url.png

I see there are two URL datasets but I don't understand the difference, and why there are two :


{{Location Url:JEVLOCATION_URL# %s <br />#}}
{{Location Url Active:JEVLOCATION_URL_ACTIVE# %s <br />#}}


venue-url-2.png

Thanks,
John
Tuesday, 31 July 2018 17:48
·
#204644
0
Votes
Undo
Hi John,

JEVLOCATION_URL
only checks if the url field for the location is not empty (or http://) and returns the content as it is. For instance if your url is: http://www.myvenue.com that is exactly what it will show (no links tags added)
Example:
URL Field: http://www.myvenue.com
Resulting code: http://www.myvenue.com


JEVLOCATION_URL_ACTIVE
It goes a bit further and it check the url field and generates a full link tag code. So for our example:
Example:
URL Field: http://www.myvenue.com
Resulting code: <a href="http://www.myvenue.com" target="_blank" rel="noopener noreferrer">http://www.myvenue.com</a>

If the URL Field has the https protocol, the system detects it and uses it also.
Tuesday, 31 July 2018 19:27
·
#204649
0
Votes
Undo
Hi,

Thank you. I chose to remove:


{{Location Url:JEVLOCATION_URL# %s <br />#}}


Since JEVLOCATION_URL_ACTIVE seems to be safer in case of poor data entry. Does that seem like a good assumption to you?

P.S.

On my installation the default - non-published Location Detail Page had a small error - There was an extra "<" after the IMAGE part:


<div style="margin:3px;">
<h3>{{Location Title:JEVLOCATION_TITLE}}</h3>

<fieldset class="adminform">
{{Location Street:JEVLOCATION_STREET# %s <br />#}}
{{Location City:JEVLOCATION_CITY# %s <br />#}}
{{Location State:JEVLOCATION_STATE# %s <br />#}}
{{Location Postcode:JEVLOCATION_POSTCODE# %s <br />#}}
{{Location Country:JEVLOCATION_COUNTRY# %s <br />#}}
{{Location Phone:JEVLOCATION_PHONE# %s <br />#}}
{{Location Url:JEVLOCATION_URL# %s <br />#}}
{{Location Url Active:JEVLOCATION_URL_ACTIVE# %s <br />#}}
{{Location Image:JEVLOCATION_IMAGE# %s <br />#}}<
{{Location Description:JEVLOCATION_DESCRIPTION#<br />%s <br />#}}
</fieldset>

<fieldset class="adminform">
<legend>Google Map</legend>
Click map for directions:<br/><br/>
{{Location Map:JEVLOCATION_MAP}}
</fieldset>

<fieldset class="adminform">
<legend>Upcoming Events</legend>
{{Upcoming Events:JEVLOC_UPCOMING}}
</fieldset>
</div>


John
Friday, 03 August 2018 11:37
·
#204709
0
Votes
Undo
Yes, that is exactly what I would place in my layout ;)

Thank you for reporting the extra <!! It's fixed in our repositories now.
  • Page :
  • 1
There are no replies made for this post yet.