• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Add new form layout in menu

Add new form layout in menu 15 years 6 months ago #8576

  • s.span
  • s.span's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi, I want to add a new form layout in the menu, since the 5 available now do not always suit my needs.
I was able to successfully alter the layout of one of the 5 layouts currently available, but I want to add a 6th layout to the menu. How can I do that?

Thanks!
The administrator has disabled public write access.

Re:Add new form layout in menu 15 years 6 months ago #8577

  • s.span
  • s.span's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Okay, figured it out myself...

1)
In the file admin.rsform.html.php around line 260 you will find the layout for the menu with the form layouts.
Place this code anywhere after line 263, but before line 299 and change the 6 instances of NAMEOFYOURFORM in whatever you want to name your form.
<div style="border:1px solid #cccccc;width:185px;margin:5px;padding:2px;float:left;">
<label for="formLayoutInlineXhtml">
<input type="radio" id="formLayoutNAMEOFYOURFORM" name="formLayoutOption" value="NAMEOFYOURFORM" onClick="saveLayoutName('<?php echo $formId; ?>','NAMEOFYOURFORM');" <?php if (RSreturnCheckedLayoutName($formId,'NAMEOFYOURFORM')) echo 'checked="checked"'; ?> /><?php echo _RSFORM_BACKEND_FORMS_EDIT_LAYOUT_NAMEOFYOURFORM[/b];?><br/>
<img src="<?php echo _RSFORM_BACKEND_REL_PATH."/images/layouts/NAMEOFYOURFORM.gif";?>" width="175"/>
</label>
</div>

2)
Copy any of the layouts in administrator/components/com_rsform/layouts and name it NAMEOFYOURFORM.php and edit the code for this form to your liking between line 18 and before // Clean it.

3)
Create a new image to go with the new layout, size 175x100 px. Name it NAMEOFYOURFORM.gif and place it in: administrator/components/com_rsform/images/layouts

4)
Edit the language file and add around line 192, which you will find here: components/com_rsform/languages
DEFINE('_RSFORM_BACKEND_FORMS_EDIT_LAYOUT_NAMEOFYOURFORM','NAMEOFYOURFORM');

Now you have a new layout you can use :)
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!