Author Topic: v2.8.4 - New Feature - Entry Form Template - example template  (Read 30027 times)

0 Members and 2 Guests are viewing this topic.

Offline kenmcd

 
SOBI2 v2.8.4 new feature - Entry Form Template.
Now SOBI2 users can modify the entry form to their requirements by using the Entry Form Template.

The SOBI2 Entry Form Template may be edited and enabled via the SOBI2 back-end.
SOBI2 > Templates & CSS > Entry Form Template > Use the Template instead of the Standard Function - No or Yes
  If set to No, SOBI2 will display the default entry form.
  If set to Yes, SOBI2 will display the custom entry form located in the file location below.
File location: joomla_root/components/com_sobi2/templates/default/sobi2.form.tmpl.php

This new Entry Form Template may include the SOBI2 tabs feature.
For more info about SOBI2 tabs see: http://www.sigsiu.net/faq/how_to_use_tabs.html

The example Entry Form Template below uses 5 tabs for the usual SOBI2 entry form fields.
 
This template can be downloaded here:
http://www.sigsiu.net/download/templates/kens_entry_form_template.html
« Last Edit: 08. November 2008, 09:42:21 by kenmcd »
50 SOBI2 Joomla Web Sites - Free! Publication Available
A showcase of 50 SOBI2 websites with screenshots and descriptions of add-ons used.
Direct download (22MB): 50-SOBI2-Joomla-Web-Sites.2008-11-10.CHM.zip
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Joomla Docs

Offline kenmcd

Re: v2.8.4 - New Feature - Entry Form Template - example template
« Reply #1 on: 26. January 2008, 00:08:26 »

Changes/fixes in Version 4:

Last tab is not remembered
First tab is always selected when opening Add Entry or Edit Entry page.
Tab cookie is not set so first tab is always selected.

Images Tab
Made this tab more compatible with default SOBI2 installation
 - If you have selected that the Logo and Icon images are not free in SOBI2 configuration,
    the "Add Logo" and "Add Icon" check boxes and "This option is not free . . ." text will now appear
    on the Add New Entry page (form).
 - When user selects to Edit an entry, the existing images will display with the option to delete/replace.


New v4 file is attached.
 
50 SOBI2 Joomla Web Sites - Free! Publication Available
A showcase of 50 SOBI2 websites with screenshots and descriptions of add-ons used.
Direct download (22MB): 50-SOBI2-Joomla-Web-Sites.2008-11-10.CHM.zip
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Joomla Docs

Offline kenmcd

Add Plugin Tabs to Entry Form Template
« Reply #2 on: 26. January 2008, 01:39:06 »
 
Attached to the bottom of this post is an example Entry Form Template which also includes the required code for various SOBI2 Plugins to be displayed on individual tabs.
It is easy to delete what you do not need from this all-inclusive template.
You will only need to include the tabs of the Plugins which you are actually using on your site.
Delete the unneeded tabs (9 tabs is too many to display properly for good usability).
Edit the tab text such as "6. Download Plugin" to read as you desire.
You can combine the code for various plug-ins to display on one tab.

Download Plugin

<!-- Tabs - Start Tab 6 - Download Plugin -->
<?php $myTabs->startTab("6. Download Plugin","SixthTabLabelText"); ?>
<table width="100%" border="0" cellpadding="5">
  <tr>
    <td colspan="2"><strong>Download Plugin Description and Instructions</strong><br />
    Add some text which explains what the users can do with this.<br />
    More text . . . <br />
    Note: Files will be reviewed before your entry is published.<br /><br />
    </td>
  </tr>
  <tr>
    <td width="200"><div align="right"><?php echo $fields['sobi_download_plugin']['label']; ?>&nbsp;</div></td>
    <td><?php echo $fields['sobi_download_plugin']['field']; ?></td>
  </tr>
</table>
<br />
<?php $myTabs->endTab(); ?>
<!-- Tabs - End Tab 6 -->


Featured Listings Plugin

<!-- Tabs - Start Tab 7 - Featured Listings Plugin -->
<?php $myTabs->startTab("7. Featured Listings Plugin","SeventhTabLabelText"); ?>
<table width="100%" border="0" cellpadding="5">
  <tr>
    <td colspan="2"><strong>Featured Listings Plugin Description and Instructions</strong><br />
    Add some text which explains what the users can do with this.<br />
    More text . . . <br />
    Note: Featured Listings will be reviewed before your entry is published.<br /><br />
    </td>
  </tr>
  <tr>
    <td width="150"><div align="right"><?php echo $fields['featured']['label']; ?>&nbsp;</div></td>
    <td><?php echo $fields['featured']['field']; ?></td>
  </tr>
</table>
<br />
<?php $myTabs->endTab(); ?>
<!-- Tabs - End Tab 7 -->


Gallery Plugin

<!-- Tabs - Start Tab 8 - Gallery Plugin -->
<?php $myTabs->startTab("8. Gallery Plugin","EighthTabLabelText"); ?>
<table width="100%" border="0" cellpadding="5">
  <tr>
    <td colspan="2"><strong>Gallery Plugin Description and Instructions</strong><br />
    Add some text which explains what the users can do with this.<br />
    More text . . . <br />
    Note: Gallery images will be reviewed before your entry is published.<br /><br />
    </td>
  </tr>
  <tr>
    <td width="150"><div align="right"><?php echo $fields['sobi_gallery_plugin']['label']; ?>&nbsp;</div></td>
    <td><?php echo $fields['sobi_gallery_plugin']['field']; ?></td>
  </tr>
</table>
<br />
<?php $myTabs->endTab(); ?>
<!-- Tabs - End Tab 8 -->


Media Plugin

<!-- Tabs - Start Tab 9 - Media Plugin -->
<?php $myTabs->startTab("9. Media Plugin","NinthTabLabelText"); ?>
<table width="100%" border="0" cellpadding="5">
  <tr>
    <td colspan="2"><strong>Media Plugin Description and Instructions</strong><br />
    Add some text which explains what the users can do with this.<br />
    More text . . . <br />
    Note: Media files will be reviewed before your entry is published.<br /><br />
    </td>
  </tr>
  <tr>
    <td width="150"><div align="right"><?php echo $fields['sobi_media_plugin']['label']; ?>&nbsp;</div></td>
    <td><?php echo $fields['sobi_media_plugin']['field']; ?></td>
  </tr>
</table>
<br />
<?php $myTabs->endTab(); ?>
<!-- Tabs - End Tab 9 -->

 
Note: The existing Media Plugin RC v1.2 has a minor conflict with the Gallery Plugin.
They both use "sobi_gallery_plugin" so they cannot both be linked to the entry form at the same time.
I made a couple minor changes to the Media Plugin so it uses "sobi_media_plugin" instead.
It appears to be working properly.
Please test the attached Media Plugin RC v1.2a.
 
Also attached is the v4 tabbed Entry Form Template with the above plugin tabs added.
It will need to be edited to work properly with your plug-ins and tabs.
 
« Last Edit: 18. May 2008, 13:34:49 by kenmcd »
50 SOBI2 Joomla Web Sites - Free! Publication Available
A showcase of 50 SOBI2 websites with screenshots and descriptions of add-ons used.
Direct download (22MB): 50-SOBI2-Joomla-Web-Sites.2008-11-10.CHM.zip
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Joomla Docs

Tags: