Texte field and only 3 letters appear(solved)

More
10 years 5 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
10 years 5 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...

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

More
10 years 5 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
10 years 5 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...

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

More
10 years 5 months ago #52196 by mfe13260
For the fields, just write field118 ?
Is there a specific location in the file where to insert this line please ?
Code:
$html = FlexicontentFields::getFieldDisplay( $item, '[b]field118[/b]', null, 'display' ); echo mb_substr ($html, 0, 3, 'utf-8');

Thanks

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

More
10 years 5 months ago #52197 by micker
duplicate a template (that you need) and edit file that georgios say and pu it where you want to display

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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.363 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