!Voila!
|
Go to __http://yourbitweaverURL/newPackage/__ and your table should be displayed!
|
|
-!!7) Now, create a Module
|
+!!7a) Now, create a Module |
* To create a module (a little box that you can display in the left or right columns) with a pointer to your awesome new package, we will use the modules directory you created in step 1
|
* Create a file using pico, or whatever text editor you use, called ''mod_newPackage.tpl''.
|
* The file name must be formated like this so bitweaver can include it in the __Administration / Modules__ dropdown list.
|
* Add these lines to the file:
|
{CODE source='php' num='off'}<table>
|
<tr>
|
- <td class="boxtitle"><b>Planning</b><br></td>
|
+ <td class="boxtitle"><b>Planning</b> |
+</td> |
</tr>
|
<tr>
|
- <td><a href="{$smarty.const.NEWPACKAGE_PKG_URL/index.php">
|
- {biticon ipackage=newPackage iname=iconname iexplain="this is a cool icon"}My New Package</a></td>
|
+ <td><a href="{$smarty.const.NEWPACKAGE_PKG_URL}index.php"> |
+ { biticon ipackage=newPackage iname=iconname iexplain="this is a cool icon"}My New Package</a></td> |
</tr>
|
</table>{CODE}
|
(:exclaim:) __$smart.const.whatever_PKG_URL__ is a pointer to a folder called whatever in the root...
|
to use icons check out our cool new icon system called ((function_biticon|biticon))
|
+ |
+!!7b) Add menu entries |
+Maybe you chose your package be no module. Maybe you have additional functionality that shall plugin into Bitweaver's menu bar. This is a two step procedure. |
+ |
+First create your templates/menu_newPackage.tpl file with the menu items you want to add. |
+{CODE source='php' num='off'} |
+<ul> |
+ <li><a class="item" href="{$smarty.const.NEWPACKAGE_PKG_URL}index.php">{tr}New Package Home{/tr}</a></li> |
+ <li><a class="item" href="{$smarty.const.NEWPACKAGE_PKG_URL}view1.php">{tr}View Something{/tr}</a></li> |
+ <li><a class="item" href="{$smarty.const.NEWPACKAGE_PKG_URL}view2.php">{tr}View something else{/tr}</a></li> |
+</ul> |
+{CODE} |
+ |
+Then register the menu in bit_setup_inc.php. |
+{CODE source='php' num='off'} |
+if( $gBitSystem->isPackageActive( 'newPackage' ) ) { |
+ $menuHash = array( |
+ 'package_name' => NEWPACKAGE_PKG_NAME, |
+ 'index_url' => NEWPACKAGE_PKG_URL.'index.php', |
+ 'menu_template' => 'bitpackage:eventcal/menu_newPackage.tpl', |
+ ); |
+ $gBitSystem->registerAppMenu( $menuHash ); |
+} |
+{CODE} |
+To read more about menus, read ((Adding YOUR OWN dropdown menu to the Nav bar!)). |
|
!!8) List of available constants in bitweaver
|
|