Proving a "readmore link" in item lists

More
10 years 5 months ago #48338 by mischa13
I like flexicontent very much.
Today my customer asked for thsi special feature called "readmore link" in category lists. :?

How can i provide a column with a link to the detail-view of the articles - below my filters?

I tried it with a new own field "select-list" and sql but… :cry:

See my pictures attached.
Attachments:

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

More
10 years 5 months ago #48349 by ggppdk
Hello

1. you can make the item title "linkable"

2. you can copy the readmore code from the file:
components/com_flexicontent/templates/blog/category_items.php

into the
category_items(_html5).php

of your template

code to add would be:
Code:
<span class="readmore group"> <a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>" class="readon"> <?php echo ' ' . ($item->params->get('readmore') ? $item->params->get('readmore') : JText::sprintf('FLEXI_READ_MORE', $item->title)); ?> </span>


-- 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
10 years 5 months ago #48382 by mischa13
Thank you for the answer.
I edited the template-file "category_items.php"
I hardcoded a new table-cell at the end of the row and used the "readmore-link" code-snippet. ;)
Code:
<td style="text-align:right;"> <a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>" class="readon"> <?php echo ' ' . ($item->params->get('readmore') ? $item->params->get('readmore') : JText::sprintf('FLEXI_READ_MORE', $item->title)); ?> </td>

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

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