Keyword

Table des matières complète

  • LHUILLIER
  • LHUILLIER's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #172860 by LHUILLIER
Table des matières complète was created by LHUILLIER
Bonjour la communauté,

Je cherche depuis plusieurs semains comment faire ceci. Je gère un site avec K2 que j'apprécie beaucoup, mais je me heurte à un soucis. A la manière d'un livre, j'aimerais que ma premiere page (ou une autre là n'est pas le problème) m'affiche une table des matières avec chaque article et son titre, (et si possible, mais c'est la serise sur le gâteau), la catégorie. Que la présentation soit catégorielle ou thématique, peu m'importe mais comment pourrais-je arriver à mes fins?
Merci

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

More
4 years 8 months ago #172861 by Charles
Replied by Charles on topic Table des matières complète
Bonjour,

Tu peux y arriver de plusieurs manières.

1 - Tu peux créé une page qui et lui assigner un module qui affichera les différents articles d'une catégorie.

Il y a le mod_k2_content (module officiel de K2) qui peut faire ça.

2 - Si tes menus n'utilisent pas les liens des catégories de K2, tu peux directement faire un override de la présentation des catégories de K2. Cela demande juste un peu de connaissance en HTML et PHP.

Voici le lien officiel de K2 sur comment faire un override getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

  • LHUILLIER
  • LHUILLIER's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #172863 by LHUILLIER
Replied by LHUILLIER on topic Table des matières complète
Merci beaucoup pour ces deux solutions. Le PHP et HTML ca c'est pas un probleme (je trouve meme presque plus simple parfois que joomla :)
Pour ta premiere solution, je l'avais fait mais je n'ai que les articles d'une categorie. J'aurai voulu TOUS les articles, avec éventuellement une LIMIT dans le SQL. une table des matières quoi :)
Pour ta deuxieme solution, l'ensemble de menus pointent vers des categories K2
Sinon je vais intégrer Sourcerer mais avant cette "bidouille" j'aurais voulu savoir si y'avait pas une solution "propre"

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

More
4 years 8 months ago #172864 by Charles
Replied by Charles on topic Table des matières complète
Chaque page dans joomla possède un ID spécifique.

Tu peux très bien créer un lien de menu vers ta page et lui assigner ta catégorie principale dans k2.
Ensuite via CSS tu utilises l'id de la page pour afficher ou non les choses différents éléments.

Et tu pourras aussi paramétrer la pagination comme ça.

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

  • LHUILLIER
  • LHUILLIER's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #172865 by LHUILLIER
Replied by LHUILLIER on topic Table des matières complète
SI tu le dis.... A vrai dire, j'ai absolument rien compris.

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

More
4 years 8 months ago #172896 by JoomlaWorks
Replied by JoomlaWorks on topic Table des matières complète
Do you have a visual representation of what you wish to achieve?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • LHUILLIER
  • LHUILLIER's Avatar Topic Author
  • Offline
  • New Member
More
4 years 8 months ago #172904 by LHUILLIER
Replied by LHUILLIER on topic Table des matières complète
Hello,

yes of course. If you look my website (www.sebastien-lhuillier.com/) (in french :) ) you can see a menu. This menu will have new enters in few moment (I say that because I'd like to have an automated Table of contents)
I'd like to have on my fisrt page, a hyperlinked TOC as we can find in books :
Category 1 ......
Category 1.1 ...
Article 1 of category 1.1
Article 2 of category 1.1
Category 1.2 ...
Article 1 of category 1.2
Article 2 of category 1.2
Category 2 ......
Category 2.1 ...
Article 1 of category 2.1
Article 2 of category 2.1
Category 2.2 ...
Article 1 of category 2.2
Article 2 of category 2.2
...
And, of course, each link could be linked to the article,

CATEGORY # : The first level of my menus
CATEGORY #.# : The first level of my menus

Thank you very much in advance

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

More
4 years 8 months ago #172916 by JoomlaWorks
Replied by JoomlaWorks on topic Table des matières complète
This is not currently possible out-of-the-box with K2.

There is an option in K2 Tools to display a tree of categories, but it does not fetch K2 items as well (just the categories).

I recommend you search either the Joomla Extensions Directory under K2 Extensions extensions.joomla.org/category/extension-specific/k2-extensions/ or the K2 Extensions Directory at getk2.org/extend for any tree listing modules for K2 content.

For example there's extensions.joomla.org/extension/categories-treeview-for-k2/ and I'm sure you could contact Mohamed and request the addition of displaying items as well.

This was asked before back in 2013 here: www.joomlaworks.net/forum/k2-en/32270-show-items-in-category-tree-in-k2

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • LHUILLIER
  • LHUILLIER's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #173032 by LHUILLIER
Replied by LHUILLIER on topic Table des matières complète
I have found the module. (sorry, this website is not a priority and since my last post, I had no time for see that). So I have found the module, it works but I have a last question : where can I change the associated CSS ?
Thx

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

More
4 years 7 months ago #173044 by JoomlaWorks
Replied by JoomlaWorks on topic Table des matières complète
You should ask the developer of that module for that :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum