Jump to content


  • Posts

  • Joined

  • Last visited

About @byte

  • Birthday May 22

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

@byte's Achievements

Jr. Member

Jr. Member (3/6)



  1. Hi, i am using $config->ajax to change only the content of a page. Now the above solution is not working anymore because the page is not reloaded, so the Event Listener is not loaded. Any Idee how to solve it?
  2. Thanks a lot dragan for your help. I had to change one part $pg = $pages->get("link_Link=$url");
  3. This is my code: <?php include("./includes/head.inc"); ?> <div class="col-10-12"> <div class="toptitle"><?php echo $page->title; ?></div> <div id="content" class="content"> <?php $n = 0; $tabStyle = "<style type='text/css'>"; foreach($page->link_Top_Kategorie as $kategorie) { $n++; if ($n == 1){ echo "<input id='tab{$n}' type='radio' name='tabs' class='inputtab' checked>\n"; $tabStyle .= "#tab{$n}:checked ~ .tabcontent #content{$n}"; } else { echo "<input id='tab{$n}' type='radio' name='tabs' class='inputtab'>\n"; $tabStyle .= ",#tab{$n}:checked ~ .tabcontent #content{$n}"; } echo "<label for='tab{$n}' class='labeltab'>{$kategorie->link_Kategorie}</label>\n"; } $tabStyle .= "{display: block;}</style>"; echo $tabStyle; ?> <div id="tabcontent" class="tabcontent"> <?php $n = 0; foreach($page->link_Top_Kategorie as $kategorie) { $n++; echo "<div id='content{$n}'><p>\n"; foreach($kategorie->link_Repeater as $content) { $image = $content->link_Thumb; echo "<table class='tablelist'><tbody>"; echo "<tr><td rowspan='3' class='tablelist_Image'><img src='{$image->url}' alt='{$image->description}' width='80' /></td>"; echo "<td class='tablelist_Name'><strong>{$content->link_Name}</strong></td></tr>"; echo "<tr><td class='tablelist_Content'>{$content->link_Content}</td></tr>"; echo "<tr><td class='tablelist_Name'><span style='float:left;width:49%;text-align:left;'><a href='{$content->link_Link}' target='_blank' rel='noreferrer noopener'>Link besuchen</a></span><span style='float:right;width:49%;text-align:right;'>{$content->link_Count} mal besucht</span></td></tr>"; echo "</tbody></table>"; } echo "</p></div>"; } ?> </div> </div> </div> </div> <?php include("./includes/foot.inc"); ?>
  4. I got a repeater for the tabs witch has another repeater with all the links and a field 'link_ Count'. I would like to use the last example. How does your code know witch one to change?
  5. I got a template that shows a linklist in tabs. I would like to increase a integer field by 1 when the user clicks on the link. Is it possible to get the value of that field and add 1 to it and save it to the database?
  6. Thanks for your reply. Works perfect.
  7. Hallo, on a page i got 9 fields for Tabs. How can i access the data like in the following example? The way i am trying it, guess what , doesn't work. Any suggestions? <?php for($i = 1; $i <= 9; $i++) { echo "<input id='tab{$i}' type='radio' name='tabs' class='inputtab'"; if($i == 1) echo " checked='checked'"; echo ">\n"; echo "<label for='tab{$i}' class='labeltab'>$page->Tab.$i</label>\n"; } ?> Same on the TabContent <?php for($i = 1; $i <= 9; $i++) { echo "<div id='content{$i}'>"; echo "<p>$page->TabContent.$i</p></div>"; } ?>
  8. Hi, instead of letting pw handel the error pages i want to use my own. I got one page handling all errors by switching $_SERVER['REDIRECT_STATUS']. But it looks like pw is allways handeling the error pages no matter if i am commenting it out in the htaccess. What do i have to write in the htaccess to use my own error page?
  9. The Statistik-Script is PHP-Web-Stat. I copyed all files to the root/stat/ now and it works. Thanks a lot for your quick replys. So if i want to include a file in a template from there it schould be include("../stat/config/tracking_code.php");
  10. Hi, i am new to processwire and trying to setup a simple homepage. I am allmost done with and it works god so far. Now i want to use a statistik-script on my page. I copyed all file to a subdir under site/templates/stat/. But i get no access to that subfolder under processwire to install the script. Also i need access to that script for counting and have the user set a opt-out cokkie. How can i get access to files in that subfolder? Thanks in advance for help!
  • Create New...