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.
Support Forum
Page: 1
Created on: 07/30/08 06:45 AM
Replies: 5
debbie
Joined: 07/30/08
Posts: 1
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
kwfricke
Joined: 07/15/08
Posts: 94
kwfricke
Joined: 07/15/08
Posts: 94
matt
Joined: 04/26/08
Posts: 2639
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.
Page: 1
Please login to post a response.