Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Files in folder "pages"
#1
Is there the possibility of knowing the number of pages in the folder "pages"?
Reply
#2
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.
Todo arde si le aplicas la chispa adecuada.
Reply
#3
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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
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')); ?>
Reply
#5
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!
Reply




Users browsing this thread: 1 Guest(s)