Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AJAX Dataload API
#6
... figured out a WORKAROUND:

i placed a file "dataload.php" within the templates folder, with the following code:

Code:
<?php
if (!defined('IN_GS')) {die('you cannot load this page directly.');}
get_page_content();
?>

... so only the page content will be shown up.
Now set the page settings default template to this file (dropdown menu - choose dataload.php).

So I can load different block (pages) dynamically to the content div.

Okay, the content pages have to be set up twice. First for the default loading via url and second for dynamic loading.

Example pages:
- dynamic-instructions (page option: default template - dataload.php)
- dynamic-samples (page option: default template - dataload.php)
- instructions
- samples


The use of an identical prefix like "dynamic" (or anything else) will keep the clear content off the browsing users, and on the other hand will be automatically sorted within the pages admin section, for easy viewing and locating handling.

This will do the job ... the quickest and slickest way, imho Wink

(If somebody is interested in)

PS: Extended menu editing options would be helpful, also like using external links.
(will use a static navigation to solve that by now)
Reply


Messages In This Thread
AJAX Dataload API - by SiL3NC3 - 2011-12-30, 19:32:00
AJAX Dataload API - by mvlcek - 2011-12-30, 20:56:38
AJAX Dataload API - by m1k3y - 2011-12-30, 21:42:09
AJAX Dataload API - by SiL3NC3 - 2011-12-30, 22:14:48
AJAX Dataload API - by SiL3NC3 - 2011-12-30, 22:56:31
AJAX Dataload API - by SiL3NC3 - 2011-12-31, 22:22:05
AJAX Dataload API - by 5wooley4 - 2012-03-30, 06:06:06



Users browsing this thread: 1 Guest(s)