Problem with custom form

More
11 years 1 month ago #40369 by LEHBC-EHY
Hello team,

I've followed the tutorial to create a custom form and override the default form. Everything work fine until I rename the new form to form1.

When I write in the new url like
Code:
index.php?option=com_flexicontent&view=item&layout=form1&task=add&maincat=6&typeid=5
I'm redirected to default form and not to new form.

I currently use the version 2.1.0 r1776

An idea about this issue ?

Thanks for your feedback.

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

More
11 years 1 month ago #40373 by ggppdk
Replied by ggppdk on topic Problem with custom form
Hello,

I have just now, removed that from the FAQ article,

please add a URL variable of your own to the URL e.g.
&sublayout=custom1

and inside your template override file (form.php) use it to include an appropriate file:
e.g.
to include files "form_customNN.php"
Code:
$sublayout = JRequest::getVar('sublayout'); if ($sublayout) include('form_'.$sublayout.'.php'); else include('form_default.php');


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 1 month ago #40377 by LEHBC-EHY
Replied by LEHBC-EHY on topic Problem with custom form
Hello,

Issue solved ;)

Thanks for your support and your reactivity :)

Regards,

EHY

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.476 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline