TOPIC:

Next record 6 years 11 months ago #182133

  • Topic Author
  • mikevid
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 120
  • Thanks: 0
Can you tell me is it possible to add a next record button to the detailed view in content builder? I have the back button set to yes, but it would be nice to provide a NEXT button so the user can forward to the next record in the view.

Also, I would like to display the ID# so that it is also visible on phones. I've checked show ID# under Advanced Options. Can you tell me how to display that column on small screens? Right now only the Order Date column is visible on small screens. I would like both ID# and Order Date.

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

Last edit: Post by mikevid.

Next record 6 years 11 months ago #182177

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Registered
  • Posts: 3564
  • Thanks: 289
Hi,

1) unfortiunately ,it's not possible to use back and next button into the prepare template

2) if you want to show other fields of your list view on mobile phone, then first locate this file : \components\com_contentbuilder\views\list\tmpl\default.php

Around the line 544, you should see this part of the code :
 $hidden = ' class="hidden-phone"';
            foreach($row As $key => $value){
                // filtering out disallowed columns
                if(in_array(str_replace('col','',$key), $this->visible_cols)){
                    if($label_count == 0){
                        $hidden = '';
                    }else{
                        $hidden = ' class="hidden-phone"';
                    }

Delete this part of the code "class="hidden-phone" , then you will be able to see all fields of your list view on the mobile view.

If you want to show just an id, then find this part of the code around the line 432 :
<?php
            if($this->show_id_column){
            ?>
            <td class="hidden-phone">
                <?php
                if(( $view_allowed || $this->own_only )){
                ?>
                <a href="<?php echo $link; ?>"><?php echo $row->colRecord; ?></a>
                <?php
                } else {
                ?>
                <?php echo $row->colRecord; ?>
                <?php
                }
                ?>
            </td>

Also remove class="hidden-phone".

Let us know if that worked for you.

KInd regards
Tihomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

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

Last edit: Post by Tihomir.

Next record 6 years 11 months ago #182216

  • Topic Author
  • mikevid
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 120
  • Thanks: 0
Hi,

I modified the code to show only the ID#. That worked. Can you tell me where to find the display column heading if I display this column? See attached screenshot.
Attachments:

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

Next record 6 years 11 months ago #182221

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Registered
  • Posts: 3564
  • Thanks: 289
Hi,

also locate this file : \components\com_contentbuilder\views\list\tmpl\default.php

Around the line 304 you should see the following part of the code :
 <?php
            if($this->show_id_column){
            ?>
            <<?php echo $th; ?> class="sectiontableheader hidden-phone" width="5">
                <?php echo JHTML::_('grid.sort', htmlentities('COM_CONTENTBUILDER_ID', ENT_QUOTES, 'UTF-8'), 'colRecord', $this->lists['order_Dir'], $this->lists['order'] ); ?>
            </<?php echo $th; ?>>
            <?php
            }


Just delete class "hidden phone" at this code line
 <<?php echo $th; ?> class="sectiontableheader hidden-phone" width="5">

Let us know if it works for you.

Kind regards
Tihomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

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

Next record 6 years 11 months ago #182226

  • Topic Author
  • mikevid
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 120
  • Thanks: 0
That's it! Thank you :)

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

Next record 6 years 11 months ago #182227

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Registered
  • Posts: 3564
  • Thanks: 289
You're welcome :),

let us know if you have further questions.

Kind regards
TIhomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.058 seconds

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!