I was trying to create local menu tasks structure similar to this:
------- NODE ------------------------ USER ------------------------ TAXONOMY -----------
- PAGE | ARTICLE ---------- ROLE 1 | ROLE 2 ---------- VOCAB 1 | VOCAB 2
I am able to create Views for the primary tasks(node, user, taxonomy) and I am able to create seocndary tasks(page|node, role1|role2, vocab1|vocab2) BUT when I click on the primary task I no longer see the other primary tasks. If I click on NODE I don't see USER and TAXONOMY tasks but I see only PAGE and ARTICLE as primary tasks. So secondary tasks became primary tasks.
Comments
Comment #1
dawehnerTagging. Thank you for reporting that issue! This is indeed kind of a missing feature.
Comment #2
Anonymous (not verified) commentedI wanted to add non-views-generated local tasks to a Views page. I used the 'name' from route table in DB as 'base_route' for my local tasks but they still won't appear. I think this can be the same Views issue.
Comment #3
tim.plunkettAhem.
Comment #4
Anonymous (not verified) commentedI even tried the value by which the local tasks are keyed in 'local_task_plugins:en' cache but still no success.
Comment #5
dawehnerWe have to rethink whether we maybe should change the UI to better fit with the existing local task architecture. In that case adding a subtask would be also easier to achieve.
Comment #6
Anonymous (not verified) commentedPersonally I don't find the current UI that confusing. Yes, maybe the first time I wasn't sure if I'm doing it right(due to this issue) but now I think it's intuitive. You either create a local task or you create a default local taks and then you just define the "parent's" label and that's it.
Comment #7
manuel.adanThis issue seems to be outdated. #2804195: Views does not create parent local task for a default local task may be related.
Comment #8
casey commentedThis issue is still relevant. It's still not possible to create a view with a secondary level local task. The mentioned issue only is about default local tasks and also about automatically creating the parent task.
Comment #17
liquidcms commentedI have a views page which i am trying to add as a secondary task to the Admin Content page. I am pretty sure you can't do this with the Views UI only. But even using code I can't seem to find the solution anywhere. I posted this: https://drupal.stackexchange.com/questions/314773/custom-links-task-for-... but still no answer.
Comment #19
smustgrave commentedThis seems like a duplicate of #2804195: Views does not create parent local task for a default local task anyone disagree?
Comment #20
mortona2k commentedI believe this one is for secondary level tasks. The one you linked is about a bug where the parent task isn't created automatically when it should.
I don't see any mention of secondary level tasks in there.
I'd keep this open unless that's the problem causing this issue, which it may be.
Comment #21
smustgrave commented