How to achieve this - Displaying content in front of Label

More
14 years 4 months ago #1828 by online.person
First of all:
Merry Christmas and Thanx for such a nice piece of work.

I have installed FlexiContent and am trying to achieve something as follows:

www.investorsouk.com/ipo/2008/07 ... ting-date/

However after all my efforts I could achieve this:

www.investorsouk.com/index.php?o ... &Itemid=80

Is there a way to do as above.

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

More
14 years 4 months ago #1849 by mambajoe
hi,

There are 2 ways to do it.
One is by using tables, directly in the items.php of the template you are using and you format the rows on each reiteration of the "for each" block, according to your desires.

The other is to use pure CSS, by a blend of "if" 's and one class for each row style.

Unfortunately for the second method, am having a problem myself, and my templates do not read the css file....
So I need to resolve that before giving you further help.

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

More
14 years 4 months ago #1854 by mambajoe
Well, after going around the forum
I found the answer to your question on having the lines in different color.
The only problem is that it's in french (if you speak only english)
but here is the php code that was offered by vistamedia:

Find the following code in item.php
CODE: SELECT ALL
<?php foreach ($this->items as $item) : ?>
<tr class="sectiontableentry">

replace it with this
CODE: SELECT ALL
<?php
$k = 0; // a little mark
foreach ($this->items as $item) :
$class = ($k%2) ? ' sectiontableentry1' : ' sectiontableentry2'; // we check here that k is even/odd
$k++;
?>
<tr class="sectiontableentry<?php echo $class; ?>">

and that's it.

here is the original post: www.flexicontent.org/forum/index ... =viewtopic

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

More
14 years 4 months ago #1931 by online.person
Thanx for your reply...

Though alternate row coloring will help the users for easy reading however more important for me is to show the data in the format where labels are coming in front of the content. Presently it comes in different rows.

I am not very technical person so do not know how to handle in items.php.

Can someone please help.

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

More
14 years 4 months ago #1934 by bsky92
Hi and welcome to you on this board

The solution is to have your own item template, there is no need at all to modify the item.php

The templating in Flexicontent is really easy to work with, I presume you already created your own fields, so you now have to duplicate the default template, rename it as you wish, and drag the fields you want in the position you want to have them

As an example to what you can achieve, here a page of my site displaying an item, with the field labels and the content of the field

I hope you can figure it out, if you need more help, just ask again

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

More
14 years 4 months ago #1994 by orchid1
heres a tutorial on my site hope the URL is not too long www.orchid1software.com/Website/blog/ite...to-create-a-template
its a how to make a template tutorial for flexicontent

“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.” William A. Foster - USMC

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

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