how to copy something from item view to cat. view?

More
13 years 1 week ago #15643 by sumerokr
thank you :geek:
code works fine, you are my hero :D
gonna try some css to get good view.
ty

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

More
13 years 1 week ago #15649 by sumerokr
almost done. but still doesnt finished.
my code in templates\blog-2\category_items.php now looks like a:
Code:
<!-- BOF paramblock --> <?php if (isset($items[$i]->positions['paramblock'])) : ?> <div class="infoblock <?php echo $this->params->get('top_cols', 'two'); ?>cols"> <ul> <?php foreach ($items[$i]->positions['paramblock'] as $field) : ?> <li> <div> <?php if ($field->label) : ?> <div class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></div> <?php endif; ?> <div class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div> </div> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <!-- EOF paramblock -->

and i add this code to templates\blog-2\category.xml
Code:
<param name="top_cols" type="list" default="two" label="FLEXI_ITEM_TOP_COLS" description="FLEXI_ITEM_TOP_COLS_DESC"> <option value="">Use Global</option> <option value="one">FLEXI_1_COL</option> <option value="two">FLEXI_2_COLS</option> </param>

and at <fieldgroups> in same file:
Code:
<group>paramblock</group>

in admin panel become new option in category properties. i set it to 2 columns. then i put css styles to templates\blog-2\css\category.css :
Code:
div.infoblock { overflow: hidden; } div.infoblock { border: 1px solid silver; margin: 0px; padding: 6px; } div.twocols ul li { width: 48%; } div.twocols div.label { width: 30%; margin-right: 2%; } div.twocols div.value { width: 30%; } #flexicontent div.infoblock ul { margin: 0; padding: 0; } #flexicontent div.infoblock ul li { padding: 0; background: none; min-height: 10px; display: -moz-inline-stack; display: inline-block; vertical-align: top; margin: 2px; zoom: 1; *display: inline; _height: 10px; } div.label { float: left; border-bottom: 1px solid silver; color: #777; font-size: 90%; } div.value { float: left; }

[img


Uploaded with ImageShack.us

how to make present by 2 columns like my screenshot in #1 post?

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

More
13 years 1 week ago #15652 by micker
hello
not use this type of css
create 2 position (for each colone)
for each colon use float:left css and good with to place your blocks
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.274 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