Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Extensions / Navigation & Structure / Page siblings

List all siblings of a page and navigate to previous/next page

This plugin lists all siblings of a page and allows easy navigation to previous/next page. As seen on the Cotonti download page (See also).

#1. Usage Example

<!-- BEGIN: SIBLINGS -->
<ul id="siblings">
 <!-- BEGIN: SIBLING -->
 <li class="{PAGE_SIBLING_ODDEVEN}">
  <a href="{PAGE_SIBLING_URL}"<!-- IF {PAGE_SIBLING_ISCURRENT} --> style="font-weight:bold;"<!-- ENDIF -->>{PAGE_SIBLING_NUM}. {PAGE_SIBLING_TITLE} ({PAGE_SIBLING_AUTHOR})</a>
 </li>
 <!-- END: SIBLING -->
</ul>
<!-- END: SIBLINGS -->

#2. Github

This extension can also be found on Github. If you want to improve it, extend upon it or add a localisation, please feel free to fork it.


1. dedushka  2011-09-30 13:30

Thanks: 0

but how to use it?

2. GHengeveld  2011-10-16 20:46

Thanks: 0

I've added a usage example for your convenience.

3. Kingsley  2012-01-14 01:14

Thanks: 0

all kinds off errors:

Warning: include(plugins/similar/similar.page.php) [function.include]: failed to open stream: No such file or directory in F:\xampp\htdocs\sienna\fraggers\modules\page\inc\page.main.php on line 265

Warning: include() [function.include]: Failed opening 'plugins/similar/similar.page.php' for inclusion (include_path='.;F:\xampp\php\PEAR') in F:\xampp\htdocs\sienna\fraggers\modules\page\inc\page.main.php on line 265

Warning: include(plugins/similar/similar.page.php) [function.include]: failed to open stream: No such file or directory in F:\xampp\htdocs\sienna\fraggers\modules\page\inc\page.main.php on line 265

Warning: include() [function.include]: Failed opening 'plugins/similar/similar.page.php' for inclusion (include_path='.;F:\xampp\php\PEAR') in F:\xampp\htdocs\sienna\fraggers\modules\page\inc\page.main.php on line 265

Warning: include(plugins/similar/similar.page.php) [function.include]: failed to open stream: No such file or directory in F:\xampp\htdocs\sienna\fraggers\modules\page\inc\page.main.php on line 265

Warning: include() [function.include]: Failed opening 'plugins/similar/similar.page.php' for inclusion (include_path='.;F:\xampp\php\PEAR') in F:\xampp\htdocs\sienna\fraggers\modules\page\inc\page.main.php on line 265

 

and how do I remove the main and (maybe) sub cat from the output?

4. GHengeveld  2012-06-03 23:11

Thanks: 0

Those errors are unrelated to pagesiblings. It seems you've removed a plugin named 'similar' without uninstalling it using the admin panel.

5. Hantr  2018-02-07 06:38

Thanks: 0

Подскажите пожалуйста как в этом плагине ограничить количество выводимых заголовков?

6. Kort  2018-03-30 06:32

Thanks: 0

Так он выводит только два -- предыдущий и следующий

Total: 6, on page: 6

Only registered users can post new comments