J3 Issue ?
avatar jeckodevelopment
jeckodevelopment
27 Apr 2019

Steps to reproduce the issue

  1. Create a new field, choose URL type.
  2. Create a new article that uses the URL field.
  3. Specify the URL address.
  4. Open the article in frontend.

Expected result

You can specify the URL.
You have the opportunity (optional) to specify the Anchor text.

Actual result

The raw URL is shown as field content.
The "a" tag has as anchor text the URL.

System information (as much as possible)

Joomla 3.9.5

Additional comments

avatar jeckodevelopment jeckodevelopment - open - 27 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 27 Apr 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Apr 2019
avatar jeckodevelopment jeckodevelopment - change - 27 Apr 2019
Labels Added: J3 Issue
avatar jeckodevelopment jeckodevelopment - labeled - 27 Apr 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Apr 2019
Status New Information Required
avatar rytechsites
rytechsites - comment - 29 Apr 2019

I created a custom override for URLs, so we could have more control of them...

  1. if a 'description' is included in the custom field, that would 'become' the text used with the url
  2. if an email is used, the 'mailto' would automatically get stripped.

Not a perfect solution, but it works...

plg_fields_url.zip

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Apr 2019

@HLeithner should @rytechsites make a Pull Request you would merge?

avatar HLeithner
HLeithner - comment - 30 Apr 2019

Could make sense for j4,

avatar rytechsites
rytechsites - comment - 30 Apr 2019

I don't know if my solution is really the 'best' way to go. it is a great work around for us...but if we were to wait, I would think a better way to go is to include a 2nd field when defining a url, and that field 'can' be used as the 'text' that is displayed instead of the link.

My option of using the 'description' is just 'ok', not ideal, because then you will have multiple 'text links', that are on the same going down the page, even if the urls are different.

For example if you create a field called: 'Faculty Member website', the 'link' will say 'faculty member website' with a link to the url, which is great, but again not 'ideal'... when it could say for example 'John's Faculty Website'...

The 'stripping' of the mailto is probably more important, as I don't know any cases where anyone would want the 'mailto' displayed...

--- Laura

avatar jeckodevelopment
jeckodevelopment - comment - 2 May 2019

@rytechsites please check PR #24776 as it implements your suggestion

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-05-03 04:02:30
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 3 May 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 May 2019

Closed as having Pull Request #24776

avatar infograf768
infograf768 - comment - 3 May 2019

IMHO, if we need a different anchor text, we should use a new parameter and make sure it goes through JText.
In any case, this would be a new feature, and therefore for J4

avatar jeckodevelopment
jeckodevelopment - comment - 3 May 2019

i agree with your approach @infograf768
will try to work on that, any help is welcome ;)

avatar rytechsites
rytechsites - comment - 3 May 2019

I agree as well... my solution was just as a work around. This can be donr
better, so languages can be considered...

Laura

On Fri, May 3, 2019, 6:26 AM Luca Marzo notifications@github.com wrote:

i agree with your approach @infograf768 https://github.com/infograf768
will try to work on that, any help is welcome ;)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24739 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEIIWYHETFPBK2N27XN4KALPTQHMFANCNFSM4HI4GUNQ
.

Add a Comment

Login with GitHub to post a comment