Display a custom text instead of the email in EMAIL field

More
13 years 2 weeks ago #25661 by igcorreia
How can I change this, the email is presented like this:
Code:
[url=mailto:heresgoestheemail]herealsogoestheemail[/url]

to this:
Code:
[url=mailto:heresgoestheemail]SOME FIXED TEXT[/url]
That's all I need, to NOT show the email as text.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #25670 by ggppdk
I have changed the title of your this thread, i think you meant:

Display a custom text instead of the email in EMAIL field


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #25677 by igcorreia
Yes taht is it.

Can you give us a tip how to change this?

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #25684 by ggppdk
I have added this parameter.

Further more, many fields are multivalued with single property
e.g. our email field has a single value:
-- email address

I was thinking of converting them to multiple property
e.g email field i have done this for :
-- email address
-- display text

This would mean that each value will be an array thus would need to be serialized:
field->value[0] -- array('addr'=>'nnnnn@ddddddd.com', 'text'=>'PersonName1')
field->value[1] -- array('addr'=>'tttt@ddddddd.com', 'text'=>'PersonName2')
field->value[3] -- array('addr'=>'yyyyy@ddddddd.com', 'text'=>'PersonName3')

I have done exactly this for email field --while maintaining compatibility with old DB values-- that are one property with serialization !!!

So besides this parameter THAT you proposed for a custom displayed text, we can have custom displayed text for each email value too.

The idea is to do the same thing for minigallery (convert to multi-property) and thus to have custom title and descriptions, although this will most likely be a new field e.g maxgallery which will also allow using custom item_id_field_id folders, WITHOUT adding the files to the filemanager, since as you already know it is not convenient to add to the filemanager, media files that are only used once.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #25704 by igcorreia
About the
--email address field
I understand the change and yes that's what we are asking a TITLE different than the DISPLAYED field. That's perfect.

But this project we have it is so much customized we can't update at this point, is there any possibility to hack the code and set a STATIC LABEL to appear in all emails? Something link "Contact us via Email".

This is what I have right now in the onDisplayFieldValue:
Code:
$field->{$prop} = array(); $n = 0; foreach ($values as $value) { $field->{$prop}[] = $values[$n] ? JHTML::_('email.cloak', $values[$n]) : ''; $n++; } $field->{$prop} = implode($separatorf, $field->{$prop});

That's all I am asking a way to trick FLEXI to show a static text. (ps:for spam reasons)

About how to change I want to make a suggestion. Do you use JCE? If so they LINK plug-in is very complete. We show have all this fields:

--EMAIL
--TITLE TO DISPLAY
--CC
--BCC
--SUBJECT

The result is something like this:
Code:
<p>[url=mailto:myemail@adress.com?cc=ccemail@adress.com&amp;bcc=bccemail@adress.com&amp;subject=this%20is%20the%20subject]Email me[/url]</p>

Attention every SPACE character is converted to "%20".


The idea to convert and improve FILE MANAGER and MINI GALLERY has been request by many users. That's the way to go.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #25706 by ggppdk
The updated email field (i have finished it but have not committed yet) should work with your existing version without any changes


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.323 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save