-
Notifications
You must be signed in to change notification settings - Fork 12
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
added generic listview and itemview/edit form #3
base: master
Are you sure you want to change the base?
Conversation
This should be used to create the list of items and will let the user choose a single view item. Most likely used when the viewname ends with "s"
blank file to protect against directory indexing
generic list layout for listview
This should be used to create the list of items and will let the user choose a single view item. Most likely used when the viewname ends with "s"
no indexes
no indexing
generic list layout for listview
create single item view
no indexing
no indexing
single item form
There are a few problems that I already see with my templates. I'll keep working on them as I build this component. |
I could merge, but I'm not sure I see the value in that, as this pr is missing the logic to:
I might also add, I'm not familiar with list views, and what it would do for the user. Further explanation would be appreciated. Thanks for submitting this pr. |
Hi there. Nice to meet you. I'm sorry that I didn't add the actual logic to parse out the pluralized views. Today is my first time using yeoman and I just wanted to play with it a bit. List views are very common in joomla. The basic idea is an end user goes to a menu item in the back end i.e. "User Manager". They are presented with a list of those items and from there they can sort, filter and perform basic tasks like ordering and activation. For more in depth control of a single item, the end user / admin would click on a single item from that list and be taken to a form from which they can make more granular alterations to that items data. You will see this design pattern a lot in the administrator area of joomla cms, especially while joomla is transitioning over to their new MVC model and still implementing their legacy classes which support J 2.5 |
Oh, I wanted to point out why i am calling them "listviews" class HelloWorldController extends JControllerLegacy class HelloWorldModelHelloWorld extends JModelItemLegacy class HelloWorldModelUpdHelloWorld extends JModelFormLegacy |
@oasisfleeting, now that I understand better, I think this feature would be best suited as another subgenerator: perhaps something like Also, you will need to write unit tests before I merge. |
Thank you. I will definitely test this and work on it some more. |
first time working with yeoman. Like your generator more than the built in component creators in joomla.