GetSimple Support Forum

Full Version: Files in folder "pages"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there the possibility of knowing the number of pages in the folder "pages"?
You could easily download the pages folder using your preferred ftp program and use windows explorer to highlight and get a count of how many pages (XML documents) you have but that would be superfluous. It is easier to look at the bottom of the page in the admin where it tells you how many pages you currently have.
if you use the i18N-plugin, http://get-simple.info/extend/plugin/i18n/69/, the number of pages will be listed below the pages in the page management view
Bak Wrote:Is there the possibility of knowing the number of pages in the folder "pages"?

If you want to display or use that number in your template, components, etc.:

Code:
<?php echo count(glob(GSDATAPAGESPATH.'*.xml')); ?>
Carlos Wrote:
Bak Wrote:Is there the possibility of knowing the number of pages in the folder "pages"?

If you want to display or use that number in your template, components, etc.:

Code:
<?php echo count(glob(GSDATAPAGESPATH.'*.xml')); ?>


Thankyou...great!