TEMA:

Next record 6 años 3 meses antes #182133

  • Autor del tema
  • mikevid
  • Fuera de línea
  • Navegador Senior
  • Navegador Senior
  • Registered
  • Mensajes: 120
  • Gracias recibidas: 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.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by mikevid.

Next record 6 años 3 meses antes #182177

  • Avatar de Tihomir
  • Tihomir
  • Fuera de línea
  • Usuario está bloqueado
  • Usuario está bloqueado
  • Registered
  • Mensajes: 3564
  • Gracias recibidas: 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 +++

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Tihomir.

Next record 6 años 3 meses antes #182216

  • Autor del tema
  • mikevid
  • Fuera de línea
  • Navegador Senior
  • Navegador Senior
  • Registered
  • Mensajes: 120
  • Gracias recibidas: 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.
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Next record 6 años 3 meses antes #182221

  • Avatar de Tihomir
  • Tihomir
  • Fuera de línea
  • Usuario está bloqueado
  • Usuario está bloqueado
  • Registered
  • Mensajes: 3564
  • Gracias recibidas: 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 +++

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Next record 6 años 3 meses antes #182226

  • Autor del tema
  • mikevid
  • Fuera de línea
  • Navegador Senior
  • Navegador Senior
  • Registered
  • Mensajes: 120
  • Gracias recibidas: 0
That's it! Thank you :)

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Next record 6 años 3 meses antes #182227

  • Avatar de Tihomir
  • Tihomir
  • Fuera de línea
  • Usuario está bloqueado
  • Usuario está bloqueado
  • Registered
  • Mensajes: 3564
  • Gracias recibidas: 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 +++

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
  • 2
Moderadores: ForumSupport
Tiempo de carga de la página: 0.064 segundos

Live Support Chat Opened!

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