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.090 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started