- Posts: 22
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Frontend Add Item in component section instead of popup
Frontend Add Item in component section instead of popup
- Carlos
-
Topic Author
- Offline
- Junior Member
Less
More
9 years 2 months ago #151283
by Carlos
Frontend Add Item in component section instead of popup was created by Carlos
Hello.
How can the add new item form in frontend be in <jdoc:include type="component" /> inside the template instead of opening in a modal popup?
(Joomla 3.4.8/K2 2.6.9).
Thanks!
How can the add new item form in frontend be in <jdoc:include type="component" /> inside the template instead of opening in a modal popup?
(Joomla 3.4.8/K2 2.6.9).
Thanks!
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
9 years 2 months ago #151313
by Lefteris
Replied by Lefteris on topic Frontend Add Item in component section instead of popup
Hi,
You have to create a menu link to K2 item form.
You have to create a menu link to K2 item form.
Please Log in or Create an account to join the conversation.
- Carlos
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
9 years 2 months ago #151318
by Carlos
Replied by Carlos on topic Frontend Add Item in component section instead of popup
I've created a k2 Item edit form menu item type but it opens the edit form in a popup.
What I ended up doing is to create a wrapper to item/add?tmpl=component. I was wondering if there's a better way of doing it.
What I ended up doing is to create a wrapper to item/add?tmpl=component. I was wondering if there's a better way of doing it.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
9 years 2 months ago #151335
by Lefteris
Replied by Lefteris on topic Frontend Add Item in component section instead of popup
An alternative way doing this could be to just remove the class "modal" from the add and edit links in your overrides.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #151342
by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend Add Item in component section instead of popup
Remember to use overrides ( getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates ) instead of editing core files.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Frontend Add Item in component section instead of popup