Admin list view not showing items I create #1179

Closed
opened 2024-10-16 16:29:55 +00:00 by ConfidantCommunications · 3 comments

I suspect my issue is just something I overlooked. Tips are appreciated.

Steps to reproduce the issue

Follow the old Hello World tutorial and create a component. Install the component. Create multiple "items" via the admin panel.

Expected result

I see a list of my created items in the admin view.

Actual result

Nothing shows in the admin view list. They have been added to the database table.

System information (as much as possible)

  • OS Name & Version: MacOS 12.5.1
  • MySql Version: libmysql - mysqlnd 8.2.23
  • Apache Version: Apache/2.4.61 (Debian)
  • PHP Version: 8.2.23
  • Joomla Version: 5.1.4
  • JCB Version: Version: 5.0.4-alpha3 (or 5.0.3)
  • Browser: Firefox

Additional comments

I suspect my issue is just something I overlooked. Tips are appreciated. ### Steps to reproduce the issue Follow the old [Hello World tutorial](https://www.youtube.com/watch?v=1KBBtQUxMTc&t=362s) and create a component. Install the component. Create multiple "items" via the admin panel. ### Expected result I see a list of my created items in the admin view. ### Actual result Nothing shows in the admin view list. They have been added to the database table. ### System information (as much as possible) - OS Name & Version: MacOS 12.5.1 - MySql Version: libmysql - mysqlnd 8.2.23 - Apache Version: Apache/2.4.61 (Debian) - PHP Version: 8.2.23 - Joomla Version: 5.1.4 - JCB Version: Version: 5.0.4-alpha3 (or 5.0.3) - Browser: Firefox ### Additional comments

Possibly same issue as
#1138 ?

Possibly same issue as #1138 ?

So I discerned that default_body.php in the admin view was not being populated. It just has a line defining $edit. It has no <?php foreach ($this->items as $i => $item): ?> etc. for generating an editing table. Where do I go to enable that?

So I discerned that default_body.php in the admin view was not being populated. It just has a line defining $edit. It has no `<?php foreach ($this->items as $i => $item): ?>` etc. for generating an editing table. Where do I go to enable that?

Solution: It turns out that the Admin Behaviour was set to Default for these fields. I needed to edit that setting by clicking the first icon (looks like a bullet list) when on the Admin Views page. Alternatively you can edit an Admin View item and then click on the big green button that says "Edit admin fields for this admin view".

What doesn't work: clicking the pencil (edit) icon beside the field name. The setting cannot be found there.

Solution: It turns out that the Admin Behaviour was set to Default for these fields. I needed to edit that setting by clicking the first icon (looks like a bullet list) when on the Admin Views page. Alternatively you can edit an Admin View item and then click on the big green button that says "Edit admin fields for this admin view". What doesn't work: clicking the pencil (edit) icon beside the field name. The setting cannot be found there.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1179
No description provided.