site view model is generated as admin Model #597
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#597
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some strange reason the dynamic getitem used for a site view doesn't return $this->item data.
I checked the model and the site view model is the same as the admin model for this view which can't be right
class
extends JModelAdmin
should be
extends JModelItem
how can this happen?
compared it to the demo component, looks similar in terms of settings. What am i missing?
To specify what i did so far:
Backend works fine
saved all, compiled teh componet.
Front-end list view works fine, item view not so much, all data is empty.
Than I checked the model and it apperead that the item model has the extends JModelAdmin instead of the extends JModelItem.
Any push into the right direction would be appreciated.
There is an issue in JCB, which you should check to see if this is what happened.
This is the issue:
When you in the admin area have an admin_view =
hello
you should not create a site view with the namehello
since should you add this admin view to the front of the website by checking this box to Add:This will cause a conflict since JCB will not check for this, and and will be trying to both add the admin view to the front of the website as well as building the site view with the same name.
I clearly need to improve this, but this is usually the cause of these kind of errors.
Ok i have 2 options than, rename the single item frontend name or leave this field to NONE at least on first compilation. Therefor in this case i make a new admin view and compile it again. I made a test with that and works also.
Thanks for the quick respons.