Blog Calendar & ZOO

Support et assistance pour développer des extensions ou pour modifier Joomla! 1.5.x

Moderators: Aidan38, sarki

Forum rules
Règles du forum
Locked
User avatar
Balgas
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Jul 29, 2009 6:35 am

Blog Calendar & ZOO

Post by Balgas » Fri Jul 31, 2009 2:04 pm

Bonjour à ts !!
Bon je suis pas très doué pour expliquer...

J'utilise un composant pour joomla 1.5 qui s'appelle Blog Calendar et qui permet de lié des articles avec un calendrier sur le front end. La classe !
Sauf que mon problème est que je ne créé pas les articles de façon standard mais avec un autre composant qui s'appelle ZOO...
En fait, lorsque l'on veut paramétré Blog Calendar, on défini dans la partie module, la categorie ID et section ID que l'on veut afficher sur le calendrier (on peut laisser vide si on veut mettre tt les articles.
En gros le problème que j'ai est que la categorie ID et section ID de ZOO n'est pas pris en compte, du coup mes articles ne s'affichent pas sur le calendrier.
Quelqu'un serait par hasard quel fichier modifié pour appeler la bonne table ?
Je sèche :(

User avatar
Balgas
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Jul 29, 2009 6:35 am

Re: Blog Calendar & ZOO

Post by Balgas » Mon Aug 03, 2009 5:47 pm

Peut être que cela peut aider mais voici le bout de code que je pense devoir modifier :

Code: Select all

$query = 'SELECT a.id,a.catid,a.sectionid '.
				' FROM #__content AS a'.
				' INNER JOIN #__categories AS cc ON cc.id = a.catid' .
				' INNER JOIN #__sections AS s ON s.id = a.sectionid' .
				' WHERE '. $where . ' AND s.id > 0' .
				($access ? ' AND a.access <= ' .(int) $aid. ' AND cc.access <= ' .(int) $aid. ' AND s.access <= ' .(int) $aid : '').
				' AND s.published = 1' . //this 3 lines: check that the selected articles are published and that the current user can get access to them
				' AND cc.published = 1' .  
				($secid ? $secCondition : '' ). //add the $secCondition if $secid exists
				($catid ? $catCondition : '' ); //add the $catCondition if $catid exists
				
		$db->setQuery($query); //this query is used to get the total number of articles
		
		$total= count($db->loadObjectList()); //the total number of articles
		
		$query ='SELECT a.*, '.
				' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,'.
				' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug,'.
				' s.title as secTitle,'. //this will be used to display the section and category title below the article name
				' cc.title as catTitle,'.
				' auth.name as author'.
				' FROM #__content AS a'.
				' INNER JOIN #__categories AS cc ON cc.id = a.catid' .
				' INNER JOIN #__sections AS s ON s.id = a.sectionid' .
				' INNER JOIN #__users AS auth ON auth.id = a.created_by' .
				' WHERE '. $where . ' AND s.id > 0' .
				($access ? ' AND a.access <= ' .(int) $aid. ' AND cc.access <= ' .(int) $aid. ' AND s.access <= ' .(int) $aid : '').
				' AND s.published = 1' . //this 3 lines: check that the selected articles are published and that the current user can get access to them
				' AND cc.published = 1' .  
				($secid ? $secCondition : '' ). //add the $secCondition if $secid exists
				($catid ? $catCondition : '' ). //add the $catCondition if $catid exists
				' ORDER BY created DESC'; //order by date created descending

p_eppermint
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Oct 27, 2010 7:22 am
Contact:

Re: Blog Calendar & ZOO

Post by p_eppermint » Tue Apr 12, 2011 6:47 am

Ho lo stesso problema. , prova a chiedere agli sviluppatori


Locked

Return to “1.5 - Développement”