Headlines With Body as a Hidden Div (QWP_headlines_hidden_divs)

Tag Name
---------------

QWP_headlines_hidden_divs


Description
-----------------

Creates a list of headlines, but instead of linking to those pages, the page body will be in a hidden div beneath the headline. When clicking on the headline, the hidden div will appear beneath it.


Required Parameters
-------------------------------

-sectionID = The section you wish to pull the pages from. If you wish to pull the pages from the current section, use $sectionID

-currentPageID = The ID of the current page the user is on. This is needed, so this page does not appear in the list of headlines generated. The current page id can be called with $ID


Optional Parameters
------------------------------

-bulletStyle = The CSS style of the bullets in the list generated. If nothing is passed in, the style will default to "hitListBullet"

-bulletLinkStyle = The CSS style of the linked headline. If nothing is passed in, the style will default to "hitListBulletLink"

-bodyDivStyle = The CSS style of the div containing the page body. Its initial state is hidden. If nothing is passed in, the style will default to "hitListBodyHidden"

-numOfHeadlines = The number of headlines to list. Defaults to 50 if no value provided.

-showDates = If a value is passed in, the pages' dates will be displayed.

-dateStyle = If the page dates are displayed, you can pass in a CSS class to apply to the dates div. If nothing is passed in, the style will default to "hitListBulletDate"


Sample Usage
------------------------------

[QWP_headlines_hidden_divs:
-sectionID = 3,
-currentPageID = 55,
-bulletStyle = 'headlinesBullet',
-bulletLinkStyle = 'headlinesBulletLink',
-bodyDivStyle = 'headlinesBodyDiv';]


Example Subsequent CSS
------------------------------

.headlinesBullet{
list-style-type: square;
}

.headlinesBulletLink{
text-decoration: underline;
cursor: pointer;
}

.headlinesBodyDiv{
padding-left: 15px;
background-color: #CCCCCC;
}
QuickwebPro
Custom Tags
External Site Redirect
Headlines With Body as a Hidden Div (QWP_headlines_hidden_divs)
Javascript News/Headline Ticker (buildTicker)
QWP_BreadCrumbs
QWP_Headlines
Random Pictures (getRandomFile)