Loading...
Skip to main content
Site identity, navigation, etc.
Log in
Username
Password
I forgot my password
CapsLock is on.
Log in
Stay in SSL mode
Navigation and related functionality and content
Related content
View template: tiki-listpages_content.tpl
Edit CSS
Template listing
{if !$ts.enabled && ($cant_pages > 1 or $initial or $find)} {initials_filter_links} {/if} {if $tiki_p_remove eq 'y' or $prefs.feature_wiki_multiprint eq 'y'} {if isset($checkboxes_on) and $checkboxes_on eq 'n'} {assign var='checkboxes_on' value='n'} {else} {assign var='checkboxes_on' value='y'} {/if} {else} {assign var='checkboxes_on' value='n'} {/if} {if $find ne '' and $listpages|@count ne '0'} <p>{tr}Found{/tr} "{$find|escape}" {tr}in{/tr} {$listpages|@count} {tr}pages{/tr}.</p> {/if} {* Action attribute has to be set explicitly so that plugins could get use of it *} {if isset($checkboxes_on) and $checkboxes_on eq 'y'} <form name="checkboxes_on" id="checkboxes_on" method="post" action="tiki-listpages.php"> {/if} {* Conditionally display this remark*} {if $prefs.feature_stats eq 'n' AND $tiki_p_admin eq 'y'} <div class="container"> <div class="row"> <div class="col-12" style="padding:10px 0px; font-weight:bolder;"> {*Leave the style declaration here first but it should be included in the scss files for better maintainance soon*} {tr _0='<span class="icon icon-information fas fa-info-circle"></span>' _1='<a target="_blank" href="tiki-admin.php?page=stats&highlight=feature_stats">' _2='</a>' _3='<a target="_blank" href="https://doc.tiki.org/Stats"><span class="icon icon-help fas fa-question-circle"></span></a>'}%0 To see page hits, please %1 activate %2 the stats feature %3{/tr} </div> </div> </div> {/if} {assign var='pagefound' value='n'} <div id="{$ts.tableid}-div" class="{if $js}table-responsive{/if} ts-wrapperdiv" {if !empty($ts.enabled)}style="visibility:hidden;"{/if}> {*the table-responsive class cuts off dropdown menus *} <table id="{$ts.tableid}" class="table normal table-striped table-hover" data-count="{$cant|escape}"> <thead> <tr> {if isset($checkboxes_on) and $checkboxes_on eq 'y'} <dh id="checkbox"> {select_all checkbox_names='checked[]' tablesorter="{$ts.enabled}"} </dh> {assign var='cntcol' value='1'} {else} {assign var='cntcol' value='0'} {/if} {if $prefs.wiki_list_id eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="pageid"> {self_link _sort_arg='sort_mode' _sort_field='page_id'}{tr}Id{/tr}{/self_link} </th> {else} <th id="pageid">{$ln|escape}</th> {/if} {if $prefs.wiki_list_name eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="pagename"> {self_link _sort_arg='sort_mode' _sort_field='pageName'}{tr}Page{/tr}{/self_link} </th> {/if} {if isset($wplp_used)} {foreach from=$wplp_used key=lc item=ln} <th>{$ln|escape}</th> {/foreach} {/if} {if $prefs.wiki_list_hits eq 'y' AND $prefs.feature_stats eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="hits">{self_link _sort_arg='sort_mode' _sort_field='hits'}{tr}Hits{/tr}{/self_link}</th> {/if} {if $prefs.wiki_list_lastmodif eq 'y' or $prefs.wiki_list_comment eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="lastmodif"> {assign var='lastmod_sortfield' value='lastModif'} {assign var='lastmod_shorttitle' value="{tr}Last modification{/tr}"} {if $prefs.wiki_list_lastmodif eq 'y' and $prefs.wiki_list_comment eq 'y'} {assign var='lastmod_title' value="{tr}Last modification{/tr} / {tr}Comment{/tr}"} {elseif $prefs.wiki_list_lastmodif eq 'y'} {assign var='lastmod_title' value="{tr}Last modification{/tr}"} {else} {assign var='lastmod_title' value="{tr}Comment{/tr}"} {assign var='lastmod_sortfield' value='comment'} {assign var='lastmod_shorttitle' value="{tr}Comment{/tr}"} {/if} {self_link _sort_arg='sort_mode' _sort_field=$lastmod_sortfield _title=$lastmod_title}{$lastmod_shorttitle}{/self_link} </th> {/if} {if $prefs.wiki_list_creator eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="creator"> {self_link _sort_arg='sort_mode' _sort_field='creator' _title="{tr}Page creator{/tr}"}{tr}Creator{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_user eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="lastauthor"> {self_link _sort_arg='sort_mode' _sort_field='user' _title="{tr}Last author{/tr}"}{tr}Last author{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_lastver eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="version"> {self_link _sort_arg='sort_mode' _sort_field='version' _title="{tr}Last version{/tr}"}{tr}Last version{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_status eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="status" style="text-align:center;"> {self_link _sort_arg='sort_mode' _sort_field='flag' _icon_name='lock'}{tr}Status of the page{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_versions eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="versions"> {self_link _sort_arg='sort_mode' _sort_field='versions' _title="{tr}Versions{/tr}"}{tr}Version{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_links eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="links"> {self_link _sort_arg='sort_mode' _sort_field='links' _title="{tr}Links to other items in page{/tr}"}{tr}Links{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_backlinks eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="backlinks"> {self_link _sort_arg='sort_mode' _sort_field='backlinks' _title="{tr}Links to this page in other pages{/tr}"}{tr}Backl.{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_size eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="size"> {self_link _sort_arg='sort_mode' _sort_field='page_size' _title="{tr}Page size{/tr}"}{tr}Size{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_language eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="language"> {self_link _sort_arg='sort_mode' _sort_field='lang' _title="{tr}Language{/tr}"}{tr}Lang.{/tr}{/self_link} </th> {/if} {if $prefs.wiki_list_categories eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="categories">{tr}Categories{/tr}</th> {/if} {if $prefs.wiki_list_categories_path eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="catpaths">{tr}Categories{/tr}</th> {/if} {if $prefs.wiki_list_rating eq 'y' AND $prefs.feature_polls eq 'y'} {assign var='cntcol' value=$cntcol+1} <th id="rating"> {self_link _sort_arg='sort_mode' _sort_field='rating' _title="{tr}Ratings{/tr}"}{tr}Ratings{/tr}{/self_link} </th> {/if} {if $show_actions eq 'y'} {assign var='cntcol' value=$cntcol+1} <td id="actions"></td> {/if} </tr> </thead> <tbody> {section name=changes loop=$listpages} {if isset($mapview) and $mapview} <div class="listpagesmap" style="display:none;">{object_link type="wiki page" id="`$listpages[changes].pageName|escape`"}</div> {/if} {if $find eq $listpages[changes].pageName} {assign var='pagefound' value='y'} {/if} <tr> {if $checkboxes_on eq 'y'} <td class="checkbox-cell"> <input type="checkbox" class="form-check-input" aria-label="{tr}Select{/tr}" name="checked[]" value="{$listpages[changes].pageName|escape}"> </td> {/if} {if $prefs.wiki_list_id eq 'y'} <td class="integer"> <a href="{$listpages[changes].pageName|sefurl}" class="link tips" title="{$listpages[changes].pageName|escape}:{tr}View page{/tr}"> {$listpages[changes].page_id} </a> </td> {/if} {if $prefs.wiki_list_name eq 'y'} <td class="text"> {* The variant of the object link below adds the baseurl as received by the request to the href attribute generated. I.e. "http://192.168.1.10/tiki-listpages.php?page=MyPage" instead of "tiki-listpages.php?page=MyPage" This leads to trouble when using a reverse proxy that takes an external fqdn and maps it to a local address. Other templates do not use this object_link but an simple <a href></a>. See i.e tiki_lastchanges.tpl so we use it here as well. Same for the link generated for the page id (wiki_list_id) above. *} {* {object_link type=wiki id=$listpages[changes].pageName url=$listpages[changes].pageName|sefurl:'wiki':'':$all_langs title=$listpages[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true} *} <a href="{$listpages[changes].pageName|sefurl}" class="link tips" title="{$listpages[changes].pageName|escape}:{tr}View page{/tr}"> {$listpages[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true|escape} </a> {if $prefs.wiki_list_description eq 'y' && $listpages[changes].description neq ""} <div class="subcomment"> {$listpages[changes].description|truncate:$prefs.wiki_list_description_len:"...":true} </div> {/if} {if !empty($listpages[changes].snippet)} <div class="subcomment">{$listpages[changes].snippet}</div> {/if} </td> {/if} {if isset($wplp_used)} {foreach from=$wplp_used key=lc item=ln} <td class="text"> {if $listpages[changes].translations[$lc]} <a href="{$listpages[changes].translations[$lc]|sefurl}" class="link" title="{tr}View page{/tr} {$listpages[changes].translations[$lc]|escape}"> {$listpages[changes].translations[$lc]|escape} </a> {/if} </td> {/foreach} {/if} {if $prefs.wiki_list_hits eq 'y' AND $prefs.feature_stats eq 'y'} <td class="integer"> {$listpages[changes].hits} </td> {/if} {if $prefs.wiki_list_lastmodif eq 'y' or $prefs.wiki_list_comment eq 'y'} <td class="date"> {if $prefs.wiki_list_lastmodif eq 'y'} <div>{$listpages[changes].lastModif|tiki_short_datetime}</div> {/if} {if $prefs.wiki_list_comment eq 'y' && $listpages[changes].comment neq ""} <div> <i>{$listpages[changes].comment|truncate:$prefs.wiki_list_comment_len:"...":true|escape}</i> </div> {/if} </td> {/if} {if $prefs.wiki_list_creator eq 'y'} <td class="username"> {$listpages[changes].creator|userlink} </td> {/if} {if $prefs.wiki_list_user eq 'y'} <td class="username"> {$listpages[changes].user|userlink} </td> {/if} {if $prefs.wiki_list_lastver eq 'y'} <td class="integer"> {$listpages[changes].version} </td> {/if} {if $prefs.wiki_list_status eq 'y'} <td class="icon"> {if $listpages[changes].flag eq 'locked'} {icon name='lock' alt="{tr}Locked{/tr}"} {else} {icon name='unlock' alt="{tr}unlocked{/tr}"} {/if} </td> {/if} {if $prefs.wiki_list_versions eq 'y'} {if $prefs.feature_history eq 'y' and $tiki_p_wiki_view_history eq 'y'} <td class="integer"> <a class="link" href="tiki-pagehistory.php?page={$listpages[changes].pageName|escape:"url"}"> {$listpages[changes].version} </a> </td> {else} <td class="integer"> {$listpages[changes].version} </td> {/if} {/if} {if $prefs.wiki_list_links eq 'y'} <td class="integer"> {$listpages[changes].links} </td> {/if} {if $prefs.wiki_list_backlinks eq 'y'} {if $prefs.feature_backlinks eq 'y'} <td class="integer"> <a class="link" href="tiki-backlinks.php?page={$listpages[changes].pageName|escape:"url"}"> {$listpages[changes].backlinks} </a> </td> {else} <td class="integer">{$listpages[changes].backlinks}</td> {/if} {/if} {if $prefs.wiki_list_size eq 'y'} <td class="integer">{$listpages[changes].len|kbsize}</td> {/if} {if $prefs.wiki_list_language eq 'y'} <td class="text"> {$listpages[changes].lang} </td> {/if} {if $prefs.wiki_list_categories eq 'y'} <td class="text"> {foreach $listpages[changes].categname as $categ} {if !$categ@first}<br>{/if} {$categ|escape} {/foreach} </td> {/if} {if $prefs.wiki_list_categories_path eq 'y'} <td class="text"> {foreach $listpages[changes].categpath as $categpath} {if !$categpath@first}<br>{/if} {$categpath|escape} {/foreach} </td> {/if} {if $prefs.wiki_list_rating eq 'y' AND $prefs.feature_polls eq 'y'} <td class="integer"> {if isset($listpages[changes].rating)}{$listpages[changes].rating}{/if} </td> {/if} {if $show_actions eq 'y'} <td class="action"> {actions} {strip} {if $listpages[changes].perms.tiki_p_edit eq 'y'} <action> <a href="tiki-editpage.php?page={$listpages[changes].pageName|escape:"url"}"> {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} </a> </action> <action> <a href="tiki-copypage.php?page={$listpages[changes].pageName|escape:"url"}&version=last"> {icon name='copy' _menu_text='y' _menu_icon='y' alt="{tr}Copy{/tr}"} </a> </action> {/if} {if $prefs.feature_history eq 'y' and $listpages[changes].perms.tiki_p_wiki_view_history eq 'y'} <action> <a href="tiki-pagehistory.php?page={$listpages[changes].pageName|escape:"url"}"> {icon name='history' _menu_text='y' _menu_icon='y' alt="{tr}History{/tr}"} </a> </action> {/if} {if $listpages[changes].perms.tiki_p_assign_perm_wiki_page eq 'y'} <action> {permission_link mode=text type="wiki page" permType=wiki id=$listpages[changes].pageName} </action> {/if} {if $listpages[changes].perms.tiki_p_remove eq 'y'} <action> <a href="{bootstrap_modal controller=wiki action=remove_pages checked=$listpages[changes].pageName version=last}"> {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} </a> </action> {/if} {/strip} {/actions} </td> {/if} </tr> {sectionelse} {$find_htmlescaped = $find|escape} {$initial_htmlescaped = $initial|escape} {if $exact_match ne 'n'}{$intro = "{tr}No page:{/tr}"}{else}{$intro = "{tr}No pages found with:{/tr}"}{/if} {if $find ne '' && $aliases_were_found == 'y'} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped". <br/>However, some page aliases fitting the query were found (see Aliases section above)."} {elseif $find ne '' && $initial ne '' && $aliases_were_found == 'y'} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped"and starting with " $initial_htmlescaped "e;. <br/>However, some page aliases fitting the query were found (see Aliases section above)."} {elseif $find ne '' && $initial ne ''} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped" and starting with " $initial_htmlescaped "."} {elseif $find ne ''} {norecords _colspan=$cntcol _text="$intro "$find_htmlescaped"."} {else} {norecords _colspan=$cntcol _text="{tr}No pages found.{/tr}"} {/if} {/section} </tbody> </table> </div> {if isset($ts.enabled) } <script> // Otherwise, All pages are displayed, whatever was searched for var myfilter='{$find|escape:javascript}'; </script> {jq} if (myfilter) { var pageNameColumn = $('#pagename').data('column'); $('input[data-column=' + pageNameColumn + ']').val(myfilter); var currentFilter = []; for(i = 0; i < $('#listpages1 th').last().data('column'); i++) { var value = i == pageNameColumn ? myfilter : ''; currentFilter.push(value); } $('#listpages1').data('lastSearch', currentFilter); } {/jq} {/if} {if !$ts.ajax} {if $checkboxes_on eq 'y' && count($listpages) > 0} {* what happens to the checked items? *} <div class="input-group col-sm-8 mb-3"> <select name="action" class="form-select" id="submit_mult"> <option value="no_action" selected disabled> {tr}Select action to perform with checked{/tr}... </option> {if $tiki_p_remove eq 'y'} <option value="remove_pages" >{tr}Remove{/tr}</option> {/if} {if $prefs.feature_wiki_multiprint eq 'y'} <option value="print_pages" >{tr}Print{/tr}</option> {if $prefs.print_pdf_from_url neq 'none'} <option value="export_pdf" >{tr}Download PDF{/tr}</option> {/if} {/if} {if $prefs.feature_wiki_usrlock eq 'y' and ($tiki_p_lock eq 'y' or $tiki_p_admin_wiki eq 'y')} <option value="lock_pages" >{tr}Lock{/tr}</option> <option value="unlock_pages" >{tr}Unlock{/tr}</option> {/if} {if $tiki_p_admin eq 'y'} <option value="zip">{tr}Download zipped file{/tr}</option> {/if} {if $tiki_p_admin eq 'y'} <option value="title">{tr}Add page name as page header{/tr}</option> {/if} {* add here e.g. <option value="categorize" >{tr}categorize{/tr}</option> *} </select> <button type="submit" form="checkboxes_on" formaction="{bootstrap_modal controller=wiki version=all}" class="btn btn-primary" onclick="confirmPopup()" > {tr}OK{/tr} </button> </div> {/if} {if $find and $tiki_p_edit eq 'y' and $pagefound eq 'n' and $alias_found eq 'n'} {capture assign='find_htmlescaped'}{$find|escape}{/capture} {capture assign='find_urlescaped'}{$find|escape:'url'}{/capture} <div class="t_navbar"> {button _text="{tr}Create Page:{/tr} $find_htmlescaped" href="tiki-editpage.php?page=$find_urlescaped&lang=$find_lang&templateId=$template_id&template_name=$template_name&categId=$create_page_with_categId" class="btn btn-primary" _title="{tr}Create{/tr}"} </div> {/if} {if $checkboxes_on eq 'y'} </form> {/if} {if !isset($ts.enabled) or !$ts.enabled} {if $pluginlistpages eq 'y' and $pagination eq 'y'} {pagination_links cant=$cant step=$maxRecords offset=$offset offset_arg=$offset_arg clean=$clean}{/pagination_links} {elseif $pluginlistpages eq 'y' and $pagination neq 'y'} {else} {pagination_links cant=$cant step=$maxRecords offset=$offset clean=$clean}{/pagination_links} {/if} {/if} {/if}
Related content
Most Popular Tags
adze
american woods
axe
broadleaf
broadleaf aspen
broadleafs
community
conifers
dendrology
eco friendly
education
froe
glossary
green
green woodworking
hammer
hard wood
hard woods
hardwoods
hickory
history
how to
joinery
literature
machinery
material processing
media
merchants
mortise
people
plane
poplar
safety
shaker
shave
society
soft woods
spokeshave
sustainable
template
tenon
terminology
tools
wood
works