- Posts: 46
COMMUNITY FORUM
Setting up a custom add item page
- Marc
- Topic Author
- Offline
- Senior Member
Subject
Content
Link
Tags
Extra Fields
Closing date
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6213
Then you can safely use HTML comments to hide out the parts of the form you don't want. Last step is to create a menu item TO that form in Joomla. Select the K2 item form option for menu link and make sure you select the "submitform" sub-template you basically created earlier.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- Senior Member
- Posts: 46
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- Senior Member
- Posts: 46
Fotis Evangelou wrote: You can achieve what you want by using overrides. You create a folder com_k2/submitform/ inside your template's /html folder and in there you copy the file itemform.php from /components/com_k2/templates/default/.
Then you can safely use HTML comments to hide out the parts of the form you don't want. Last step is to create a menu item TO that form in Joomla. Select the K2 item form option for menu link and make sure you select the "submitform" sub-template you basically created earlier.
I've done it all up to the menu creation. I only get two options when selecting the template, that being default or the K2 Custom template I downloaded earlier.
Is the default one referring to the the template I've put in the submitform folder?
Thanks
Edit: I'm going to sound stupid here but...... I haven't been able to find the form in the menu select, I get to the K2 item form option, but can't find where to select the form?
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- Senior Member
- Posts: 46
But now it comes up with a 404 error whenever I click it from the menu?
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- Senior Member
- Posts: 46
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- Senior Member
- Posts: 46
I've created a category with the submitform template
Created a new item in that category
Created a menu to that item
The item displays as a standard item in I set the menu to k2 item
If I set the menu to k2 item edit form I get a 404.
What am I missing?
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- Senior Member
- Posts: 46
Please Log in or Create an account to join the conversation.
- Tomo
- Offline
- New Member
- Posts: 2
Thanks in advance
ok after creating a single item, i can see the link now... Solved
Please Log in or Create an account to join the conversation.
- ghulma
- Offline
- New Member
- Posts: 4
i'd try the instruction but failed..
this is what i did...
1.i created folder "submitform" in my default template bezz20/html/com_k2/
2. i pasted the itemform.php inside submitform folder.
3. i create a menu for k2>item edit form
4. save it.
when i run it and refresh.. there is no changes..
and i already edit itemform.php inside submitform.
please help..
regards
Please Log in or Create an account to join the conversation.