Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch will allow custom paths for bundle administration page and entites pages.
Comment | File | Size | Author |
---|---|---|---|
#9 | fixes_to_apply.patch | 8.91 KB | webadpro |
#8 | fix-bugs-6.patch | 8.91 KB | webadpro |
#7 | fix-bugs-5.patch | 8.38 KB | webadpro |
#6 | fix-bugs-4.patch | 6.27 KB | webadpro |
#5 | fix-bugs-3.patch | 4.36 KB | webadpro |
Comments
Comment #1
webadpro CreditAttribution: webadpro commentedNew patch with some fixes and upgrade path.
Comment #2
webadpro CreditAttribution: webadpro commentedApply this new patch on the path branch.
Comment #3
webadpro CreditAttribution: webadpro commentedFix minor bugs which PHP 5.3 doesn't like.
Comment #4
webadpro CreditAttribution: webadpro commentedFixed a couple more things.
Comment #5
webadpro CreditAttribution: webadpro commentedNew Patch.
Comment #6
webadpro CreditAttribution: webadpro commentedComment #7
webadpro CreditAttribution: webadpro commentedComment #8
webadpro CreditAttribution: webadpro commentedComment #9
webadpro CreditAttribution: webadpro commentedPlease Commit this patch and ignore the others.
Comment #10
dgastudio CreditAttribution: dgastudio commented$ curl http://drupal.org/files/fixes_to_apply.patch | git apply
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9127 100 9127 0 0 14654 0 --:--:-- --:--:-- --:--:-- 19585
:88: trailing whitespace.
:143: trailing whitespace.
$edit_path = str_replace('%', $id, $crud_info['edit']['path']);
:145: trailing whitespace.
'title' => t('edit'),
:146: trailing whitespace.
'href' => $edit_path,
:158: trailing whitespace.
'title' => t('delete'),
error: patch failed: eck.bundle.inc:244
error: eck.bundle.inc: patch does not apply
error: patch failed: eck.entity.inc:152
error: eck.entity.inc: patch does not apply
Comment #11
webadpro CreditAttribution: webadpro commentedSorry but this patch doesn't work with the 7.x branch. Only with Change_path branch.
Comment #12
fmizzell CreditAttribution: fmizzell commentedthere has been no changes to the 7.x branch since the creation of the change_path branch, so it should be safe to change to that branch and apply the patch until I get some time to merge things.
Comment #13
webadpro CreditAttribution: webadpro commentedAlso, this patch http://drupal.org/node/1824772#comment-6728086 should get added also. It would be a great addition.
Comment #14
fmizzell CreditAttribution: fmizzell commented@webadpro I know that you probably been one of the few that have actually used this patch extensively, how useful have you found being able to change the page of every entity action (delete, view, edit)? It seems to me like most of the time you only care to move the list and possibly the view, but delete and edit will go with it. Your input is greatly appreciated.
Comment #15
webadpro CreditAttribution: webadpro commentedHi,
I've used this quite often including delete, view and edit paths.
Having a custom path:
view : user/%/notes
edit: user/%/notes/%/edit <- this makes a lot more sense then entity_type/bundle/%/edit.
Same thing with Edit. Although I just noticed quite a lot of commits has been done to the latest dev, so you might be having a hard time merging the patch now.
But I can't wait to see this actually implemented into ECK.
Comment #16
fmizzell CreditAttribution: fmizzell commentedthe change_paths branch now has the last patch, plus it has been merged with the last commits from 7.x-2.x
Comment #17
fmizzell CreditAttribution: fmizzell commentedOne of the things that I enjoy about using eck is that it is pretty straight forward to navigate through all the information. This new code kind of breaks the pattern of navigation. Currently, every time you click on an entity type, or bundle name, you end up in a list, but with the patch clicking on a bundle name makes you end in the edit form, instead of the list of entities of that bundle. I understand why this was done, now that we can move that whole section around (the bundle management section), it seems more appropriate to end up in a place were you are dealing with bundles and not with entities. I want to attempt to fix that, in a way that moving things around works as designed in the patch, but that when nothing is moved, the navigation experience stays as is.
The other thing that I would like to change before committing this work is the db update. The db update has already been written, and from my test it works well, but I think that we can eliminate the need for that db update, simply by putting a little logic that uses default paths if no custom paths have been set. In my opinion if a db update is not absolutely necessary, it is better not to have one.
I will be reporting as I get this work done, feel free to point out any objections on the proposed changes.
Comment #18
webadpro CreditAttribution: webadpro commentedHi,
Well rather than a db update, use the same code and simply do an isset for the data, if its not found simply use the function provided.
Feel free to make any changes to the code.
My 2 cents.
Comment #19
fmizzell CreditAttribution: fmizzell commented@webadpro thanks, that is exactly what I was thinking
Comment #20
webadpro CreditAttribution: webadpro commentedSounds Great.
Comment #21
webadpro CreditAttribution: webadpro commentedAlso, I think adding in a way to remove the view path would be something useful sometimes.
Edit path is fine, but sometimes we do not want to have any view path at all.
Comment #22
fmizzell CreditAttribution: fmizzell commentedOk, I just got the two things mentioned done, they are in the branch, but I noticed that the edit and delete paths were not being respected, they just followed the view path around. I did not mess with the code that creates those paths, so I am not sure what the original behaviour, or what the intended behaviour is supposed to be.
@webadpro: if you have a few minutes to review, I will appreciate it
Comment #23
webadpro CreditAttribution: webadpro commented@fmizzell, Its not a problem, I can test the new changes and I will post updates. :)
Comment #24
webadpro CreditAttribution: webadpro commented@fmizzell, Where are we at with these patches?
Comment #25
fmizzell CreditAttribution: fmizzell commentedSorry, I have been trying to push 3.x out the door, but I have been thinking about this issue a lot. I am not sure that I like the current solution, maybe we should get on irc and talk about it :)
Comment #26
fmizzell CreditAttribution: fmizzell commentedComment #27
fmizzell CreditAttribution: fmizzell commentedComment #28
BarwonHack CreditAttribution: BarwonHack commentedSupporting this request: To create custom add and edit paths per entity will be very useful.
Cheering on first formal 3.x release!
Comment #29
legolasboClosing this issue because 7.x-3.x is unsupported. See #2495527: 3.x Roadmap: Unsupported, do NOT use
Please reopen the issue and move it to the 7.x-2.x branch if it is still/also relevant in 7.x-2.x.