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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started