Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing setting Articles to List in menu item List All Categories #7924

Closed
ghost opened this issue Sep 21, 2015 · 4 comments
Closed

Confusing setting Articles to List in menu item List All Categories #7924

ghost opened this issue Sep 21, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 21, 2015

Page Pagination display in blog layout of subcategories is dependent on a setting in tabulator "List Layouts" (and a bit confusing at all if you don't know it).

Test:

  • Create a main category (level 1) + one subcatecory (level 2)
    To go shure check in subcategory: Tab Options > Alternative Layout > Use Global (or Blog if you have other setting in global options).
  • Create/move/copy 11 or more articles in/to subcatecory. Subcategory must not have an own menu item!
  • Create menu item "List All Categories" pointing to main category.
  • Go to tab "Blog Layout"
    Set options:
  • Leading Articles: 1
  • Intro Articles: 1
  • Columns: 2
  • Links: 1
  • Go to tab "List Layouts"
    Set option:
  • Articles to List: ALL
  • Save. Open menu item in frontend. Click subcategory link. You'll see a blog layout (but not all articles. Just 3.).
  • Without page pagination!
  • Go back to menu item in backend.
  • Go to tab "List Layouts"
    Set option:
  • Articles to List: 5
  • Now there's a page pagination in frontend blog (with 3 articles but not 5).

EDIT-> Looks like there are some deeper dependicies that fail. Depends on the combination of "Articles to List" and values in Tab "Blog Layout" if you see pagination or not.

@ghost ghost changed the title Weird setting Articles to List in menu item List All Categories Confusing setting Articles to List in menu item List All Categories Sep 21, 2015
@ghost
Copy link
Author

ghost commented Sep 21, 2015

OK, I think this is a known "problem" since ever with blogs under List All Categories. We don't have a line

<field name="layout_type" type="hidden" default="blog" />

or similiar in default.xml of this view. So the blog is handled like a list at some places in code. An additional switch "Handle as Blog: Y|N" would be too much

There's an option "Choose a Layout" (category_layout) in global settings but I don't know how to get "layout_type" from XML file of this selected layout in cateory model.

Please feel free to close this issue if you think "Who cares?" ;-)

@pe7er
Copy link
Contributor

pe7er commented May 8, 2016

Thank you for reporting this issue.
However, I am not able to reproduce it on basis of your description: In Menus > mainmenu > create new menu > type: Category Blog,
I can set the "Blog Layout" but there's no tab for "List Layouts" (I can only find that in Content > Categories [Options]).

Your issue and your code suggestion seems valid, but because no one else has reported this behavior, or shown any interest in providing any code to correct it, I am closing this issue at this time. If code is provided (a pull request) it can always be re-examined.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7924.

@zero-24
Copy link
Contributor

zero-24 commented May 8, 2016

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/7924

@zero-24
Copy link
Contributor

zero-24 commented May 8, 2016

Closing to the reasons above by @pe7er


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7924.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants