Octopoos / SEBLOD

Build high-end websites with SEBLOD®, a CCK for Joomla!
https://www.seblod.com
GNU General Public License v2.0
129 stars 54 forks source link

List module content view routing (JOOMLA 4) #695

Closed lionated88 closed 1 year ago

lionated88 commented 1 year ago

Fisrst of all I want to tell you how wonderful your product is, I don't know how I missed your extension in he past 10 years, but I finally discovered.

I had an issue with the list module, which led me to get familiar even more with your product. Basically, I got to the point, where I've set up one search/list view for my custom content type (products), I figured out, that trough the menu items I can configure it to all of my required filtered content pages. My issue I ran into was when I set up a list module for the home page, and the links of the content included the Joomla category path of the content, and the breadcrumb from the content page led to the native Joomla category page. I figured that I can set up a menu item for the links as root, but I didn't want to do that, because I have several level 2 and 3 segment pages, and having set the default SEBLOD routing, and using canonicals for the content pages, I have a perfectly navigatable site, and using a root menu item for the content view links would have ruined that, as then the level 2 and 3 segment pages would have lost their breadcrumb navigation, so that didn't work.

My current solution was, that in the database, I changed the menu item alias of he root Joomla category I used for the contents to the same alias as the search/list view menu term that I use as the starting point for the content. This might not a good idea, as Joomla doesn't allow to save menu items with identical alias/s, but it seems it works for now in my situation just fine, as I don't need the native category page, and luckily having the same alias in the URL loads the firstly created menu item, which is what I set up for SEBLOD.

But what I wanted to accomplish is to have a option field in the module manager which allows you to set a root menu item for the content on the module level. Would that be the best solution, or actually there is an other workaround for this situation that I missed somehow? I tried to set up hidden search field which live value can be se in the module, and connect that to the item view fields that have content view links set up, but I couldn't make that work.

Please let me know, what would you do, to make sure that from a module list view that content view links having the desired routing independently from the global or admin level form settings. Thank you

lionated88 commented 1 year ago

The above mention "solution" doesnt work anymore, which seem to have some sort of connection with your current update, which in terms of security seem to be good because now, when I would try to change the menu item alias in the database, it doesnt allow as it matches it with an already existing one.

I'll try to add the functinality to the module to choose a menu item for sef routing. If it will work i share. Thanks

lionated88 commented 1 year ago

Ok, I copied the search/list form instead, I still think would be cleaner without having a duplicated search/list view when the only reason to create it is to set the root menu for content view links for the modules, but I guess it's pretty awesome anyway.