Warning: strpos(): Empty needle in /home/joomvpjd/_pages/libraries/joomlatools-components/pages/dispatcher/router/redirect.php on line 35

Warning: strpos(): Empty needle in /home/joomvpjd/_pages/libraries/joomlatools-components/pages/dispatcher/router/redirect.php on line 41

Fetching and displaying a Google Doc

Data coming from: https://docs.google.com/document/d/e/2PACX-1vTK9nkPIsoq6ZJeVm86ns4BX7Q0bOcMHV5jYoaGlsREXUxt22kDW2zt0Zh3wSF9mquuVQKlPFyRw9HK/pub

For more information see https://github.com/joomlatools/joomlatools-pages/pull/264

Is there also a cache with Gdoc & Gsheet?

Both use caching if:

  • Joomla caching is enabeld.
  • you set 'http_client_cache' => true in your config.php in the /joomlatools-pages/ directory

Is on now so the cache for the Gdoc and Gsheet is working, you will find a new dir called /joomlatools-pages/cache/responses, containing two files, one for the Gdoc and one for the Gsheet.
The Gdoc is cached always, aka pages will not recheck of the original file has changed, the Gsheet uses pages webservice caching which is a smart cache, it will know when you update the csv.


The content of the Gdoc hereafter

Lorem Ipsum

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."

"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ex sapien, euismod eget lorem a, semper imperdiet nisi. Nulla ultricies dolor vitae rutrum sodales. Donec tempus, nisl in interdum maximus, tellus nisi egestas odio, a convallis elit tortor eu nisl. Nam pharetra egestas purus. Phasellus laoreet leo a rutrum feugiat. Maecenas nibh urna, dictum sit amet suscipit vitae, cursus eget dolor. In in nunc felis. Nullam imperdiet nulla purus, ut lobortis nisl fermentum nec. Quisque facilisis magna risus, vitae volutpat libero dictum eget. Ut id nulla ultricies, luctus libero at, iaculis magna. Praesent porttitor id augue ac facilisis. Aenean facilisis nisl purus, non mollis ipsum posuere nec. Donec consectetur et mi et tristique. Nulla enim dolor, varius eu semper vel, interdum et dolor.

Etiam molestie ultrices bibendum. Proin eu viverra ante. Nam pellentesque justo mi, non maximus mi tincidunt sit amet. Praesent sodales justo a lectus aliquam bibendum. Nullam nec sem lectus. Fusce mattis eros at justo tincidunt accumsan. Duis nec nunc vel sapien tempor finibus vitae eu nulla. Etiam nec lacinia augue, quis vestibulum eros. Phasellus venenatis consequat metus, et malesuada ante gravida ac. Quisque dapibus egestas viverra. Nunc eget justo sit amet ex aliquet lobortis tristique at tortor. Integer auctor diam ipsum, a porta tellus semper id.

Aenean venenatis malesuada mollis. Suspendisse eget felis eu orci lacinia volutpat. Ut eu nisi at dolor pulvinar dapibus. Nullam rutrum sit amet tellus ac commodo. Cras malesuada lacus lectus, elementum eleifend eros aliquam id. Sed sed eros porttitor, tempus urna volutpat, vehicula dolor. Sed venenatis ligula sit amet ligula dignissim rutrum. Pellentesque convallis mollis risus, ac accumsan lacus molestie eu. Nunc dignissim enim libero, sed rutrum magna blandit ut.

Integer vitae arcu nec leo finibus pretium in vitae risus. Proin sit amet elementum enim. Mauris quis imperdiet dui. Pellentesque dapibus nulla sit amet ex tristique rhoncus. Donec laoreet mollis risus laoreet ornare. Morbi pulvinar pharetra gravida. Sed placerat porta nibh vitae tempor.

In et nisl ornare, convallis eros ac, molestie mauris. Nunc tellus sapien, commodo scelerisque pharetra vel, dapibus et felis. Vivamus faucibus, orci sed tempor pellentesque, arcu ante iaculis quam, in gravida turpis nisi sed massa. Pellentesque a semper lacus. Proin egestas malesuada ante vitae mollis. Pellentesque eget quam sed lectus tempor vulputate at euismod augue. Sed libero lacus, tincidunt vel vulputate sagittis, placerat id odio. Suspendisse vulputate fermentum sapien, quis mollis nulla convallis non. Aenean quis ante sed lorem hendrerit vulputate id vel orci. Maecenas mollis odio et elit feugiat tempor. Sed sit amet scelerisque lorem.