Texte field and only 3 letters appear(solved)

More
11 years 2 months ago - 11 years 2 months ago #52156 by mfe13260
Hi,
I want to write a full name in the form, but only the first 3 letters appear in public mode.
For example: John Smith > Dup ...
Is it possible with text fields?
Thank you in advance
Last edit: 11 years 2 months ago by mfe13260.

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

More
11 years 2 months ago #52160 by ggppdk
Hello

i don't understand you have a text field and item form does not let you write more that 3 letters ?


-- 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 review. Thanks!

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

More
11 years 2 months ago #52166 by mfe13260
Hi,
No, I want a text fields to enter text but does show in front than the first 3 letters (public mode).
thank you

Non, je voudrais un champs text qui permettent de saisir un texte mais ne montrer en front que les 3 premières lettres (mode public).
Merci

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

More
11 years 2 months ago #52167 by ggppdk
Hello

there is code to cut down description,
but in your case you don't speak of description field,

is it a text field or other field ?

could it be the effect of a content plugin ?
(are splugin triggered in the text field ?)
could it be the effect of a system plugin ?

did you try different texts ?


-- 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 review. Thanks!

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

More
11 years 2 months ago #52170 by micker
a mon aviss il te faut créer ton propre template pour afficher ton champs avec la fonction substr
php.net/manual/fr/function.substr.php
reagrde la faq pmour la creation de template

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 2 months ago #52173 by mfe13260

ggppdk wrote: 1/is it a text field or other field ?
2/could it be the effect of a content plugin ?
(are splugin triggered in the text field ?)
3/could it be the effect of a system plugin ?
4/did you try different texts ?

Hi,
1/Text field
2/No
3/No
4/The text will be the name of a person and I want to show only the first letter

thank you

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

More
11 years 2 months ago #52174 by mfe13260

micker wrote: a mon aviss il te faut créer ton propre template pour afficher ton champs avec la fonction substr
php.net/manual/fr/function.substr.php
reagrde la faq pmour la creation de template

Bonjour, je vais regarder si c'est à ma portée...

Merci

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

More
11 years 2 months ago #52187 by ggppdk
Hello

you asked the question like it was a bug

you said that only 3 letters appear




did you mean that you only want to show 3 letter out of it ?


-- 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 review. Thanks!

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

More
11 years 2 months ago #52193 by mfe13260
No, there is no bugg, everything works.

I only want to show the first 3 characters of this text fields because it contains the names of people.

The first 3 letters would be visible for the public and all letters of this fields would be visible in admin mode or special mode.

Thanks

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

More
11 years 2 months ago #52195 by ggppdk
For ITEM VIEW inside file:
item(_html5).php
of for CATEGORY VIEW and views inside file:
category_items(_html5).php

use:
Code:
$html = FlexicontentFields::getFieldDisplay( $item, 'myfieldname', null, 'display' ); echo mb_substr ($html, 0, 3, 'utf-8');


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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