[solved] Need to change a template of category.

More
14 years 3 months ago - 14 years 3 months ago #9454 by TheKillers
I want to delete description from template of category and to add several fields instead of description. That it has turned out approximately so:

Now I have this:

How to do this?
Last edit: 14 years 3 months ago by TheKillers.

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

More
14 years 3 months ago #9519 by micker
hello
read this
flexicontent.org/forum/index.php ... =viewtopic
it's a big tutoriel
for deleted description edit your category_item.php
to insert your field a right of image use css
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.

More
14 years 3 months ago #9530 by TheKillers
Thank you! I deleted introtext, but I can not show instead of description the fields (2 days already suffer). I posed that question to the author of this blog - to Maxim. True, I used a translator because I do not know French, I hope he will understand me. I hope he will help me.

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

More
14 years 3 months ago #9538 by micker
can you post some part of your code ?
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.

More
14 years 3 months ago #9556 by TheKillers
Unfortunately I do not know php( I added a position "description" in the xml file categories of template blog:
Code:
<fieldgroups> <group>above-description-line1</group> <group>above-description-line1-nolabel</group> <group>above-description-line2</group> <group>above-description-line2-nolabel</group> <group>description</group> <group>under-description-line1</group> <group>under-description-line1-nolabel</group> <group>under-description-line2</group> <group>under-description-line2-nolabel</group> </fieldgroups>
Then I'm from item.php (tempalte default) copied the code of position "top" in which I show fields in template "default" in category_items.php (template blog) instead of code introtext:
Code:
<!-- BOF top block --> <div class="infoblock <?php echo $this->params->get('description'); ?>cols"> <ul> <?php foreach ($this->item->positions['description'] 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> <!-- EOF top block -->
I am in php 0, so I do not know how to do it...

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

More
14 years 3 months ago #9570 by TheKillers
Help me please. I can't do it(((

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