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

Refactor Menu config #27

Closed
shprink opened this Issue Jun 24, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@shprink
Copy link
Collaborator

shprink commented Jun 24, 2015

I want to be able to create any kind of menu.

I am thinking having a list of typed object like this:

"menu": [
    {type: 'category', slug: 'mobile', trans: "Mobile", uiSref: "public.taxonomies.slug({ term: 'category', slug: 'mobile' })",
    {type: 'tag', slug: 'mobile', trans: "Test", uiSref: "public.taxonomies.slug({ term: 'tag', slug: 'test' })",
    {type: 'page', id: 851, trans: "My page", uiSref: "public.posts.slug({ id: 851 })",
    {type: 'separator', trans: "Social Networks"},,
    {type: 'social', trans: "Julien Renaux Blog", "icon": "icon ion-social-facebook",  "url": "https://www.facebook.com/julienrenauxblog"}
]

@shprink shprink added the enhancement label Jun 24, 2015

@shprink shprink modified the milestone: 2.0.0 Jun 24, 2015

@mingxia

This comment has been minimized.

Copy link
Contributor

mingxia commented Jun 24, 2015

also can have a author list

@shprink

This comment has been minimized.

Copy link
Collaborator

shprink commented Jun 24, 2015

We could have a type externalLink with which you can do whatever you want:

{
type: "externalLink",
trans: "Link to my blog",
href: "http://myblog.com"
}
@shprink

This comment has been minimized.

Copy link
Collaborator

shprink commented Jun 24, 2015

I c what you meant.

{
type: "author",
trans: "Author name",
uiSref: "public.author.slug({ id: 851 })"
}

Good feature to add

@shprink

This comment has been minimized.

Copy link
Collaborator

shprink commented Jun 24, 2015

#30

@shprink shprink modified the milestones: 1.4.0, 2.0.0 Jul 5, 2015

@shprink shprink closed this in ea1f418 Jul 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment