Edit/Create Site View only creates menu option on intial run #321

Closed
opened 2018-07-18 17:20:16 +00:00 by cpaschen · 5 comments
cpaschen commented 2018-07-18 17:20:16 +00:00 (Migrated from github.com)

Steps to reproduce the issue

Create fields as needed
Create Admin view (with fields)
Add Admin view to component but DO NOT check 'Edit/Create Site View
Compile
Go back to Joomla Components view
Open component admin views
Check 'Edit/Create Site View'
Save & Close
Compile the Component

Go to MENUS | MAIN MENU | Add a new menu item
Click the SELECT button for Menu Item Type
Click on the component that you just compiled

Expected result

There should be a Menu Item Type (under the component) with the same name as the admin view that you created

Actual result

This view is not there

System information (as much as possible)

  • OS Name & Version: WAMP
  • MySql Version: 5.5.56
  • Apache Version: 2.4.27
  • PHP Version: 7.1.9
  • Joomla Version: 3.8.8
  • JCB Version: 2.8.4
  • Browser: chrome

Additional comments

If you check the 'Edit/Create Site View' box when you first compile the component, the view appears in the Menu Item Type list, just not if you check that after the first compile with the admin view.

HOWEVER, it appears that the front-end view files are all created as needed - just no menu item type

### Steps to reproduce the issue Create fields as needed Create Admin view (with fields) Add Admin view to component but DO NOT check 'Edit/Create Site View Compile Go back to Joomla Components view Open component admin views Check 'Edit/Create Site View' Save & Close Compile the Component Go to MENUS | MAIN MENU | Add a new menu item Click the SELECT button for Menu Item Type Click on the component that you just compiled ### Expected result There should be a Menu Item Type (under the component) with the same name as the admin view that you created ### Actual result This view is not there ### System information (as much as possible) - OS Name & Version: WAMP - MySql Version: 5.5.56 - Apache Version: 2.4.27 - PHP Version: 7.1.9 - Joomla Version: 3.8.8 - JCB Version: 2.8.4 - Browser: chrome ### Additional comments If you check the 'Edit/Create Site View' box when you first compile the component, the view appears in the Menu Item Type list, just not if you check that after the first compile with the admin view. HOWEVER, it appears that the front-end view files are all created as needed - just no menu item type

To check the (Edit/Create) does not add the view to the menu options. Please watch the hello world tutorial to see how to setup the links to those views, at this time JCB does not have the option to create a menu type for them.

We could add it automatically (or add another switch some where) since it should not be that hard.

To check the (Edit/Create) does not add the view to the menu options. Please watch the hello world tutorial to see how to setup the links to those views, at this time JCB does not have the option to create a menu type for them. We could add it automatically (or add another switch some where) since it should not be that hard.
cpaschen commented 2018-07-20 15:08:10 +00:00 (Migrated from github.com)

ARGH ... I KNEW that it was just something I missed (It's been a couple months since I created a front-end view on anything. Sorry, I just forgot that I actually built those links manually).

However, considering that 'usually' a front-end view is required, it would sure be helpful if the process of adding the dynamic get and site view could somehow be automated so that all that would be necessary would be to actually go in and properly populate the actual view display.

Not sure how hard that might be (to automate dynamic get and site view population) but that would be a huge help and a great new feature.

ARGH ... I KNEW that it was just something I missed (It's been a couple months since I created a front-end view on anything. Sorry, I just forgot that I actually built those links manually). However, considering that 'usually' a front-end view is required, it would sure be helpful if the process of adding the dynamic get and site view could somehow be automated so that all that would be necessary would be to actually go in and properly populate the actual view display. Not sure how hard that might be (to automate dynamic get and site view population) but that would be a huge help and a great new feature.

I am planning to add this (as you can see it is in the TODO list), just not sure when, so I will putt it on the shelf until then.

I am planning to add this (as you can see it is in the TODO list), just not sure when, so I will putt it on the shelf until then.

Just to confirm again, this feature request is to automate the menu link creation for edit views, so that there will be a menu item for the site view, that says (Create Viewname) automatically if the Edit/Create is checked.

Just to confirm again, this feature request is to automate the menu link creation for edit views, so that there will be a menu item for the site view, that says (Create Viewname) automatically if the Edit/Create is checked.

Okay at last, we have added the feature. You will see that when adding a admin_view to the component the same place where you trigger the admin view to be added to the front-end it now has a drop-down to select add+menu. There are three options now none and add <-(the original behavior) and add+menu which is this new feature.

image

@cpaschen please run some test and let me know if this works as expected.

Okay at last, we have added the feature. You will see that when adding a admin_view to the component the same place where you trigger the admin view to be added to the front-end it now has a drop-down to select `add+menu`. There are three options now `none` and `add` <-(the original behavior) and `add+menu` which is this new feature. ![image](https://user-images.githubusercontent.com/5607939/55837826-c09c5f80-5b22-11e9-9125-1c6f0cb81f64.png) @cpaschen please run some test and let me know if this works as expected.
Sign in to join this conversation.
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#321
No description provided.