Stubbing Drupal Content

From TechWiki

Jump to: navigation, search

In the initial set up of an open semantic framework (OSF) instance, it is often useful to provide the complete site scaffolding for the portal. This provision of links and menu items is known as "stubbing". Depending, there are three kinds of stubbing you may want to pursue.

External Links

First, it is assumed you have your various menus already defined.[1] To add new menu items that refer to external content:

  1. Be logged in as an administrator
  2. Go to the Admin -> Site Building > Menus item
  3. Pick the applicable menu to which you want to add the item
  4. Select Add Item
    • Under Path put the full external URL link
    • Under Menu link title put the exact text you want to appear as the menu text
    • Enter an optional description
    • Make sure the item is Enabled
    • Pick the appropriate parent menu item
    • Then, Save
  5. After entry, you can re-organize menu items by moving the cross-hair items under the Admin -> Site Building > Menus item.

Internal Content

Again, it is assumed you have your various menus already defined.[1] To add new menu items for internal content that will eventually be filled out:

  1. Be logged in as an administrator
  2. Go to the Admin -> Create Content
  3. Pick the content type you want to create (will generally be a Page or Page-variant); you will then be taken to the main content entry screen:
    • Give the item a Title (this is what appears as title for the actual page, and is NOT what is shown on the menu)
    • Expand the Menu Settings section, and then:
      1. Enter a Menu link title (this is what appears as the text of the menu link)
      2. Enter the Parent item for the new item. You do this by picking from the dropdown list (which is alphabetically ordered at the top menus level) the exact menu and parent item in that menu under which you want this new item to appear
    • Enter a small amount of temporary text in the text editor field
    • Scroll down through the other items (which you most often will not need to change) and
    • Then, Save
  4. After entry, you can re-organize menu items by moving the cross-hair items under the Admin -> Site Building > Menus item.

Re-use of Internal Content

Again, it is assumed you have your various menus already defined.[1] To add new menu items for content that is already entered into the system (that is, from the category above):

  1. Be logged in as an administrator
  2. Go to the Admin -> Site Building > Menus item
  3. Pick the applicable menu to which you want to add the item
  4. Select Add Item
    • Under Path put the existing, shortened URL for the existing menu item (for example, http://npidev.structureddynamics.com/topics/leisure-culture should be shortened to just 'topics/leisure-culture')
      • Note, when you save, the system will substitute its actual internal node identifier
    • Under Menu link title put the exact text you want to appear as the menu text
    • Enter an optional description
    • Make sure the item is Enabled
    • Pick the appropriate parent menu item
    • Then, Save
  5. After entry, you can re-organize menu items by moving the cross-hair items under the Admin -> Site Building > Menus item.


  1. 1.0 1.1 1.2 To define a menu, go to the Admin -> Site Building > Menus, and then Add Menu.
Personal tools