- Posts: 5
COMMUNITY FORUM
json out of menu items ?
- Adrian Harris
-
Topic Author
- Offline
- New Member
Less
More
9 years 1 month ago #151689
by Adrian Harris
json out of menu items ? was created by Adrian Harris
new to k2 and what i would like to do is create a ?format=json for the main menu, so that i can automatically drill down to categories then items via json (so that i can use the json feeds in an app)
is this possible ?
is this possible ?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 1 month ago #151700
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic json out of menu items ?
Hi,
If you mean that you need a menu link without the "format=json" which will generate K2 JSON data, then the answer is no. You will have to append the "?format=json" to the menu link.
If you mean that you need a menu link without the "format=json" which will generate K2 JSON data, then the answer is no. You will have to append the "?format=json" to the menu link.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Adrian Harris
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
9 years 1 month ago #151711
by Adrian Harris
Replied by Adrian Harris on topic json out of menu items ?
no, i want the menu json by adding ?format=json - i'll rephrase it a bit - if i create a new menu name how do i identify its url so i can add the ?fomat=json
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 1 month ago #151715
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic json out of menu items ?
You can publish the menu to a module and copy the link from the front-end.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Adrian Harris
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
9 years 1 month ago #151720
by Adrian Harris
Replied by Adrian Harris on topic json out of menu items ?
copy what link ?
ive created a new menu, assigned it the menu module and put that menu module in position (8)
the new menu module only shows in certain sections
i'm using K2 for items & cats if thats relevant ?
should the new menu be a certain type of menu link ?
ive created a new menu, assigned it the menu module and put that menu module in position (8)
the new menu module only shows in certain sections
i'm using K2 for items & cats if thats relevant ?
should the new menu be a certain type of menu link ?
Please Log in or Create an account to join the conversation.
- Adrian Harris
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
9 years 1 month ago #151721
by Adrian Harris
Replied by Adrian Harris on topic json out of menu items ?
i'm trying to get the menu items in json form to make drilling down to lower sub menus easier in an app :)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 1 month ago #151722
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic json out of menu items ?
Once you have created the menu item, you already have the link.
That link will provide the json feeds. If you want to have direct access to them, you can create a custom link menu,paste that link and add ?format=json.
That link will provide the json feeds. If you want to have direct access to them, you can create a custom link menu,paste that link and add ?format=json.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Adrian Harris
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
9 years 1 month ago #151724
by Adrian Harris
Replied by Adrian Harris on topic json out of menu items ?
i dont want the json from the menu *item* (not initially)
i'm trying to get a json output of the actual menu listings - ie a json listing of the menu items not the contents of those menu items
i'm trying to get a json output of the actual menu listings - ie a json listing of the menu items not the contents of those menu items
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 1 month ago #151735
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic json out of menu items ?
This has nothing to do with K2. The menu system is part of the CMS and there is no JSON output available as far as i know.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.