Jump to content

In-article module with custom WHERE


Matthew Bayliss

Recommended Posts

Just on the off chance you were looking for ideas on how to make jreviews even more awesome, what about a custom listings module that can be inserted into articles BUT that has an independent 'WHERE' query.

 

Currently when I want a listings module in a article (eg: if you have a restaurant review site and have an editorial about thai food where you want to have a module of the 3 most popular thai restaurants at some point within the article) I create a module but don't assign it to any pages, and then use 'modules anywhere' to insert it into the article.

 

However, in big sites this leads to a big number of modules. What would be awesome would be a plug in or something where you could call a module within an article, and apply a customer where filter.

 

So instead of making a module and then using the modules anywhere call:

 

{module mythaifoodmodule}

 

You could use a jreviews call with a custom query such as:

 

{jreviews articlemodules WHERE(jr_myfield LIKE '%*thai*%')}

 

That would be awesome.... Just saying ;)

Link to comment
×
×
  • Create New...