Wikka Mod 041

Type: Feature Addition

Credit

Mark Kasper and GmBowen (main credit for the idea and initial code)
AHerdOfTurtles (for helping me see that this is a cool idea)
Jason Tourtelotte (major refinement to the code -- almost a complete rewrite)

Description


This modification adds the ability to show an index listing of pages that start with a certain letter. There is also an alphabetical heading at the top of each listing. Just click a letter to see pages that start with that letter.

For example:

Usage:

{{pageindex letter="d"}}


Outcome:

Page Index


This is an alphabetical list of pages you can read on this server.
 
All  #  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  # 

W
WackoWiki [WackoWiki] . . . . Owner: RomanIvanov
WackoWikiComparison [WackoWikiComparison] . . . . Owner: DarTar
wackozacko [Scripts] . . . . Owner: wackozacko
WakkaBacklinksHandler [WakkaBacklinksHandler] . . . . Owner: JsnX
WakkaMuseum [WakkaMuseum] . . . . Owner: DarTar
WakkaWiki [WakkaWiki]
WamiTab01 [WamiTab01] . . . . Owner: ScotchHarry
WanHsi [WanHsi] . . . . Owner: WanHsi
WantedFormatters [WantedFormatters] . . . . Owner: DarTar
WantedPages [WantedPages]
WantedpagesActionInfo [WantedpagesActionInfo] . . . . Owner: NilsLindenberg
WantedPagesWorkaround [WantedPagesWorkaround] . . . . Owner: AjHill
WanWizard [WanWizard] . . . . Owner: WanWizard
WardXmodem [WardXmodem] . . . . Owner: WardXmodem
WatchedPages [WatchedPages] . . . . Owner: skrap
WayBackMachine [WayBackMachine] . . . . Owner: JavaWoman
WeatherComReport [WeatherComReport] . . . . Owner: ArslaA
Webauth [Webauth] . . . . Owner: GuyEdwards
WebGet [WebGet] . . . . Owner: RubenOlsen
WebSpider [WebSpider] . . . . Owner: WebSpider
WelcomeDeveloper [WelcomeDeveloper]
WelcomeDocumenter [WelcomeDocumenter]
WelcomeRegisteredUserFR [WelcomeRegisteredUserFR] . . . . Owner: PivWan
WelcomeUserFR [WelcomeUserFR] . . . . Owner: PivWan
WendellH [WendellH] . . . . Owner: WendellH
WesleyBailey [WesleyBailey] . . . . Owner: WesleyBailey
WhatsNew [WhatsNew]
WhatsNew1160 [WhatsNew1160] . . . . Owner: DarTar
WhatsNew1161 [WhatsNew1161] . . . . Owner: DarTar
WhatsNew1162 [WhatsNew1162] . . . . Owner: DarTar
WhatsNew1163 [WhatsNew1163] . . . . Owner: DarTar
WhatsNew1163RC1 [WhatsNew1163RC1] . . . . Owner: DarTar
WhatsNewBeta [WhatsNewBeta] . . . . Owner: DarTar
WheelDog [WheelDog] . . . . Owner: WheelDog
whoop [whoop] . . . . Owner: KevinMelillo
WigAnt [WigAnt] . . . . Owner: WigAnt
WiikiDunny [WiikiDunny] . . . . Owner: WiikiDunny
WikaGob [WikaGob] . . . . Owner: WikaGob
WikiAdmin [WikiAdmin] . . . . Owner: JavaWoman
WikiBengt [WikiBengt] . . . . Owner: WikiBengt
WikiBreadcrumb [WikiBreadcrumb] . . . . Owner: GmBowen
WikiCategory [WikiCategory] . . . . Owner: JsnX
WikiEdit [WikiEdit]
WikiEditFR [WikiEditFR] . . . . Owner: PivWan
WikiEditInfo [WikiEditInfo] . . . . Owner: RichardTerry
WikiEditor [WikiEditor] . . . . Owner: JavaWoman
WikiEngine [WikiEngine] . . . . Owner: DarTar
WikiEngine2 [WikiEngine2] . . . . Owner: DarTar
WikiEngineComparison [WikiEngineComparison] . . . . Owner: DarTar
WikiEngineDE [WikiEngineDE] . . . . Owner: YodaHome
WikiEngineES [WikiEngineES] . . . . Owner: YanB
WikiEngineFR [WikiEngineFR] . . . . Owner: PivWan
WikiFile [WikiFile] . . . . Owner: ChewBakka
WikifyingTheBlog [WikifyingTheBlog] . . . . Owner: KenBeyond
WikiHelrub [WikiHelrub] . . . . Owner: WikiHelrub
WikiInAVacuum [WikiInAVacuum] . . . . Owner: BrianKoontz
WikiJochen [WikiJochen] . . . . Owner: WikiJochen
WikiLingo [WikiLingo] . . . . Owner: JavaWoman
WikiLost [WikiLost] . . . . Owner: WikiLost
WikiMaster [WikiMaster] . . . . Owner: JavaWoman
WikiMatrix [WikiMatrix] . . . . Owner: AnthonyPetrillo
WikImmersion [WikImmersion] . . . . Owner: WikImmersion
WikiName [WikiName]
WikiNameDE [WikiNameDE] . . . . Owner: DiWi
WikiNameFR [WikiNameFR] . . . . Owner: EltharielHdh
WikiNode [WikiNode] . . . . Owner: MattisManzel
WikiOm [WikiOm] . . . . Owner: WikiOm
WikiOnAStick [WikiOnAStick] . . . . Owner: GmBowen
WikiOwner [WikiOwner] . . . . Owner: JavaWoman
WikiPage [WikiPage] . . . . Owner: SdfdsfaSdasd
WikiPageWatch [WikiPageWatch] . . . . Owner: IanHayhurst
WikipediaAction [WikipediaAction] . . . . Owner: RolandStens
WikiPing [WikiPing] . . . . Owner: DreckFehler
WikiPingDevelopment [WikiPingDevelopment] . . . . Owner: NilsLindenberg
WikiPiyush [WikiPiyush] . . . . Owner: WikiPiyush
WikiPoorRich [WikiPoorRich] . . . . Owner: WikiPoorRich
WikiRajni [WikiRajni] . . . . Owner: WikiRajni
WikiRole [WikiRole] . . . . Owner: JavaWoman
WikiRoles [WikiRoles] . . . . Owner: JavaWoman
WikiSharan [WikiSharan] . . . . Owner: WikiSharan
WikiSpit [WikiSpit] . . . . Owner: WikiSpit
WikiStalin [WikiStalin] . . . . Owner: WikiStalin
WikiStranger [WikiStranger] . . . . Owner: ChristianBarthelemy
WikiTemplate [WikiTemplate] . . . . Owner: ChristianBarthelemy
WikiTrail [WikiTrail] . . . . Owner: NilsLindenberg
WikiTuto [WikiTuto] . . . . Owner: WikiNuevote2
WikiUser [WikiUser] . . . . Owner: JavaWoman
WikiVisitor [WikiVisitor] . . . . Owner: JavaWoman
WikiWayToWriteWithoutSpaces [WikiWayToWriteWithoutSpaces] . . . . Owner: ChristianBarthelemy
WikiWords [WikiWords] . . . . Owner: BrianKoontz
Wikixulminate20 [Wikixulminate20] . . . . Owner: Wikixulminate20
Wikka-Docker [Using Docker for development WikkaWiki] . . . . Owner: OeMunoz
Wikka-Docker-Faster [Wikka on Docker for the impatient] . . . . Owner: OeMunoz
WikkaAccessibility [WikkaAccessibility] . . . . Owner: DarTar
WikkaAdmin [WikkaAdmin] . . . . Owner: NilsLindenberg
WikkaAdminPanel [WikkaAdminPanel] . . . . Owner: DarTar
WikkaAndBrowsers [WikkaAndBrowsers] . . . . Owner: JavaWoman
WikkaAndEmail [WikkaAndEmail] . . . . Owner: JavaWoman
WikkaAsARapidDevelopmentFramework [WikkaAsARapidDevelopmentFramework] . . . . Owner: BrianKoontz
WikkaBetaFeatures [Wikka Beta Features]
WikkaBlog [WikkaBlog]
WikkaBlog2 [WikkaBlog2] . . . . Owner: GmBowen
WikkaBugs [WikkaBugs]
WikkaBugsResolved [WikkaBugsResolved]
WikkaCake [WikkaCake] . . . . Owner: BrianKoontz
WikkaCake11 [WikkaCake11] . . . . Owner: BrianKoontz
WikkaCakeExample [WikkaCakeExample] . . . . Owner: BrianKoontz
WikkaCodeStructure [WikkaCodeStructure] . . . . Owner: JavaWoman
WikkaConfig [WikkaConfig] . . . . Owner: JsnX
WikkaCore [WikkaCore]
WikkaCoreFR [WikkaCoreFR] . . . . Owner: Pierre79
WikkaCountingRecords [WikkaCountingRecords] . . . . Owner: JavaWoman
WikkaCSS [WikkaCSS] . . . . Owner: DarTar
WikkaCurrent [WikkaCurrent] . . . . Owner: BrianKoontz
WikkaDatexco [WikkaDatexco] . . . . Owner: WikkaDatexco
WikkaDevelopment [WikkaDevelopment] . . . . Owner: JsnX
WikkaDevelopmentFR [WikkaDevelopmentFR] . . . . Owner: DotMG
WikkaDocumentation [WikkaDocumentation]
WikkaDocumentationDE [WikkaDocumentationDE] . . . . Owner: AdSamweis
WikkaDocumentationES [WikkaDocumentationES] . . . . Owner: YanB
WikkaDocumentationFR [WikkaDocumentationFR] . . . . Owner: PivWan
WikkaEdit [WikkaEdit] . . . . Owner: OlivierBorowski
WikkaEmailToolkit [WikkaEmailToolkit] . . . . Owner: JavaWoman
WikkaExtensibleMarkup [WikkaExtensibleMarkup] . . . . Owner: DarTar
WikkaFAQ [WikkaFAQ] . . . . Owner: DarTar
WikkaFAQFR [WikkaFAQFR] . . . . Owner: PivWan
WikkaFavicon [WikkaFavicon] . . . . Owner: DarTar
WikkaFeaturedSites [WikkaFeaturedSites] . . . . Owner: DarTar
WikkaFeatures [WikkaFeatures]
WikkaFeaturesDE [WikkaFeaturesDE] . . . . Owner: YvesFischer
WikkaFeaturesES [WikkaFeaturesES] . . . . Owner: BrianKoontz
WikkaFeaturesFR [WikkaFeaturesFR] . . . . Owner: BrianKoontz
WikkaFilters [WikkaFilters] . . . . Owner: DarTar
WikkaFolksonomy [WikkaFolksonomy] . . . . Owner: DarTar
WikkaForks [WikkaForks] . . . . Owner: BrianKoontz
WikkaForum [WikkaForum] . . . . Owner: GmBowen
WikkaFutureCoreInteractions [WikkaFutureCoreInteractions] . . . . Owner: GeorgePetsagourakis
WikkaFutureSuggestions [WikkaFutureSuggestions] . . . . Owner: GeorgePetsagourakis
WikkaGeshiIntegration [WikkaGeshiIntegration] . . . . Owner: JavaWoman
WikkaGettext [WikkaGettext] . . . . Owner: JordaPolo
WikkaGopher [WikkaGopher] . . . . Owner: BrianKoontz
WikkaGuidedTours [WikkaGuidedTours] . . . . Owner: DarTar
WikkaGuidedToursES [WikkaGuidedToursES] . . . . Owner: YanB
WikkaGuidedToursFR [WikkaGuidedToursFR] . . . . Owner: SamuelDr
WikkaHeadings [WikkaHeadings] . . . . Owner: DarTar
WikkaHosting [WikkaHosting] . . . . Owner: DarTar
WikkaHowto [WikkaHowto] . . . . Owner: JavaWoman
WikkaInAction [WikkaInAction] . . . . Owner: DarTar
WikkaInstallation [WikkaInstallation] . . . . Owner: DarTar
WikkaInstallationFR [WikkaInstallationFR] . . . . Owner: BrianKoontz
WikkaInstaller [WikkaInstaller] . . . . Owner: JsnX
WikkaIntegration [WikkaIntegration] . . . . Owner: DarTar
WikkaInternationalization [WikkaInternationalization]
WikkaLocalization [WikkaLocalization] . . . . Owner: DarTar
WikkaLogicalDataModel [WikkaLogicalDataModel] . . . . Owner: JavaWoman
WikkaMail [WikkaMail] . . . . Owner: GmBowen
WikkaMailingLists [Subscribe to our mailing lists] . . . . Owner: DarTar
Wikkamambo [Wikkamambo] . . . . Owner: StefanK
WikkaManual [WikkaManual]
WikkaMarkupHighlighting [WikkaMarkupHighlighting] . . . . Owner: DarTar
WikkaMenulets [WikkaMenulets] . . . . Owner: DarTar
WikkaMenus [WikkaMenus] . . . . Owner: DarTar
WikkaMenusAdmin [WikkaMenusAdmin] . . . . Owner: EmeraldIsland
WikkaModifications [WikkaModifications]
WikkaMultilanguageTestPage [WikkaMultilanguageTestPage] . . . . Owner: AndreaRossato
WikkaOnIRC [WikkaOnIRC] . . . . Owner: JavaWoman
WikkaOnMacOSX [WikkaOnMacOSX] . . . . Owner: DarTar
WikkaOnPlesk [WikkaOnPlesk] . . . . Owner: PivWan
WikkaOptimization [WikkaOptimization] . . . . Owner: DotMG
WikkaOptimizationCompressedStaticFiles [WikkaOptimizationCompressedStaticFiles] . . . . Owner: DotMG
WikkaPhysicalDataModel [WikkaPhysicalDataModel] . . . . Owner: JavaWoman
WikkaReleaseNotes [WikkaReleaseNotes] . . . . Owner: JsnX
WikkaReleaseNotesDiscussion [WikkaReleaseNotesDiscussion] . . . . Owner: NilsLindenberg
WikkaResources [WikkaResources] . . . . Owner: JavaWoman
WikkaSecureConfig [WikkaSecureConfig] . . . . Owner: JavaWoman
WikkaSecurity [WikkaSecurity] . . . . Owner: BrianKoontz
WikkaSites [Sites using WikkaWiki]
WikkaSitesBrokenLinks [WikkaSitesBrokenLinks] . . . . Owner: DaC
WikkaSiteTemplates [WikkaSiteTemplates] . . . . Owner: JavaWoman
WikkaSkinEditor [WikkaSkinEditor] . . . . Owner: DarTar
WikkaSkinOptimization [WikkaSkinOptimization] . . . . Owner: DarTar
WikkaSkins [WikkaSkins] . . . . Owner: DarTar
WikkaSkinSelector [WikkaSkinSelector] . . . . Owner: DarTar
WikkaSkinsRepository [WikkaSkinsRepository] . . . . Owner: DarTar
WikkaSpamFighting [WikkaSpamFighting] . . . . Owner: JavaWoman
WikkaStandards [WikkaStandards] . . . . Owner: DarTar
WikkaSticker [WikkaSticker] . . . . Owner: IanHayhurst
WikkaStrangeBugs [WikkaStrangeBugs] . . . . Owner: DotMG
WikkaSVN [WikkaSVN] . . . . Owner: DarTar
WikkaSystemFiles [WikkaSystemFiles]
WikkaSystemFilesFR [WikkaSystemFilesFR] . . . . Owner: PivWan
WikkaSystemFilesMM [WikkaSystemFilesMM] . . . . Owner: KarmaTester
WikkaTables [WikkaTables]
WikkaTableStructure [WikkaTableStructure] . . . . Owner: NilsLindenberg
WikkaToPDF [WikkaToPDF] . . . . Owner: DarTar
WikkaTourBasics [WikkaTourBasics] . . . . Owner: NilsLindenberg
WikkaTourBasicsDE [WikkaTourBasicsDE] . . . . Owner: AdSamweis
WikkaTourEditDE [WikkaTourEditDE] . . . . Owner: AdSamweis
WikkaTourEditing [WikkaTourEditing] . . . . Owner: DarTar
WikkaTourEditing1 [WikkaTourEditing1] . . . . Owner: DarTar
WikkaTourEditing1ES [WikkaTourEditing1ES] . . . . Owner: YanB
WikkaTourEditing2 [WikkaTourEditing2] . . . . Owner: DarTar
WikkaTourEditing2ES [WikkaTourEditing2ES] . . . . Owner: YanB
WikkaTourEditing3 [WikkaTourEditing3] . . . . Owner: DarTar
WikkaTourEditing3ES [WikkaTourEditing3ES] . . . . Owner: YanB
WikkaTourEditing4 [WikkaTourEditing4] . . . . Owner: DarTar
WikkaTourEditing4ES [WikkaTourEditing4ES] . . . . Owner: YanB
WikkaTourEditing5 [WikkaTourEditing5] . . . . Owner: DarTar
WikkaTourEditing5ES [WikkaTourEditing5ES] . . . . Owner: YanB
WikkaTourEditingES [WikkaTourEditingES] . . . . Owner: YanB
WikkaTourRevisions [WikkaTourRevisions] . . . . Owner: DarTar
WikkaTourRevisions1 [WikkaTourRevisions1] . . . . Owner: DarTar
WikkaTourRevisions1ES [WikkaTourRevisions1ES] . . . . Owner: YanB
WikkaTourRevisions2 [WikkaTourRevisions2] . . . . Owner: DarTar
WikkaTourRevisions2ES [WikkaTourRevisions2ES] . . . . Owner: YanB
WikkaTourRevisions3 [WikkaTourRevisions3] . . . . Owner: DarTar
WikkaTourRevisions3ES [WikkaTourRevisions3ES] . . . . Owner: YanB
WikkaTourRevisions4 [WikkaTourRevisions4] . . . . Owner: DarTar
WikkaTourRevisions4ES [WikkaTourRevisions4ES] . . . . Owner: YanB
WikkaTourRevisions5 [WikkaTourRevisions5] . . . . Owner: DarTar
WikkaTourRevisions5ES [WikkaTourRevisions5ES] . . . . Owner: YanB
WikkaTourRevisions6 [WikkaTourRevisions6] . . . . Owner: DarTar
WikkaTourRevisions6ES [WikkaTourRevisions6ES] . . . . Owner: YanB
WikkaTourRevisions7 [WikkaTourRevisions7] . . . . Owner: DarTar
WikkaTourRevisions7ES [WikkaTourRevisions7ES] . . . . Owner: YanB
WikkaTourRevisions8 [WikkaTourRevisions8] . . . . Owner: DarTar
WikkaTourRevisions8ES [WikkaTourRevisions8ES] . . . . Owner: YanB
WikkaTourRevisionsES [WikkaTourRevisionsES] . . . . Owner: YanB
WikkaTourUpDownloadDE [WikkaTourUpDownloadDE] . . . . Owner: AdSamweis
WikkaTracker [WikkaTracker] . . . . Owner: DarTar
WikkaTroubleshooting [WikkaTroubleshooting] . . . . Owner: NilsLindenberg
WikkaVision [WikkaVision] . . . . Owner: MarkHissinkMuller
WikkaWiki [WikkaWiki] . . . . Owner: DarTar
WikkaWikiDE [WikkaWikiDE] . . . . Owner: YodaHome
WikkaWikiEMailNotifications [WikkaWikiEMailNotifications] . . . . Owner: ZorrunO
WikkaWikiES [WikkaWikiES] . . . . Owner: YanB
WikkaWikiFR [WikkaWikiFR] . . . . Owner: EltharielHdh
WikkaWithMobileDevices [WikkaWithMobileDevices] . . . . Owner: ChristianBarthelemy
WikkaWithphpBB [WikkaWithphpBB] . . . . Owner: OfficeRabbit
WikkaWithphpBB3 [WikkaWithphpBB3] . . . . Owner: WebHorn
WikkaWithSMF [WikkaWithSMF] . . . . Owner: MyTreo
WikkaWorkarounds [WikkaWorkarounds] . . . . Owner: JavaWoman
WillWoodhull [WillWoodhull] . . . . Owner: WillWoodhull
WillyPs [WillyPs] . . . . Owner: WillyPs
Win2K [Win2K] . . . . Owner: BrianKoontz
WinterTales [WinterTales] . . . . Owner: WinterTales
WinWord2WikkaWikiAction [WinWord2WikkaWikiAction] . . . . Owner: NickDamoulakis
WinXP [WinXP] . . . . Owner: DaC
WishListFor117 [WishListFor117] . . . . Owner: BrianKoontz
WmLuke [WmLuke] . . . . Owner: WmLuke
WolfgangWitt [WolfgangWitt] . . . . Owner: WolfgangWitt
WordcountAction [WordcountAction] . . . . Owner: BrianKoontz
WordPress [WordPress] . . . . Owner: DarTar
WorkaroundTemplate [WorkaroundTemplate] . . . . Owner: JavaWoman
WorldHeader [WorldHeader] . . . . Owner: WorldHeader
WulaLa [WulaLa] . . . . Owner: WulaLa
WulfgaR [WulfgaR] . . . . Owner: WulfgaR
WyRd [WyRd] . . . . Owner: WyRd
WysiWyg [WysiWyg] . . . . Owner: ScouBidou



