[resolved]lire la suite invisible

More
12 years 9 months ago #22323 by tonnick
sorry, seems that list is not accepted. I would like to isolate some "main header" and "sub header" :

- Geographical Indication (main header)
- Type of Product (main header)
- Country (main header)
- Product Information (main header)
* Ext. Link (sub-header)
* Int. link (sub-header)

Am I clear ?

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

More
12 years 9 months ago #22324 by ggppdk
Better not try to put latest 2 "last" fields in the "main cell" (i assume you mean the title column)

It is better to create a new template position called "main", (the default template for category layout already has ONE template position called "table")

So:
1. Duplicate default template
2. Add template position to your
category.xml:
just after:<group>table</group>
add:
Code:
<group>main</group>
3. Add the code needed to display the new position in category_items.php
For this would need to put it inside of what you call the "main cell" (the cell of item title), so
just before:
Code:
</th> <?php endif; ?> <!-- BOF item title -->

put:
Code:
<?php foreach ($item->positions['main'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?>
4. Then goto backend and clear joomla cache
5. Add the fields you need in the new template position called "main"
6. View in frontend.

NOTE you may have to correct above code since i have not tested it
For other customizations, please read template tutorials here:
extensions.netassopro.com/9-tutorials/02...part-1-the-structure

If you are not a developer, it will not be easy to customize the template , so better stick to standard templates , default, blog, faq and presentation (v1.5.6)

Regards


-- 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
12 years 9 months ago #22325 by tonnick
ok I'll try this solution. thx !

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

More
12 years 9 months ago #22350 by tonnick
I cannot find the code :
</th>
<?php endif; ?>
<!-- BOF item title -->

the table code is the following :


Code:
<table id="flexitable" class="flexitable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="<?php echo $this->category->name; ?>"> <thead> <tr> <th id="flexi_title" scope="col" ><?php echo JText::_( 'FLEXI_ITEMS' ); ?></th> <?php foreach ($columns as $name => $label) : ?> <th id="field_<?php echo $name; ?>" scope="col"><?php echo $label; ?></th> <?php endforeach; ?> <th>Int. link</th> </tr> </thead> <tbody> <?php foreach ($this->items as $item) : ?> <tr class="sectiontableentry"> <!-- BOF item title --> <th scope="row" class="table-titles"> <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>]<?php echo $this->escape($item->title); ?>[/url] <?php else : echo $this->escape($item->title); endif; ?> </th> <!-- BOF item title --> <!-- BOF fields --> <?php foreach ($columns as $name => $label) : ?> <td><?php echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?> </td> <?php endforeach; ?> <!-- EOF fields --> <!-- BOF read more --> <td> <?php if ($this->params->get('show_readmore', 1) && (strlen(trim($item->fulltext)) >= 1) ) : ?> <span class="readmore"> <a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>" class="readon"> <?php if ($item->params->get('readmore')) : echo ' ' . $item->params->get('readmore'); else : echo ' ' . JText::sprintf('FLEXI_READ_MORE', $item->title); endif; ?> </span> <?php endif; ?> </td> <!-- EOF read more --> </tr> <?php endforeach; ?> </tbody> </table>

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

More
12 years 9 months ago #22352 by micker
fait un tour dans la partie tutoriel
flexicontent.org/forum/index.php ... =viewforum
y a un tuto sur la modification du template tableau
a+

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
12 years 9 months ago #22353 by tonnick
ok tu suggeres de virer la boucle generant les colonnes pour les afficher "manuellement" et donc controler mierux l'affichage de mes colonnes... ok je vais tester ca !

merci

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

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