Custom Category Template 4 columns

More
14 years 2 months ago #10182 by micker
thanks for all

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 3 weeks ago #11308 by tobyleeming
Hi,

I would really like to be able to do this too. I looked at the category-items.php code and I think the easiest way would be to get a table in that is four columns wide and then puts each article in a new cell, and then autogenerates a new row if it is needed.

My problem is my php skills are very bad. I know i need to adapt this code below to get it to output a table - but not sure how.

Can anyone help at all? Hope you can!

Thankyou very much.

<ul class="introblock <?php echo ($this->params->get('intro_cols', 2) == 1) ? 'one' : 'two'; ?>">
<?php for ($i=($this->limitstart == 0 ? $leadnum : 0 ); $i<$count; $i++) : ?>
<li class="<?php echo (($this->limitstart == 0) ? ($i+$leadnum)%2 : $i%2) ? 'even' : 'odd'; ?>">

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

More
14 years 1 week ago #11641 by sospixs

tobyleeming wrote: Hi,

I would really like to be able to do this too. I looked at the category-items.php code and I think the easiest way would be to get a table in that is four columns wide and then puts each article in a new cell, and then autogenerates a new row if it is needed.

My problem is my php skills are very bad. I know i need to adapt this code below to get it to output a table - but not sure how.

Can anyone help at all? Hope you can!

Thankyou very much.

<ul class="introblock <?php echo ($this->params->get('intro_cols', 2) == 1) ? 'one' : 'two'; ?>">
<?php for ($i=($this->limitstart == 0 ? $leadnum : 0 ); $i<$count; $i++) : ?>
<li class="<?php echo (($this->limitstart == 0) ? ($i+$leadnum)%2 : $i%2) ? 'even' : 'odd'; ?>">


Hi tobyleeming
I see what you post and this made me inspire,
My english is not so good, Sorry.

I found the way to hard code for this
I was change this line
"<ul class="introblock <?php echo ($this->params->get('intro_cols', 2) == 1) ? 'one' : 'two'; ?>">"
to be
<ul class="introblock three">
This is my hard code ,
And then i edit /css/category.css
You have to find string "introblock.two"
And copy this block named "introblock.three"

And here , This is my new css style for 3 column"
in two column width =48% , It make sense that page mod by 2 , Then i mod by 3 :)

#flexicontent ul.introblock.three li {
width: 32%;
background: #F4F4F4;
vertical-align: top;
margin-bottom: 2px;
}

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

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