A free components from skorp.royy.net

A free components from skorp.royy.net

Download arrow Forum
Joomla
Welcome, Guest
Please Login or Register.    Lost Password?
... exclude a category or section of articles (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: ... exclude a category or section of articles
#552
bloggita (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
... exclude a category or section of articles 1 Year ago Karma: 0  
Hello,
First I want to thank all developers of this fantastic component! Great work!

I have a little problem...
is possible to exclude a category or section of articles from the component?

Many thanks and regards.

bloggita
 
Logged Logged  
  The administrator has disabled public write access.
#557
skorp (Moderator)
Moderator
Posts: 206
graph
User Offline Click here to see the profile of this user
Re:... exclude a category or section of articles 12 Months ago Karma: 6  
Hi!

yes it is possible, but only with some additional code.

open the file rc_joomla_content_plugin.php (administator/components/com_rafcloud/plugins)

Code:


$database->setQuery("SELECT * FROM #__content WHERE state=1");


replace with:
Code:


$database->setQuery("SELECT * FROM #__content WHERE state=1 
AND sectionid NOT IN (0,7,11,44) AND catid NOT IN (0,4,6)"); 
// excluded sections 7,11,44 and categories 4,6



rc_joomla_keywords_plugin.php
Code:

$database->setQuery("SELECT metakey FROM #__content WHERE state=1");

replace with
Code:

$database->setQuery("SELECT metakey FROM #__content WHERE state=1 
AND sectionid NOT IN (0,7,11,44) AND catid NOT IN (0,4,6)");



Skorp
 
Logged Logged  
 
Project site: www.joomla.royy.net
------------------------------------------------------------
"Anyone who has never made a mistake has never tried anything new."
Albert Einstein

  The administrator has disabled public write access.
#560
bloggita (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:... exclude a category or section of articles 11 Months, 3 Weeks ago Karma: 0  
Hi!
Great!! Thanks skorp!


Perfect, I add the code. ^_^

bloggita
 
Logged Logged  
  The administrator has disabled public write access.
#594
michse (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:... exclude a category or section of articles 10 Months ago Karma: 0  
Hi,

I changed the code but still cannot find where to exclude certain categories.
was looking in the component and in the module but cant find it

would be gratefull for a quick solution

cheers

michse
 
Logged Logged  
  The administrator has disabled public write access.
Go to top


Joomla Templates by Joomlashack