Texte field and only 3 letters appear(solved)

More
10 years 5 months ago #52201 by mfe13260
Hi,
I followed your help but the field still shows all the letters.
Could you tell me if I make a mistake?
thanks
Code:
<!-- BOF above-description-nolabel-line1 block --> <?php if (isset($items[$i]->positions['above-description-line1-nolabel'])) : ?> <div class="lineinfo line1"> <?php foreach ($items[$i]->positions['above-description-line1-nolabel'] as $field) : ?> <span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php $html = FlexicontentFields::getFieldDisplay( $item, 'field118', null, 'display' ); echo mb_substr ($html, 0, 3, 'utf-8'); ?> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF above-description-nolabel-line1 block -->

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

More
10 years 5 months ago #52204 by ggppdk
You are showing both the field normal display and also the new code?

Place the code outside of foreach and also remove the field from the field position so that normal displaying the field is not printed


-- 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 #52207 by mfe13260
Sorry to take your time but I can't!
Php and me it's complicated !
I'll do differently ...

Thank you and sorry

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

More
10 years 5 months ago #52208 by ggppdk
Hello

you could also create a 2nd text field

and put what you need there


-- 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 #52210 by mfe13260
yes, that's what I do ...
thank you

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

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