[solved]Description and an Image field in the same zone.

More
11 years 4 months ago #38538 by ggppdk
In item.php of new template, (please copy modular.php inside it as instructions inside item.php say, and then:)

FIND:
Code:
<?php if (isset($item->positions['image'])) : ?> <!-- BOF image block --> <?php foreach ($item->positions['image'] as $field) : ?> <div class="flexi image field_<?php echo $field->name; ?>"> <?php echo $field->display; ?> <div class="clear"></div> </div> <?php endforeach; ?> <!-- EOF image block --> <?php endif; ?>

and remove:
<div class="clear"></div>

and then place both your image field and description inside the position image, then you will be able to use CSS to style them using CSS rules:
Code:
.flexi.image.field_field43 { display: block; float:left !important; // ... } .flexi.image.field_description { // ... }


-- 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
11 years 4 months ago #38542 by kspoddar
Hi - I am sorry but I couldn't understand exactly as I was getting an error. Perhaps, this link is where it will make it clear. :geek:

mumbai.hotkhana.com/restaurants/ ... /test.html

I want to have the text aligned to the image under the tab "about us"

Thanks once again

Cheers!
Kirti

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

More
11 years 4 months ago #38543 by ggppdk
Hello,
you have 2 fields (image and description) inside the bottom tabs.
you can achieve the desired result by removing "float" CSS attribute out of the containers in the FIRST tab of bottom tabs:

SOLUTION all types (this will effect only the FIRST tab out of the BOTTOM tabset)
Code:
#fc_bottom_tab1 .flexi.element, #fc_bottom_tab1 .flexi.value { float: none !important; }
Also to make this effect only CONTENT TYPE 7 do:
Code:
#flexicontent.fctype7 #fc_bottom_tab1 .flexi.element, #flexicontent.fctype7 #fc_bottom_tab1 .flexi.value { float: none !important; }
-- Also you can always edit the template code to do what you need e.g. alter the code that output the FIRST TAB of the bottom tabs (just after foreach):
Code:
<?php if ($tc==1) { echo $field->display; continue; } ?>

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
11 years 4 months ago #38546 by kspoddar
Thanks. Could you help me out by letting me know which css file I need to make these changes in?

sorry for being such a newbie! :-)

Cheers!
Kirti

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

More
11 years 4 months ago #38547 by ggppdk
Hello,
never change CSS files that come with the FLEXIcontent or any other extensions, they will be overwritten when you upgrade

- you can place custom inside any CSS file, e.g. in a file loaded by your Joomla template

BUT Recommended place is :
joomla_folder/templates/mytemplate/css/flexicontent.css

please, read our FAQ article for more information:
How to customize CSS styles of FLEXIcontent

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
11 years 4 months ago #38565 by kspoddar
Thanks for the inputs. I am not able to solve it.

However, I will try this later and give a feedback to you.

Cheers!
Kirti

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

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