Skip to content

show parents in publish-index page #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Page Select Box Field

- Version: 1.4.1
- Author: Symphony Team (team@symphony21.com)
- Build Date: 2nd December 2010
- Requirements: Symphony 2.0.6+


## Installation

1. Upload the `pagesfield` folder in this archive to your Symphony `/extensions` folder.

2. Enable it by selecting the "Field: Page Select Box", choose Enable from the with-selected menu, then click Apply.

3. You can now add the "Page Select Box" field to your sections.
27 changes: 0 additions & 27 deletions README.txt

This file was deleted.

90 changes: 45 additions & 45 deletions extension.driver.php
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
<?php
Class extension_pagesfield extends Extension{
public function about(){
return array('name' => 'Field: Page Select Box',
'version' => '1.3',
'release-date' => '2010-07-15',
'author' => array('name' => 'Symphony Team',
'website' => 'http://www.symphony21.com',
'email' => 'team@symphony21.com')
);
}
public function uninstall(){
$this->_Parent->Database->query("DROP TABLE `tbl_fields_pages`");
}
public function install(){
return $this->_Parent->Database->query("CREATE TABLE `tbl_fields_pages` (
`id` int(11) unsigned NOT NULL auto_increment,
`field_id` int(11) unsigned NOT NULL,
`allow_multiple_selection` enum('yes','no') NOT NULL default 'no',
`page_types` varchar(255) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `field_id` (`field_id`)
) TYPE=MyISAM");
}
public function update($previousVersion) {
if(version_compare($previousVersion, '1.3', '<')){
$updated = Administration::instance()->Database->query(
"ALTER TABLE `tbl_fields_pages`
ADD `page_types` varchar(255) default NULL"
);
if(!$updated) return false;
}
return true;
}
}
<?php

Class extension_pagesfield extends Extension{

public function about(){
return array(
'name' => 'Field: Page Select Box',
'version' => '1.4.1',
'release-date' => '2011-12-02',
'author' => array(
'name' => 'Symphony Team',
'website' => 'http://www.symphony21.com',
'email' => 'team@symphony21.com'
)
);
}

public function uninstall(){
Symphony::Database()->query("DROP TABLE `tbl_fields_pages`");
}

public function install(){
return Symphony::Database()->query("CREATE TABLE `tbl_fields_pages` (
`id` int(11) unsigned NOT NULL auto_increment,
`field_id` int(11) unsigned NOT NULL,
`allow_multiple_selection` enum('yes','no') NOT NULL default 'no',
`page_types` varchar(255) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `field_id` (`field_id`)
) ENGINE=MyISAM");
}

public function update($previousVersion) {
if(version_compare($previousVersion, '1.3', '<')){
$updated = Symphony::Database()->query(
"ALTER TABLE `tbl_fields_pages`
ADD `page_types` varchar(255) default NULL"
);
if(!$updated) return false;
}
return true;
}

}

18 changes: 18 additions & 0 deletions extension.meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension id="pagesfield" status="released" xmlns="http://symphony-cms.com/schemas/extension/1.0">
<name>Pages Field</name>
<description>Easily related entries to pages</description>
<repo type="github">https://github.com/symphonists/pagesfield</repo>
<url type="discuss">http://symphony-cms.com/discuss/thread/267/</url>
<types>
<type>Field Types</type>
</types>
<authors>
<author>
<name github="symphonists" symphony="community">Symphony Community</name>
</author>
</authors>
<releases>
<release version="1.4.1" date="2011-12-02" min="2.0.6" max="2.2.x" />
</releases>
</extension>
Loading