User tests: Successful: Unsuccessful:
Currently Content - Contact plugin can only link the author name to the internal page of the contact associated to the author of the article.
This PR enhances the plugin with the ability to choose the webpage or the email of the associated contact as link to the author.
An option is added if the admin doesn't want to apply links to the real author when an alias name is used as article author.
Enable "Show author" and "Link author" in global article options, or just in one article; enable Content - Contact plugin; associate a contact to the user who created the article.
When the article is displayed, the author name will be linked to the internal contact page (this is the default and it works like before).
You can change the type of link in the plugin configuration: "website" will link the author name to the website specified in the contact details (if any); "email" will open the default email client to email to the address provided in contact details.
Only the link to the internal contact page is available.
Category | ⇒ | Administration Language & Strings Front End Plugins |
Status | New | ⇒ | Pending |
@infograf768 the > needs to be indented like this
default="0"
>
<option value="0">PLG_CONTENT_CONTACT_PARAM_URL_0</option>
Labels |
Added:
?
?
|
Should the version number also be upgraded?
I have another doubt: in the xml the "extension version" is set to 3.2, but in php code the "protected $db;" code says it's available since 3.3...
No need to touch the versions.
I have tested this item
Works fine here. May need some tweaks to the values of the ini strings. @brianteeman
I have tested this item
Handy Improvement, thanks.
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-12 23:00:36 |
Closed_By | ⇒ | mbabker |
This works fine but needs some code improvements.
I modified your xml to fit
To get:
remark that we use JNO and JYES, therefore the strings
should be taken off the ini file.
Also the fields name do usually use lowercase characters.
I changed them to
url
andlink_to_alias
Which means they should be changed in code.
Also I would change
PLG_CONTENT_CONTACT_PARAM_URL_LABEL="URL to link to"
to maybe a simple
PLG_CONTENT_CONTACT_PARAM_URL_LABEL="Redirection"
as obviously an email is not an url :)
Also use lowercase for html tags in text strings, i.e. not
<UL><LI>
but<ul><li>