Category Template

More
13 years 1 month ago #19570 by ggppdk
Replied by ggppdk on topic Category Template
OK, i will help you since it is not so difficult for me, but you know this is more like some custom development, if i have a lot of people asking this i will not have time to make a living, i am supposed to only respond to bugs, and such questions as yours should be answered by the community :D ...

I hope other people will find useful this too ...

I will give you code for each item:
-- Will put first and last field like what in your image show as col1 and col5
-- and all in between fields will outputted as one per row
OK?


-- 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
13 years 1 month ago #19577 by lukass2000
Replied by lukass2000 on topic Category Template
Hi ggppdk :)

GREAT THANK YOU :) :) :)

"YES" -- Will put first and last field like what in your image show as col1 and col5
"YES"-- and all in between fields will outputted as one per row

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

More
13 years 1 month ago #19578 by ggppdk
Replied by ggppdk on topic Category Template
Replace code (in category_items.php:
Code:
<?php if ($this->params->get('show_title', 1) || count($columns)) : ?> <table id="flexitable" class="flexitable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="<?php echo $this->category->name; ?>"> ... <?php endif; ?>
with
Code:
<?php if ($this->params->get('show_title', 1) || count($columns)) : ?> <table id="flexitable" class="flexitable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="<?php echo $this->category->name; ?>"> <tbody> <?php foreach ($items as $item) : ?> <?php $cnt=0; foreach ($columns as $name => $label) : $cols[$cnt] = $name; $cnt++; endforeach; $midcols_count=count($columns)-2; if ($midcols_count<1) $midcols_count=1; ?> <!-- BOF item fields 1,2,last --> <tr class="sectiontableentry"> <?php if( count($cols)<1 ) continue; ?> <td rowspan="<?php echo $midcols_count;?>"><?php echo isset($item->positions['table']->{$cols[0]}->display) ? $item->positions['table']->{$cols[0]}->display : ''; ?></td> <?php if( count($cols)<2 ) continue; ?> <td><?php echo isset($item->positions['table']->{$cols[1]}->display) ? $item->positions['table']->{$cols[1]}->display : ''; ?></td> <?php if( count($cols)<3 ) continue; ?> <td rowspan="<?php echo $midcols_count;?>"><?php echo isset($item->positions['table']->{$cols[count($cols)-1]}->display) ? $item->positions['table']->{$cols[count($cols)-1]}->display : ''; ?></td> </tr> <!-- EOF item fields 1,2,last--> <!-- BOF item fields 3,4,...last-1 --> <?php for ($cnt=2; $cnt < count($cols)-1; $cnt++) : ?> <tr class="sectiontableentry"> <td><?php echo isset($item->positions['table']->{$cols[$cnt]}->display) ? $item->positions['table']->{$cols[$cnt]}->display : ''; ?></td> </tr> <?php endfor; ?> <!-- EOF item fields 3,4,...last-1 --> <?php endforeach; ?> </tbody> </table> <?php else : ?> <div class="nocols"><?php echo JText::_( 'NO FIELDS IN TEMPLATE' ); ?></div> <?php endif; ?>


-- 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
13 years 1 month ago #19586 by micker
Replied by micker on topic Category Template
please read this for tutoriel ! ;)
extensions.netassopro.com/9-tutorials
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.

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