Code


[26/9/04] actions/pageindex.php file after this mod:

<?php
if ($pages = $this->LoadAllPages())
{
	if (isset($_REQUEST["letter"])) $requested_letter = $_REQUEST["letter"]; else $requested_letter = '';
	if (!$requested_letter && isset($letter)) $requested_letter = strtoupper($letter); 
	$cached_username = $this->GetUserName();
	$user_owns_pages = false;
	$link = $this->href("", "", "letter=");
	$index_header = "<strong><a href='$link'>All </a></strong> \n";
	$index_output = "";
	$current_character = "";
	$character_changed = false;

	foreach ($pages as $page)
	{
		$page_owner = $page["owner"];
		// $this->CachePage($page);

		$firstChar = strtoupper($page["tag"][0]);
		if (!preg_match("/[A-Za-z]/", $firstChar)) $firstChar = "#";
		if ($firstChar != $current_character) {
			$index_header .= "<strong><a href='$link$firstChar'>$firstChar</a></strong> \n";
			$current_character = $firstChar;
			$character_changed = true;
		}
		if ($requested_letter == '' || $firstChar == $requested_letter) {
			if ($character_changed) {
				$index_output .= "<br />\n<strong>$firstChar</strong><br />\n";
				$character_changed = false;
			}
			$index_output .= $this->Link($page["tag"]);

			if ($cached_username == $page_owner) {                       
				$index_output .= "*";
				$user_owns_pages = true;
			} elseif ($page_owner != '(Public)' && $page_owner != '') {
				$index_output .= " . . . . Owner: ".$page_owner;
			}
			 	$index_output .= "<br />\n";    
		}
	}
	$index_header .= "<br />";
	if ($user_owns_pages) $index_output .= "<br />\n* Indicates a page that you own.<br />\n";    
	print $index_header.$index_output;
} else {
	print("<em>No pages found.</em>");
}
?>
There are 5 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki