Difference between revisions of "Development Resources/HOWTO/Left Menu"
(New page: ===(1) Using the Infrastructure=== The format and content of the project's pages, including the project home page, is under the sole control of the project's Committers (subject, of course...) |
(→The Standard Left Menu Item Looks Like This...) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
===(1) Using the Infrastructure=== | ===(1) Using the Infrastructure=== | ||
The format and content of the project's pages, including the project home page, is under the sole control of the project's Committers (subject, of course, to common sense about truth, decency, project relevance, security issues, etc.) with two exceptions: | The format and content of the project's pages, including the project home page, is under the sole control of the project's Committers (subject, of course, to common sense about truth, decency, project relevance, security issues, etc.) with two exceptions: | ||
− | # <span style="margin-right:6px; margin-top:5px; float:left; color:ivory; background:#FF9999; border:1px solid #444; font-size:30px; line-height:25px; padding-top:2px; padding-left:2px; padding-right:2px; font-family:times; ">R</span> Each project is required to have a | + | # <span style="margin-right:6px; margin-top:5px; float:left; color:ivory; background:#FF9999; border:1px solid #444; font-size:30px; line-height:25px; padding-top:2px; padding-left:2px; padding-right:2px; font-family:times; ">R</span> Each project is required to have a link to the standard project page for that project(named either: About This Project / Information about ) so that common information, such as where to find downloads and how to get started with the project, is easily and consistently available for all projects. |
# <span style="margin-right:6px; margin-top:5px; float:left; color:ivory; background:#FF9999; border:1px solid #444; font-size:30px; line-height:25px; padding-top:2px; | # <span style="margin-right:6px; margin-top:5px; float:left; color:ivory; background:#FF9999; border:1px solid #444; font-size:30px; line-height:25px; padding-top:2px; | ||
padding-left:2px; padding-right:2px; font-family:times; ">R</span> Projects in the [http://www.eclipse.org/projects/dev_process/incubation-phase.php Incubation Phase] are required to conform to certain labeling, including having an [http://www.eclipse.org/projects/dev_process/incubation-conforming.php incubation graphic on the home page]. | padding-left:2px; padding-right:2px; font-family:times; ">R</span> Projects in the [http://www.eclipse.org/projects/dev_process/incubation-phase.php Incubation Phase] are required to conform to certain labeling, including having an [http://www.eclipse.org/projects/dev_process/incubation-conforming.php incubation graphic on the home page]. | ||
+ | |||
+ | === Non Left Nav Links === | ||
+ | |||
+ | Use the following for standard links not in the left nav: | ||
+ | |||
+ | <a href="/projects/project_summary.php?projectid=container.project">About This Project</a> | ||
+ | |||
+ | Or: | ||
+ | |||
+ | <a href="/projects/project_summary.php?projectid=container.project">Information about</a> | ||
===PHP Code for Standard Left Menu=== | ===PHP Code for Standard Left Menu=== | ||
− | The PHP to create the single common nav items on the home page is to include this code before the <code> $App->generate_page(...)</code> and before any project-specific $Nav items are added: (note that <em>internalprojectid</em> is the project's Foundation internal database key, e.g. | + | The PHP to create the single common nav items on the home page is to include this code before the <code> $App->generate_page(...)</code> and before any project-specific $Nav items are added: (note that <em>internalprojectid</em> is the project's Foundation internal database key, e.g. <tt>technology.foobar</tt>, |
+ | and <em>shortname</em> is the short name of project when accessing from eclipse.org, i.e. <tt>foobar</tt> from www.eclipse.org/foobar) | ||
<pre style="border: thin 1px dashed; background-color: ivory; | <pre style="border: thin 1px dashed; background-color: ivory; | ||
padding-top: 2px; | padding-top: 2px; | ||
Line 12: | Line 23: | ||
padding-right: 2px; | padding-right: 2px; | ||
padding-bottom: 2px">$Nav->setLinkList( array() ); | padding-bottom: 2px">$Nav->setLinkList( array() ); | ||
− | $Nav->addNavSeparator( " | + | $Nav->addNavSeparator( "Project Name", "/shortname" ); |
$Nav->addCustomNav( "About This Project", | $Nav->addCustomNav( "About This Project", | ||
− | "/projects/project_summary.php?projectid= | + | "/projects/project_summary.php?projectid=internalprojectid", "", 1 );</pre> |
===The Standard Left Menu Item Looks Like This...=== | ===The Standard Left Menu Item Looks Like This...=== | ||
Line 28: | Line 39: | ||
− | ''This page is moderated by | + | ''This page is moderated by the EMO'' |
[[Category:Development_Resources]] | [[Category:Development_Resources]] | ||
[[Category:How to Contribute]] | [[Category:How to Contribute]] |
Latest revision as of 13:09, 24 August 2010
Contents
(1) Using the Infrastructure
The format and content of the project's pages, including the project home page, is under the sole control of the project's Committers (subject, of course, to common sense about truth, decency, project relevance, security issues, etc.) with two exceptions:
- R Each project is required to have a link to the standard project page for that project(named either: About This Project / Information about ) so that common information, such as where to find downloads and how to get started with the project, is easily and consistently available for all projects.
- R Projects in the Incubation Phase are required to conform to certain labeling, including having an incubation graphic on the home page.
Use the following for standard links not in the left nav:
<a href="/projects/project_summary.php?projectid=container.project">About This Project</a>
Or:
<a href="/projects/project_summary.php?projectid=container.project">Information about</a>
PHP Code for Standard Left Menu
The PHP to create the single common nav items on the home page is to include this code before the $App->generate_page(...)
and before any project-specific $Nav items are added: (note that internalprojectid is the project's Foundation internal database key, e.g. technology.foobar,
and shortname is the short name of project when accessing from eclipse.org, i.e. foobar from www.eclipse.org/foobar)
$Nav->setLinkList( array() ); $Nav->addNavSeparator( "Project Name", "/shortname" ); $Nav->addCustomNav( "About This Project", "/projects/project_summary.php?projectid=internalprojectid", "", 1 );
The Standard Left Menu Item Looks Like This...
This page is moderated by the EMO