add button similar readmore

More
6 years 1 day ago #73022 by aminweb
hi,
I want add button after specify field , when click on go to item page(similar read more button)
so I add below code in " Every value suffix"
Code:
<a class="btn btn-green opacity-7 pull-right" rel="nofollow" style="float: left;" href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>"><i class="fa fa-angle-left"></i></a>
but dont worked.
please help me
so thanks

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

More
6 years 1 day ago #73028 by micker
Replied by micker on topic add button similar readmore
no you can't use php in suffix value
please add this in your template

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
6 years 1 day ago - 6 years 1 day ago #73032 by aminweb
Replied by aminweb on topic add button similar readmore
I add this code in Category_items.php in line 246:
Code:
<!-- BOF item fields --> <?php foreach ($columns as $name => $label) : ?> <td><?php echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?> <a class="btn btn-success opacity-7 pull-right" rel="nofollow" style="float: left;" href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>"><i class="fa fa-angle-left"></i></a> </td> <?php endforeach; ?> <!-- EOF item fields -->
now add button and worked fine.but one problem
Now insert button for each column :( I want only show this button latest column.
how do it? please help
thanks
Last edit: 6 years 1 day ago by aminweb.

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

More
6 years 1 day ago #73034 by aminweb
Replied by aminweb on topic add button similar readmore
Solved!
I add this code, worked fine :
Code:
<!-- BOF item fields --> <?php $last_key = end(array_keys($columns)); foreach ($columns as $name => $label) : ?> <td><?php if ($name == $last_key) { echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?> <a class="btn btn-success opacity-7 pull-right" rel="nofollow" style="float: left;" href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>"><i class="fa fa-angle-left"></i></a> <?php } else { echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?> <?php } ?> </td> <?php endforeach; ?> <!-- EOF item fields -->
please colsed.
thanks

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

More
6 years 6 hours ago #73047 by micker
Replied by micker on topic add button similar readmore
cool think to use this code in your custom template, don't modify core template
to mark topic solved edit you first post and chose checked image
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
6 years 5 hours ago #73049 by aminweb
Replied by aminweb on topic add button similar readmore

don't modify core template

why?
how to override template?

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

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