Custom feild to float right in Title feild group?

More
9 years 10 months ago #51815 by avmn12
I have created a new field "Price" a want to have it appear to float right in the title field in both the category and item view of the blog template. I also need for it to be in the "heading 2" format, How do i go about doing this? i am using Flexi Content 2.2xx RC1 and Joomla 3.36. Attached is an image of how and where i want the field to appear in the category view. Thank you
Attachments:

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

More
9 years 10 months ago #51817 by ggppdk
Hello

1. create a custom FLEXIContent template e.g. mydefault1


2. Add it to "renderonly" template position of item layout of mydefault1 FLEXIcontent template
and to category layout of mydefault1 FLEXIcontent template


3. edit files:

item view:
component/com_flexicontent/templates/mydefault1/item(_html5).php

category view:
component/com_flexicontent/templates/mydefault1/category_items(_html5).php


place it using:

<?php echo $item->fields->display; ?>

e.g.
<div style="float:left;">
<?php echo $item->fields->display; ?>
</div>

the above is an example it is up to you to add the HTML that you need

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
9 years 10 months ago #51826 by micker
or
in your field use prefix and suffix
prefix <div class="price">
suffix </div>
=> add your css in custom.css of your 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.391 seconds
Save
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