[resolved]lire la suite invisible

More
12 years 11 months ago #21021 by tonnick
ok this is why I was not clear.

Here is my objective : I want to display a table where for some Items I will be able to enter on details and some other not.

so here is the solution I used :

- disable the "title linkable"
- display as default view using "title - field# - field# - description"
- for some items, I put complete description with readmore in order to see it (Lorem ipsum.....)
- for other ones I just add external link on description, which is shown on my table (link).

and result as already previously posted is here :
www.origin-gi.com/preprod/index . ... 19&lang=en

I need the readmore solution because I disable the title link as I do not need it for each item.
so, if I disable the title link, how could you have acces to full Item description without readmore ?

maybe there is some flexicontent option that I didn't understood.

thx for your help.

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

More
12 years 11 months ago #21023 by ggppdk
-- but i had asked if you have used the templates unaltered,
-- and also you never mentioned that you were modifying the default template,
this template has no read more because it has the title as links

anyway you can copy the readmore code from the blog template and change $items[$i] to $item

it should be something like this:
Code:
<?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; ?>


-- 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 11 months ago #21025 by tonnick
ok my mistake sorry ! I thought you meant modify the source code of default template ! but yes, for sure I modify the category default template view from panel control.

your code works but I'm not sure to place it on right place.

I placed it here :

<!-- BOF fields -->
<?php foreach ($columns as $name => $label) : ?>
<td><?php echo isset($item->positions->{$name}->display) ? $item->positions->{$name}->display : ''; ?>
<?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>


but result is that the read more is diplayed on each column on the line.

I would it only on description cell, do you know if it would be possible ?

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

More
12 years 11 months ago #21026 by ggppdk
It will if you put it inside the loop that displays the cell (one per field)

Place it outside the loop that displays the fields:
Code:
<!-- 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 -->

So just after the above code or just before the above code put a new cell:
<td>
... the code i gave you
</td>


-- 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 11 months ago #21027 by tonnick
ok thx a lot for your huge help !

I will work on template to make it clean and will give feedback.

thx again !

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

More
12 years 9 months ago #22321 by tonnick
Hi

the hack provided works perfectly, but I would have another request...

Is there any way to "isolate" the columns generated in table ?

I mean, I would like to put under main cell the latest 2 columns.

www.origin-gi.com/preprod/index . ... 19&lang=en


I would like to modify head table in order to have :

- Item title (and where can I modify the header ! I cannot find it :( )
- Country
- Product Class
- Product Description
- Ext. Link
- Int. link

but as far as I understand, columns are generated by loop, so how can I modify it ?

thx a lot for your help !

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

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