The Official PostNuke Installation & Getting Started Guide: Revision 9939 / Preview | ||
---|---|---|
Prev | Chapter 16. Advanced Website Configuration & Use | Next |
Within PostNuke, Blocks act as building blocks to construct your site. Blocks are provided by the core PostNuke engine, or virtually 'bolted on' by modules. Core PostNuke blocks provide basic system functionality, while modules provide enhanced functionality or new features. Using Blocks, the Administrator can customize the look of the site by adding, removing, or changing the position of Blocks.
Go to Administration -> Blocks to add, edit, view, or delete Blocks from your website. The Blocks display is sorted by Position.
New block: To add a new Block to your website, click "New Block". Fill out the fields on the screen that appears. Each field is discussed below.
Title: In this field, enter the title that will be displayed for the new Block. Entry example: "Administration Menu".
Block: From this drop-down list, select the Block type. There are several options for Block type provided by PostNuke, and additional Block types will be added as modules are 'bolted on' to PostNuke, though not every module will add Block types.
Each Block type has different configuration options (displayed after you click "Commit" on this screen) that will be covered in this section. No Block may have content that is greater than 64K in size, and ALL Block types have the following configuration options in common:
Title: The title of the Block as it will be displayed on the site.
Position: From this drop-down list, select where the Block should be displayed on the page, either left, right, or centre. The ORDER of the Blocks can be modified from Administration -> Blocks -> View Blocks.
Language: Select the language for which this Block will be displayed from the drop-down list. In this way, you could create English language blocks that are displayed only to your English users. Select "All" to cause the Block to be displayed in all languages.
Refresh time for block: If the Block pulls information from outside sources, this setting defines how frequently the Block will poll for updates. Entry example: "Half an hour".
The text in parenthesis after the Block type is the module/name combination used by PostNuke to specify the Block type.
Core/Today's Big Story: (Core/big): Today's Big Story displays the most popular (the most viewed) story for the day.
Core/Button Link Block: (Core/button):
** CORE/BUTTON FUNCTIONALITY WILL BE REMOVED FROM POSTNUKE AND THEREFORE ARE NOT DOCUMENTED HERE. USE CORE/HTML INSTEAD. **
Core/Categories Menu: (Core/category): Displays a list of Categories as defined in the Administration -> News module. Shows either all defined Categories, or only the Categories for the currently selected language, depending on the setting for Multilingual options in Administration -> Language -> Language Configuration.
Core/Ephemerids: (Core/ephem): If you have Ephemerids defined for your site, this Block instructs PostNuke to display Ephemerids in this Block. There are no additional configuration options for this Block type.
Core/HTML: (Core/html): This is a general Block for displaying HTML. All HTML tags defined in Administration -> Settings are permitted in this box.
Content: Enter the HTML content that you wish to display in this field. Only HTML that is below 64K in size will function in this block.
Core/User's Login: (Core/login):
Core/Generic menu: (Core/menu):
Menu format: This setting determines if the menu will be displayed as a listing or if the menu items are selected from a drop-down list.
Display: Specify if specific elements should be displayed within this Block.
Modules:
Waiting content: If configured as an Administration menu, you can enable this field to have an indicator that shows if there is waiting content (stories, etc) on the site.
Content:
Title:
URL:
Description (optional):
Delete:
Insert Blank After:
Core/Online: (Core/online): Displays a listing of who is online on the site. There are no additional configuration options for this Block type.
Core/Past Articles: (Core/past): Displays a clickable listing of the past Articles on the site. The number of stories displayed depends on the setting in the user's Your Account -> Homepage -> Number of stories field, or if that is not set, on Settings -> Number of articles on homepage. If the user wishes to read any of these Articles, click on the Article name to display the full Article.
Core/Livesupport: (Core/phplive): If you don't have an account with LivePeople.info (http://www.livepeople.info) yet, you may want to sign up now. It's free for PostNuke users only!
Your LivePeople company name:
Your LivePeople user ID:
Core/PHP Script: (Core/php): Executes a PHP script within the site. Meant to include small blocks of PHP code, like a Stock Ticker from http://www.hotscripts.com or similar.
IMPORTANT NOTES: Do not run scripts that access databases in this block. Only PHP scripts that are below 64K in size will function in this block.
Content: Cut and paste the entire PHP script you wish to execute into this field. A very simple example of a script that might be inserted here is:
"passthru("/usr/games/fortune -s");"
(This is for *NIX and assumes that the random 'fortune' program is in the /usr/games directory.)
IMPORTANT NOTE: Putting "" tags at the beginning & end of code entered in the Content field will cause a parse error to be generated when the page is displayed.
Core/Display poll: (Core/poll): Display a Poll in this Block. You may configure if the Current Poll or a specific Poll is to be displayed.
Poll to Display: Choose the Poll to be displayed.
Current: Select this to have the current poll displayed.
Specific: From the drop-down list, select the specific Poll you wish to have displayed.
Core/Story Related Links: (Core/related): This Block displays the latest article with the same Topic as the story being displayed. The Block functions only when you display an Article; it is not useful on the front page of a site. Only the most recent Story in the Topic is shown.
RSS is a Web content syndication format. Using RSS, your site can 'pull' content in the form of headlines from other websites and display that content on your site. If a user of your site is interested in reading the article, they can click a link to be taken to the other site.
Core/RSS Extra: (Core/rss2): RSS is a Web content syndication format.
RSS File URL:
Select "Custom" to define your own RSS newsfeed or select from previously defined RSS newsfeeds from the drop-down list.
Unfortunately, there are multiple versions of RSS feeds available, and the only way to determine which of these two Blocks will work with your particular RSS feed is by trial-and-error. If you enter a known-good RSS link into one of these two Block types and it doesn't work, try the other Block type.
Core/RSS Newsfeed: (Core/rss): RSS is a Web content syndication format.
RSS File URL:
List of available feeds: (www.syndic8.com)
Maximum number of articles shown:
Display site image:
Display site search:
Display article descriptions:
Use alternate display style:
Core/Search Box: (Core/search): Displays a Search box. In PostNuke 0.713, the Search is limited to searching ONLY News articles. However, in a future release, this will be a full site search.
Core/SMS: (Core/sms): ** NOT CURRENTLY FUNCTIONAL ** Uses Short Message Service (SMS) to send messages to mobile electronic devices. This is not useful in the United States.
Core/Story Titles: (Core/stories): Displays titles of News stories. Click the title to read the article.
Display all stories (or)
Display front-page stories (or)
Display non-front-page stories:
Topic: If a Topic is selected in this drop-down list, only Stories from that Topic will be displayed in the Block.
Category: If a Category is selected in this drop-down list, only Stories from that Category will be displayed in the Block. ** NOT CURRENTLY FUNCTIONAL **
Maximum number of stories to display:
Core/Plain Text: (Core/text): This Block type simply displays the text contents of the Content field. All HTML tags defined in Administration -> Settings are permitted in this box.
Content: Enter the text you wish to display in this field.
Core/Languages: (Core/thelang): Displays a language selection Block. Depending on the configuration option selected in Administration -> Languages -> Languages Configuration, this Block will display either a drop-down list or flag graphics to allow the user to select their default language for the site.
Core/Topics Menu: (Core/topic): Displays all active Topics on the website and the date of the last addition to the Topic. Click the Topic name to see articles in that Topic, with a link at the top of the page to show ALL articles in that Topic.
Core/User's Custom Box: (Core/user): This is a box that your users can edit to display items that are important to them. It is displayed only to the individual user. All HTML tags defined in Administration -> Settings are permitted in this box, so users could put customized links, etc., here. Users can edit their Custom Box through Your Account -> Change Homepage.
Core/Latest Web Links: (Core/weblinks): This Block displays the latest Web Links that have been added to the site.
Module Name: (usually "Web_Links")
Total links: Specify how many links to display in this Block. Defaults to "10". If you wish to display the 25 most recent Web Links, enter "25" here.
Admin Messages/Show admin messages: (Admin_Messages/messages): Displays the messages that the Administrator has defined in Administration -> Admin Messages.
Quotes/Random Quote: (Quotes/quote): Displays a random Quote from the quotes defined in Administration -> Quotes.
Wiki/WIKI: (Wiki/wiki): Text block allowing Wiki encoding. Wiki Encoding is an alternative to HTML code for display within articles and text on the site. A reference to the Wiki Text Formatting Rules is at: http://phpwiki.sourceforge.net/phpwiki/TextFormattingRules.
Content: Enter Wiki-formatted text in this field.
Template/Show first example items (alphabetical): (Template/first):
Number of example items to display:
For our example, select "Core/Generic menu" from the drop-down list.
Position: You can specify where on your website the Block will be displayed. This setting determines if the Block will be displayed on the left, right, or center of your website. Later, you can change the display order of the blocks by clicking "View blocks" and changing the order using the arrows.
Left: This Block will be displayed on the left side.
Right: This Block will be displayed on the right side.
Centre: This Block will be displayed in the center.
For our example, select "Left" as the position for the block.
Language: From this drop-down list, select the default language for this Block. Entry example: "English".
Click "Commit" to save your changes. The new Block will be created, and it will be displayed on the website.
View blocks: Displays blocks in Position order.
Order: Click the arrow pointing UP to move this Block UP in the display order. Click the arrow pointing DOWN to move this Block DOWN in the display order.
Position:
Title:
Module:
Name:
Language:
State: Active/Inactive
Options:
Activate:
Deactivate:
Edit: Using this function, you can edit the settings for each Block.
Title: Change the displayed title of this Block in this field.
Position: From this drop-down list, select if the Block should be displayed on the left, right, or center of the page.
Language: Select the language for this Block from the drop-down list.
Refresh time for block: If the Block pulls information from outside sources, this setting defines how frequently the Block will check for updates. Entry example: "Half an hour".
Click "Commit" to save your changes.
Delete:
Show active/all blocks: This is a toggle switch that selects between showing ALL blocks and only those blocks that are ACTIVE on your site.
To remove the Reminder block that says "Please remember to remove the following files from your PostNuke directory...", follow these steps:
Log in as Administrator with your Administrator username and password.
Click on the "Administration" link on the Main Menu.
Click on the "Blocks" link.
Click "View Blocks".
Find "Reminder" on the listing that appears, and click "Delete" under Options for that block.
Click "Confirm" to verify that you wish to delete that block.