10 years ago
Topic
Bonjour,

Je me permets de vous solliciter, car je n'ai pas trouver d'info pour réaliser mon besoin.
Sur ma Home page, je cherche à créer une liste d'article (SEBLOD) provenant d'une catégorie spécifique.
Un peu comme le ferait un module qui affiche une liste de derniers articles d'une catégorie.

Je ne recherche pas spécialement un module, insérer directement du PHP m'irait très bien.

Pour être précis, je cherche à créer une liste de tous les d'articles provenant d'une seule catégorie précise.
Et en affichant 3 champs spécifiques.

Si vous avez un lien, un tuto, pour m'expliquer comment réaliser ces quelques lignes en PHP.

Merci d'avance :)

***

Hello,

I'm come here, because I didn't find any informations to do my function.
On my home page, I try to create a list of articles (SEBLOD) from a specific category.
Like a module that displays a list of recent items form a category.

I don't look for a module, inserted directly PHP on my template will be very well.

To be precise, I'm trying to create a list of all the articles from one specific category.
And displaying just three specific fields.

If you have a link, a tutorial, to explain how to make these few lines in PHP.

Thank you  :)
Get a Book for SEBLOD
10 years ago
0
Level 1
Par exemple, en Joomla "classique", j'utilise :

<?php
$db = JFactory::getDbo();     
$query = $db->getQuery(true);     
$query->select('*')
 ->from('#__content')
 ->where('catid = 13');    
$db->setQuery($query);     
$rows = $db->loadObjectList();

foreach ( $rows as $row ) {
    echo $row->introtext;
} ?>
4229 Posts
Kadministrator
10 years ago
2
Level 1
Hi,


in seblod you don't need to code anything,  you just need to create category search&list type and put fields that you would like to show in there.
10 years ago
1
Level 2
Hi Octopoos,

Hum... OK thanks for this clue !
So, I create a new "search & List type".

I will try :)


4229 Posts
Kadministrator
10 years ago
0
Level 3
Hi,

two links that might help you
http://www.seblod.com/resources/videos/displaying-a-list-of-joomla-categories-blog - this is very lose to what you want, but you need to create new (or modify old) search type as existing one displays categories in blog layout, while you want list layout.

here is enother video on how to display such list in a module http://www.seblod.com/resources/videos/displaying-a-list-with-seblod-list-module


10 years ago
1
Level 1
Few days later... I don't find the solution :(

I create a new "Search And List Type"

I create a module to show List- Seblod : ARTICLE

The module list all my items.
I tried many ways, and I did'nt found how to target just one category.

Like...
In CCK (dynamic list) : "Where" : published=1 AND artcat_id=13
In option 5 conditional steps : Visible and Category ID = 13

Where can i target a specific category ?


693 Posts
rpoy
10 years ago
0
Level 2
Hi psykopathik,

The videos that Klass suggested are good!

But there is no need to change the values in the CCK (Select - Dynamic).  In the Search Form section of the List & Search type, you need to have 3 fields: CCK, Article Category ID, and a Button Search.

Select option 2, and then in the Article Category Id set the value you want by clicking on the << button.

Then, in the List Option, add the fields in which you want to display.

Last thing you need to do is create a menu item with your List Type.


Hope that helps.

Randy
10 years ago
1
Level 1
Yeah great !

Option 2 is THE solution :)
Thank you very much to both of you for your help !

But... WoW, it generates lots of DIV...
693 Posts
rpoy
10 years ago
0
Level 2
Hi psykopathik,

Its a little more work, but you can have a look at the SD Simple Simon template.

Randy
10 years ago
0
Level 1
Hi,

1. Create my own template from "BLOG" to clean all div, and create <UL>
2. Create a template for items
3. Override Module Search List 

And it's OK :)
10 years ago
0
Level 1
Hum... i just seeing a bug :/

I filter Article Category ID = 13
OK... but... it also includes all my articles form category id 113 and 213

Do you know why ?

10 years ago
0
Level 1
Is this a known bug ?
10 years ago
3
Level 1
So... 2 problems :

When I filter by Article Caterogy ID = 13
It's show all my article form Category ID 113, but also 113, 213... why ?

And, how can I do to filter with many categories ?
For exemple, i need a list from 5 categories.
I tryed with "13,14,15" and "13 14 15" and "13;14;15"... no working... is it possible to do this ?

10 years ago
2
Level 2
When I filter by Article Caterogy ID = 13
It's show all my article form Category ID 113, but also 113, 213... why ?
OK, i found... use "exact" instead of "permissif" (in french)... :)


But i not yet find for multi-categories filter
52 Posts
melihtas
10 years ago
1
Level 3
Hi psykopathik,

Use "Any words exact" instead of "exact" for match. Use a comma and space as seperator (13, 14, 15)
10 years ago
0
Level 4
Thnk you very much for your help !!!
Get a VIP membership