233 Posts
pepperstreet
10 years ago
7
Topic
Hello Seblodders ;-)

Question/Idea:
Just curious how to create an Auto-Menu module of Categories incl. their articles. In other words, a sort of "navigation tree" module. Preferribly with 1 seblod module and a respective list template. The first result could be a UL/LI list, that is uncollapsed on page load. A second variant is to have an accordion type menu, that reveals the article titles/items on click on the category name. But how to output and generate an article list grouped by its categories.

I doubt, that it is possible by simple backend configuration and setting parameters etc.
So, any valuable thoughts and suggestions are much appreciated.

Purpose & Benefit:
Less struggling with J! Backend and tedious manual MenuItem creation. The end-user should concentrate on content creation.

Example menu structure & module display!:

Category 1 (CatTitle could be simple Text; Accordion-trigger; Link to category list; Link to Cat-description)
-- Article1 (Link to article full view)
-- Article2
-- Article3
-- ...
Category 2
-- Article21
-- Article22
-- ...
Category 3
-- Article31
-- Article32
-- ...

Thanks in advance!


PS: Maybe I am thinking too complicated… and there is a much simpler way too deal with the J! category tree… and display the included Seblod items?! Since Seblod does not come with "typical" modules for that purpose, my first thought was a list template. Please, correct me if I am wrong. Any other ideas are also appreciated.

EDIT: I noticed, that it is also possible to use J! core module "Articles Category". As far as you don´t need extra fields. For MENU usage it gives category and article titles. AND also Category grouping! Which is nice, but it would need an override to output Category name only once, not for every article... The article's links seem to be the same as in Seblod, which is also very cool. But the link to a category and all Seblod articles is not possible (obviously). This is the domain of the Seblod module + list template.


Get a VIP membership
693 Posts
rpoy
10 years ago
1
Level 1
Hey pepperstreet!

You could almost accomplish this using a Search List. Each Category could be its own search type. On the Article Title, you could set the link typography to the view which would go to the article. Would that work?

Randy


233 Posts
pepperstreet
10 years ago
0
Level 2
Hello Randy, to get a list for 1 category or even multiple categories seems to be no problem. Also the article links are no big deal.
I forgot to mention, that each category might be a different content type with certain fields.

What do you mean by:
...Each Category could be its own search type
Do you mean multiple Seblod modules. 1 article list per category.

But how to get a UL/LI list that is "grouped" by categories. For the beginning the categories names can be a text separator. It is just for showing the category assignment and hierarchy.

If the name would be a trigger for an optional accordion effect… it can't have a real link. Maybe if category name is no trigger, than it would make sense to have a link to a "pre-filtered" list for that specific category.

233 Posts
pepperstreet
10 years ago
0
Level 1
Auto-Menu related questions:
1.) How to allow custom Ordering of Articles on frontend submission and edit?
2.) Keep backend Ordering of Categories.

Regarding 1.) Article ordering in SEB_LIST template. List views ordering seems to have ASC/DESC per field. Fortunately the template configuration options allow to use the usual standards: e.g. Ordering. So, it seems I can use the default backend order. Which is a start…
but how to allow to change this order in frontend? I see two possible solutions with an extra "weight" field:

A) alter the J! core default order information. I guess this is an extra #, but how to access and alter it? Info is not in core article fields, right?
B) Create and store my own "weight" number field. But there is no Seblod integer field type. Maybe Select-Numeric is an alternative. Then choose this custom field for "Ordering".
693 Posts
rpoy
10 years ago
3
Level 1
Hey pepperstreet,

I'm sorry for not quite understanding what you are trying to accomplish do you have a real world example? With a search type you can select a field in which you want it ordered by. But maybe you are really after the Select Dynamic Cascade... Have you looked at that?

Check out these:
list articles video
Creating Custom Search
Select Dynamic Cascade

Hope that helps,

Randy

233 Posts
pepperstreet
10 years ago
0
Level 2
NP! I am just playing in theory, and did some quick and dirty Seblod tests. I edited my intial post with the displayed "menu structure". Also added some experiences with a J! core module as an alternative. Which has 1 or 2 benefits, but also shortcomings... in regards of linking.

The whole purpose & requirements in a summery:
  • create a module with automatic "menu-items" for new articles
  • focus on frontend usage! No fiddling with J! backend and Menu-Manager
  • drawback: requires a frontend method for manual ordering of the menu-items
  • to solve: category grouping, display category title only once… as separator. (requires a custum list UL/LI template)
233 Posts
pepperstreet
10 years ago
1
Level 2
BTW, i found an old Seblod1 forum topic ;-)
"Bes" and "Saba" mention a special field type called "Joomla Menu". It did create a J! menu-item in frontend form. Any chance to see this field type in Seblod3 ?
Although, this is not an auto-menu based on categories items, but also a very good alternative. No matter if it is a "manual" task. The benefit is it solves the ordering problem.
233 Posts
pepperstreet
9 years ago
0
Level 3
BTW, I have added a related tracker item.

http://www.seblod.com/resources/tracker/12087
Get a Book for SEBLOD