Creating a new Layout

0 views
Skip to first unread message

Pat

unread,
Apr 14, 2011, 4:34:31 PM4/14/11
to OpenSocial Enterprise Container
I'm trying to create a new layout to use in OSEC, that has multiple
regions (i.e. a 3 column region, with a 1 column region beneath it),
but am having troubles getting the layout to show up as a selectable
option.

In initial_data.sql, I added the following line:
insert into page_layout (page_layout_id, layout_name, display_name,
render_seq, num_regions, user_selectable)
values (next value for page_layout_id_seq, 'columns_3nwn_1_bottom',
'Three Columns, One Bottom', 7, 4, 'Y');

Also, I added the actual layout ftl file here: \WEB-INF\freemarker
\layouts a file named columns_3nwn_1_bottom.ftl
I added a jpg for the select layout icon under \static-content\portal
\images\layout named columns_3nwn_1_bottom.jpg

After a server reboot it's not available in the UI. Is there anything
else you need to do to register the layout so the user can select it?

mfra...@mitre.org

unread,
Apr 14, 2011, 9:23:07 PM4/14/11
to OpenSocial Enterprise Container
Your SQL statement is correct. Assuming you are not using the
h2datasource in persistent mode, you should at least see your layout
as an option in edit page properties and when you create a new page.
If you are using persistent mode, you will need to shutdown OSEC and
delete the database file, or change the value attribute of the persist
element to false in the dataSource.xml.

-Matt
Reply all
Reply to author
Forward
0 new messages