Keyword

Conditional item presentation

  • Antonio
  • Antonio's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 11 months ago #76528 by Antonio
Conditional item presentation was created by Antonio
Somewhere in the scripts should have a SELECT that determine the item who will be displayed. I need to "hack" this script to add a condition that selects the item if the contents of a extra field match a variable I set in the index.php (template). In other words...

Imagine a variable $show = Y living in the index.php script and an extra field named "condpublish". Where (and how) can I put a "WHERE" clause to check if "condpublish" = $show and display or not the item according "condpublish" value?

(The "published" field is not enough to my objective that is show an item according the TEMPLATE in use).

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


Powered by Kunena Forum