[resolved]lire la suite invisible

More
14 years 2 months ago - 14 years 1 week ago #21001 by tonnick
Hello !

Il m'est impossible de faire apparaitre le bouton lire la suite en affichage par defaut :/

J'utilise le template par defaut de felxicontent, la derniere version et j'ai bien activé "lire la suite" dans la categorie contenant l'article. manquerait-il encore qq chose ?

J'ai vu qu'il y avait des modifs a faire sur certains fichiers :
plugins/content/pagebreak.php et plugins/content/uberpagebreak.php

Je n'ai pas le second. est ce que le pb peut venir de la ?

le pb en live : www.origin-gi.com/preprod/index . ... 19&lang=en

toute aide sera la bienvenue ! merci à vous ! (super composant, mis a part ce petit pb, d'ailleurs ;) )
Last edit: 14 years 1 week ago by tonnick.

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

More
14 years 2 months ago #21002 by ggppdk
Which FLEXIcontent version you have?

Also in all FLEXIcontent versions the read-more will not be displayed unless the item contains a read-more, and thus it is split into intro-text and full-text


-- 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 review. Thanks!

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

More
14 years 2 months ago #21012 by tonnick
version : FLEXIcontent version 1.5.4 stable (r558)
and yes I put "read more" code in my description article after second word but not displayed in category :

Lorem ipsum
<hr id="system-readmore" />
dolor sit amet, consectetur adipiscing elit. Curabitur ...

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

More
14 years 2 months ago #21016 by ggppdk
The read more for categories is:
-- set in Global parameters
-- then it is overrided by category parameters

The readmore will appear if there is no "blank characters" after the readmore ,
(i see that you have such characters)

Is it all articles or just one ???

If it all items of category then :
-- maybe your flexicontent template has been altered
-- maybe you have not setup the category to display it

Go inside your category_items.php of the template you use and do this, just before:
<?php if ($this->params->get('show_readmore', 1) && (strlen(trim($items[$i]->fulltext)) >= 1) ) : ?>
put:
Code:
<?php echo "Read more value is ".$this->params->get('show_readmore', 1). " <br />"; ?> <?php echo "Item has text after read more ". (strlen(trim($items[$i]->fulltext)) >= 1) . " <br />"; ?>


If it is one item
-- maybe you have an item with similar title
-- maybe some plugin is replacing the text of the article (e.g. joomfish test by disabling the jfrouter and jfdatabase plugins)


Also you could backup and try installing v1.5.6 RC1a:
code.google.com/p/flexicontent/downloads/list


-- 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 review. Thanks!

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

More
14 years 2 months ago #21018 by tonnick
please find the following answers to your questions :

The read more for categories is:
-- set in Global parameters >> already done
-- then it is overrided by category parameters >> done too

The readmore will appear if there is no "blank characters" after the readmore ,
(i see that you have such characters)

>> As you can see in text I paste from sourcecode of article, there is no blank character after the readmore


Is it all articles or just one ??? ALL

If it all items of category then :
-- maybe your flexicontent template has been altered >> this is the original one and I didn't change it

-- maybe you have not setup the category to display it
>> as previsouly said, yes it is

Go inside your category_items.php of the template you use and do this, just before:
<?php if ($this->params->get('show_readmore', 1) && (strlen(trim($items[$i]->fulltext)) >= 1) ) : ?>

if you speak about /components/com_flexicontent/templates/default/category_items.php, there is no such code.

is the version you suggest contain this code as I'm using the FLEXIcontent version 1.5.4 stable (r558) ?


put:

Code: Select all
<?php echo "Read more value is ".$this->params->get('show_readmore', 1). " <br />"; ?>
<?php echo "Item has text after read more ". (strlen(trim($items[$i]->fulltext)) >= 1) . " <br />"; ?>


If it is one item
-- maybe you have an item with similar title
-- maybe some plugin is replacing the text of the article (e.g. joomfish test by disabling the jfrouter and jfdatabase plugins)


Also you could backup and try installing v1.5.6 RC1a:
code.google.com/p/flexicontent/downloads/list

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

More
14 years 2 months ago #21019 by ggppdk
The code you about read more exists in the category_items of the blog template but not in the default template, there we just have links, which template are you using?


-- 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 review. Thanks!

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

More
14 years 2 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
14 years 2 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 review. Thanks!

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

More
14 years 2 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
14 years 2 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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
Save