Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Menu link to frontend (new item)

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

  • Kevin
  • Kevin's Avatar
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.
Last Edit: 14 Oct 2011 18:20 by admin.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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

  • Kevin
  • Kevin's Avatar
Thanks for that I...
The administrator has disabled public write access.
Time to create page: 0.076 seconds

Get Started