Label and Value in item and category views[solved]

More
14 years 6 months ago - 14 years 6 months ago #12473 by fesghel
Hi everyone.
This time(us usual) I have a question, and it's about fields showing in both category and item views.
I want to change the order of viewing the field's label and the field's value.
I mean instead of:
Label..........Value
I want to show it this way:
Value..........Label
in both category and item views. I did something with the prefix/suffix option and it works, but that doesn't persuade me.
How can I do it? It's related to Item.php and Category.php or It's all about the field?

Thanks
Last edit: 14 years 6 months ago by fesghel.

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

More
14 years 6 months ago #12476 by micker
hello in your template
for exemple defaut edit item.php
for subtitle1 block
Code:
<!-- BOF subtitle1 block --> <?php if (isset($this->item->positions['subtitle1'])) : ?> <div class="lineinfo subtitle1"> <?php foreach ($this->item->positions['subtitle1'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF subtitle1 block -->
inverte
Code:
<span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> <?php endif; ?> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> </span>
do this type of modification for all position
regards

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
14 years 6 months ago #12486 by fesghel
It worked.

Thanks

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

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