TOPIC:

filter of a menu items 8 months 6 days ago #253149

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 116
  • Thanks: 0
Hello

I have the following code that imports the table id field from the remesas_05 table, with the seleccion = Yes.

Now what I want is to apply this code not in a form but in filter of a menu items (List View), in the field "Remesa"


Code:

<?php $db = JFactory::getDbo(); $db->setQuery("Select max(id_remesa) From #__remesas_05 Where seleccion = 'Si'"); return $db->loadResult();?>


I have a code in the "username" filter and it works fine

$value = JFactory::getUser()->get('username', '');


Saludos

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

filter of a menu items 8 months 6 days ago #253161

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6998
  • Karma: 3
  • Thanks: 499
Hi,

something like this:
<?php $db = JFactory::getDbo();
 $db->setQuery("Select max(id_remesa) From #__remesas_05
 Where seleccion = 'Si'"); 
$value = $db->loadResult();?>

Regards,
Tihana

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

filter of a menu items 8 months 6 days ago #253174

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 116
  • Thanks: 0
Hello

This code does not work:

Hello

This code does not work:

<?php $db = JFactory::getDbo();
$db->setQuery("Select max(id_remesa) From #__remesas_05
Where seleccion = 'Si'");
$value = $db->loadResult();?>

In the item menu filters, is it possible to put code in php?

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

filter of a menu items 8 months 6 days ago #253175

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6998
  • Karma: 3
  • Thanks: 499
Hi,

oh sorry, my fault, I havent' read it well (I thought that you need it for list view), sorry again.

Also, for filter you can't use php.
Here is explained how to use filter settings:
crosstec.org/en/support/online-documenta...r-joomla-%C2%AE.html

Regards,
Tihana

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.047 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

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

Special Offer

Summer 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!