TEMA:

contenttemplate popup from list view 11 años 1 mes antes #64947

  • Autor del tema
  • thilo
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 25
  • Gracias recibidas: 0
Hi

Is there any way achiving this - I do need that the detail/entire content is shown in a popup lightbox style

Greetings

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

Re: contenttemplate popup from list view 11 años 1 mes antes #64972

  • Avatar de buddyq
  • buddyq
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 50
  • Gracias recibidas: 8
Are you wondering how to do this from a list view?

If it's from a list view, then you can do an override of one of the custom views. For example, copy:
public_html/components/com_contentbuilder/views/list/tmpl/default.php

to:
/templates/{your_template}/html/com_contentbuilder/list/
** You'll have to create the folders **

Then rename default.php you just copied into your templates folder to "listone.php"

Then in your menuitem, make sure you point your list to Custom List 1.

now you can modify this listone.php inside your templates folder without touching the original!

Add this at the very top of your templates index.php file.
<?php JHTML::_('behavior.modal'); ?>

Then inside listone.php find line: 518. You should see:
<a href="<?php echo $link; ?>"><?php echo $value; ?></a>

and change it to:
<a href="<?php echo $link; ?>" class="modal"><?php echo $value; ?></a>

Go ahead and try that and see what happens? Untested... but thinking this should work.
El siguiente usuario dijo gracias: mindymccain, thilo

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

Última Edición: Post by buddyq.

Re: contenttemplate popup from list view 11 años 1 mes antes #65001

  • Autor del tema
  • thilo
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 25
  • Gracias recibidas: 0
Hey - that's absolutely amazing - never though this could be done so "easily" - wish I could understand a little bit more of the php thing.
Unfortunately work is only half done ... the popup is there but nothing is shown - did I miss something?

You may have a look at clod dot lu / index.php/ft-list

Greetings

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

Re: contenttemplate popup from list view 11 años 1 mes antes #65042

  • Avatar de buddyq
  • buddyq
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 50
  • Gracias recibidas: 8
I checked your page out and it's not blank... I see the content but it also has the template! I forgot about that so you'll need to modify the $link variable to include tmpl=component. Try this...

In your override find:
$link = JRoute::_( 'index.php?option=com_contentbuilder&title='.contentbuilder::stringURLUnicodeSlug($this->slug.'-'.$this->slug2.$label).'&controller=details&id='.$this->form_id.'&record_id='.$row->colRecord.'&Itemid='.JRequest::getInt('Itemid',0).'&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order') );

And at the end add &tmpl=component, like this:
$link = JRoute::_( 'index.php?option=com_contentbuilder&title='.contentbuilder::stringURLUnicodeSlug($this->slug.'-'.$this->slug2.$label).'&controller=details&id='.$this->form_id.'&record_id='.$row->colRecord.'&Itemid='.JRequest::getInt('Itemid',0).'&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order').'&tmpl=component' );

See if that will get rid of the template that surrounds the content in the popup

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

Re: contenttemplate popup from list view 11 años 1 mes antes #65053

  • Autor del tema
  • thilo
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 25
  • Gracias recibidas: 0
Thank you so much - indeed it is working and with your last modification even the template has gone BUT, ah yes there is still a little problem, in Firefox the modal box remains blank : ( - any idea why ????

and then : where could I change the parameters for this modal thing '

Greeting from Luxemburg

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

Re: contenttemplate popup from list view 11 años 1 mes antes #65054

  • Autor del tema
  • thilo
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 25
  • Gracias recibidas: 0
Hello again

I found this page:

www.spiralscripts.co.uk/Joomla-Tips/usin...ows-with-joomla.html

I suppose the parameter question could be answered with the rel attribute - remains the problem why firefox doesn't show nothing ...

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

Moderadores: ForumSupport
Tiempo de carga de la página: 0.062 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!