ConcourseConnect Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Development

Add a static page

You need to be logged in to post messages

This question is unanswered

Add a static page

6/26/2009 7:15 AM EDT

For adding a new static page I did following steps
1. I added a new site category say "About Us"
2. I added a new record (manually) in project_wiki table with subject "Welcome to About Us"
3. Then I added following in file /WEB-INF/classes/portal/dashboards_en_US.xml

<page name="about_us.shtml" title="About Us" description="" category="about_us">
<row>
<column width="240">
<portlet name="ActionsPortlet" class="button-list-vertical-">
<xml-include fragment="portal-fragments-get-started"/>
</portlet>
</column>
<column width="auto" class="main">
<portlet name="ProjectWikiContentPortlet" class="about_us " isAdmin="true">
<project>main-profile</project>
<wiki>Welcome to About Us</wiki>
<showTitle>false</showTitle>
<contentIsBasedOnUser>true</contentIsBasedOnUser>
</portlet>
<portlet name="ProjectWikiContentPortlet" class="about_us " isAdmin="false">
<project>main-profile</project>
<wiki>Welcome to About Us</wiki>
<showTitle>false</showTitle>
</portlet>
</column>
</row>
</page>

All this is showing me a new category on top and on clicking on this category I can see the default contents which I added in the database. Now I want to edit these contents using editor, but I am not able to see the edit link on this page while I am logged in with "Admin" user.

Please let me know how can I add a new static page with formatted contents?
Thanks
Krishan

1. 6/26/2009 10:37 AM EDT

My another question is what is the best way to add my own links in left side column where we are showing "Let's Get Started"?
My findings are given below:
After adding a static page I want to show few links on left side like "Let's Get Started" links.
I found that for doing this I need to add those links as site links(main) which I don't want because it will show those links on tob menu bar also.
Other way I can do is by adding in Quick Links but for that I need to create new layout page.
and I am not sure right now that how to add a layout page and other related changes.

Is there any documentation available to understand the application's flow and code better?

Thanks
Krishan Babbar

2. 6/26/2009 3:47 PM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

The default theme's layout.jsp defines where links are displayed including the global links like "Contact Us" and "Learn More" in addition to the site's categories like "Groups", "Projects", etc.

If you want to add static pages, and those pages have nothing to do with Groups and Projects, etc., then I would go into the layout.jsp and insert a tab called "About Us" for example, that links to a page like /page/about_us.shtml.

Then in the dashboard's file, locate the <pages> node and add a page there. On the creation of this page, use the ContentPortlet. Also use an ActionsPortlet to specify the links you want displayed.

Finally, the challenge I see is having the new tab and button links highlight when you are on that page. I'll have to give that some thought.

So, while not the easiest of CMS systems, once you get past that you have a nice social networking product. Hopefully we can make the CMS part better.

2 results found