Support Forum

Next Page

Page: 1

Previous Page

Thread: Create a new tab in the edit content admin section

Created on: 07/30/08 06:45 AM

Replies: 5

debbie





Joined: 07/30/08

Posts: 1

Create a new tab in the edit content admin section
07/30/08 6:45 AM

We would like to add an additional tab in the 'Edit Content' section under admin. On the new tab we would like to add an additional dropdown field assign to a geographical location to the content page.

Link | Top | Bottom

matt





Joined: 04/26/08

Posts: 2639

RE: Create a new tab in the edit content admin
08/01/08 5:15 PM

For this you may be able to just use extended attributes. If you go to your site settings form for your site you will see a link to that site's class extension manager.

As an example follow these steps.

1. Click "Add Class Extension" and enter the following value:
Base Type: Page
Sub Type: Widget
2. On the Class Extension Attribute Sets page click "Edit" next to the default attributes set.
3. On the Manage Attributes Set page click "Edit Attribute Set"
4. On the Edit Attribute Set page change the name from "Default" to "Widget Options" and click update
5. Back on the Manage Attributes Set page click on the "Add new Attribute" link and add the following values:
Name: Location
Input Type: SelectBox
Option List: North^East^South^West
6. Click "Add" to save the attribute.
7. Click "Site Manager" on the admin left nav.
8. choose a location in your site to add a instance of you new sub type, mouse over the plus sign and select "Add Page".
9. On the Edit Content page you click on the "Type" select box about the tabs and select "Page / Widget".
10. Click on the "Extended Attributes" tab, there you will see your Location select box where you can select North, East, West or South.

You can then retrieve the value from the

contentBean.getValue("location")

or

contentBean.getExtendedAtribute("location")


or you can get values directly form the class extension manager


<cfset extData=application.classExtensionManager.getExtendedData([contenthistid],"location")>

<cfoutput>#extData.getValue("Location")#</cfoutput>

I hope that helps,
Matt
* Last updated by: matt on 8/1/2008 @ 5:20 PM *

=================================
Matt Levine
Team Mura
Blue River Interactive Group

Link | Top | Bottom

kwfricke



kwfricke's Gravatar

Joined: 07/15/08

Posts: 94

RE: Create a new tab in the edit content admin section
12/05/08 6:49 AM

i get the following error:

Could not find the ColdFusion Component or Interface sava5.extend.extendset.

Link | Top | Bottom

kwfricke



kwfricke's Gravatar

Joined: 07/15/08

Posts: 94

RE: Create a new tab in the edit content admin section
12/05/08 6:52 AM

nevermind. i am hosting on a linux box and the file is name with camel case but the reference is all lowercase. I copied the file and named it correctly and we should be all set now.

Link | Top | Bottom

matt





Joined: 04/26/08

Posts: 2639

RE: Create a new tab in the edit content admin section
12/05/08 9:39 AM

That bug was fixed in version 5.0.421.

=================================
Matt Levine
Team Mura
Blue River Interactive Group

Link | Top | Bottom

alainnisam





Joined: 10/06/08

Posts: 4

RE: Create a new tab in the edit content admin section
03/25/09 6:48 PM

I have successfully created and managed several Class Extensions and I am trying to simplify things a little:

I have two questions:

1. Is there a way to create a Class Extension and make it available to ALL the sites within SAVA? I have reviewed the DB and I see that this could be accomplished with LOTS of duplicate records.

2. Is there a way to make the Class Extension available within the Extended Attributes tab? Specifically, without having to change the sub-type. For example, the Extended Attributes tab is a available under the type "Page", but it is blank. I have to change the type to Page / Widget in order to view my custom attribute sets.

Thanks in advance for our help.

Link | Top | Bottom

Next Page

Page: 1

Previous Page

New Post

Please login to post a response.