Feature Request - Custom Code identifier (id) on edit view #879

Closed
opened 2022-03-25 17:23:46 +00:00 by cpaschen · 2 comments
cpaschen commented 2022-03-25 17:23:46 +00:00 (Migrated from github.com)

When editing a custom code entry (in the Custom Codes edit view), you can see the Component and the File Path, but there is no display of the Custom Code item number/id on the screen.

Occasionally there might be more than one custom code in a certain file, but you can't see which one you are in.
Esp. when you are editing custom code entries it would be helpful to see the ID number, like is possible on the custom code list view.

This is not a huge priority, it would just be a nice, time-saving feature.

When editing a custom code entry (in the Custom Codes edit view), you can see the Component and the File Path, but there is no display of the Custom Code item number/id on the screen. Occasionally there might be more than one custom code in a certain file, but you can't see which one you are in. Esp. when you are editing custom code entries it would be helpful to see the ID number, like is possible on the custom code list view. This is not a huge priority, it would just be a nice, time-saving feature.

It seems like your using lots of custom code [smile]

You should watch this tutorial.... since I do not recommend this feature to be used that often.

What should instead happen is you should explain to us what you thing can be done better and let us improve JCB to catch this option. Yet what I have often seen, even with advance developers is that they don't know JCB has a solution for some thing... my bad for not documenting it and then they reinvent the wheel.

Remember that JCB itself has nearly no RAW IDE custom code. Yes we use custom code, but only GUI custom code, and for those we already have the id's in place.

One more thing, we have found that since the introduction of POWERS to JCB we hardly have any custom code in the new component we are building, its all moved to POWERS. Which is the more correct PHP way of development. Working with interfaces, traits, and classes is much better, cleaner, and easier to maintain. But yes you need to know more PHP...

But okay, I think we can keep your request in mind as we refactor JCB for Joomla 4.

It seems like your using lots of custom code [smile] You should [watch this tutorial](https://www.youtube.com/watch?v=QGMURJI_Mds&list=PLQRGFI8XZ_wuzAQELTUUIDdqKFmLP9lSl&index=12).... since I do not recommend this feature to be used that often. What should instead happen is you should explain to us what you thing can be done better and let us improve JCB to catch this option. Yet what I have often seen, even with advance developers is that they don't know JCB has a solution for some thing... `my bad for not documenting it` and then they reinvent the wheel. Remember that JCB itself has nearly no **RAW IDE** custom code. Yes we use custom code, but only **GUI** custom code, and for those we already have the id's in place. One more thing, we have found that since the introduction of POWERS to JCB we hardly have any custom code in the new component we are building, its all moved to POWERS. Which is the more correct PHP way of development. Working with interfaces, traits, and classes is much better, cleaner, and easier to maintain. But yes you need to know more PHP... But okay, I think we can keep your request in mind as we refactor JCB for Joomla 4.
cpaschen commented 2022-04-16 00:04:51 +00:00 (Migrated from github.com)

Well, actually, the reason for needing the id is so that I can see which custom code I'm in so that I can move the custom code to gui (and some day powers). I've used custom code when I've just needed to make something work and there wasn't an existing solution. But many of those issues have been added and there's a gui way to do it. I'm just trying to update my components.
But once I get into the custom code screen I can't remember which code I was working on :-(
Again this is a really LOW priority, and ONLY if it would be an easy fix.

Well, actually, the reason for needing the id is so that I can see which custom code I'm in so that I can move the custom code to gui (and some day powers). I've used custom code when I've just needed to make something work and there wasn't an existing solution. But many of those issues have been added and there's a gui way to do it. I'm just trying to update my components. But once I get into the custom code screen I can't remember which code I was working on :-( Again this is a really LOW priority, and ONLY if it would be an easy fix.
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#879
No description provided.