Development

sfTabbedContentPlugin

You must first sign up to be able to contribute.

Symfony Tabbed Content Plugin

This plugin allows you to easily create tabbed content in your application. 2 different styles are available out of the box.

This plugin requires the sfContentGetterPlugin and sfCollapsibleContentPlugin. Check the README with those plugins to use correctly. The tabs content is a content getter string which can represent a partial, component or result of an action from any module.

Setup

You must enable the sfTabbedContent module in your application for the plugin to work.

Usage

<?php
$tabbedContent = new sfTabbedContent('my_account');
$tabbedContent->setTitle('My Account');

$my_information = $tabbedContent->addElement('my_information');
	$my_information->addElement('miscellaneous', '___change_miscellaneous_information');
	$my_information->addElement('contact', '___change_contact_information');
	$my_information->addElement('email_address', '___request_change_email_address', 'title=E-Mail Address');
	$my_information->addElement('select_church', '___select_church');
	$my_information->addElement('enter_church', '___enter_other_church');
	
$services = $tabbedContent->addElement('third_party_services');
	$services->addElement('my_services', '___my_third_party_services');
	$services->addElement('add_service', '___add_new_third_party_service');

$friends = $tabbedContent->addElement('friends');
  $friends->addElement('my_friends', '___my_friends');
  $friends->addElement('add_friend', '___add_friend');

$bookmarks = $tabbedContent->addElement('my_bookmarks', '___my_bookmarks');
$shares = $tabbedContent->addElement('my_shares', '___my_shares');
$comments = $tabbedContent->addElement('my_comments', '___my_comments');

$resources = $tabbedContent->addElement('resources');
  $resources->addElement('my_resources', '___my_resources');
  $resources->addElement('submit_resource', '@submit_resource', 'link=true');

$security = $tabbedContent->addElement('security_privacy', null, 'title=Security & Privacy');
	$security->addElement('password', '___change_password');
	$security->addElement('profile_permissions', '___change_profile_permissions');

$avatar = $tabbedContent->addElement('avatar');
	$avatar->addElement('upload', '___upload_avatar');
	$avatar->addElement('select', '___select_avatar');

echo $tabbedContent->output();
?>

Active tickets

Attachments