Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[SOLVED] Menu link to frontend (new item) 10 Oct 2011 20:15 #187

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
I can create a new menu item in joomla to point to an item in the frontend but it asks me to select the item.

Is there a way to point it straight to a new item entry page.

That said will a guest be able to save it.

I am trying to set up a fishing competition entry form on the frontend that anyone can fill in.

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Re: Menu link to frontend (new item) 11 Oct 2011 13:36 #191

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
If you don't select any item for this menu link, it should load an empty layout page.
If this layout is a form type, you get an empty form ready to add data.

Use the ACL system of your component to allow the item creation and item saving.

That's all.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Menu link to frontend (new item) 11 Oct 2011 20:06 #198

same problem in my local installation, the item is always mandatory don't save is none is selected

Please Log in or Create an account to join the conversation.

Re: Menu link to frontend (new item) 14 Oct 2011 18:19 #244

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You are right, the item field is required, but It souldn't.

Corrected since 1.3.3

Regenerate your project, or if you want to correct this in your component :

FRONT/com_mycomponent/views/myview/tmpl/mylayout.xml


CODE:
<!-- Add fields to the request variables for the layout. -->
	<fields name="request">
		<fieldset name="request"
			addfieldpath="/administrator/components/com_mycomponent/models/fields">

			<field name="cid" type="modal_itemitem"
				label="MYCOMPONENT_MENU_SELECT_ITEM"
				required="true"
				description="MYCOMPONENT_MENU_SELECT_THE_ITEM_TO_LINK_ON_THIS_MENU"
			/>
		</fieldset>
	</fields>



CHANGE :
required="true"

TO :
required="false"
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Menu link to frontend (new item) 14 Oct 2011 20:37 #248

  • Kevin
  • Kevin's Avatar Topic Author
  • Visitor
  • Visitor
Thanks for that I...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.086 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started