WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Small mod for adding sub pages
  • Print
Pages: [1]   Go Down

Author Topic: Small mod for adding sub pages  (Read 5073 times)

Offline noname8

  • Posts: 151
Small mod for adding sub pages
« on: November 16, 2010, 03:19:42 PM »
So If you have wb 2.8 and huge site it's pain for adding 20 psc of sub pages under same page.


To make it easier I've added small link + session variable. Of course there is the green + sign on the right but this saves time even more.

admin/pages/add.php
Code: [Select]
//line 43
$_SESSION['lastaddparentpage']=$parent;

admin/pages/index.php

Code: [Select]
//line 570
$latestaddhacktxt='';
if($_SESSION['lastaddparentpage'] >1) $latestaddhacktxt='(Same)';
// Insert language text and messages
//...
//...
//...
//line 589 add 1 more line:
'INTRO_LINK' => $MESSAGE['PAGES']['INTRO_LINK'],
'LATESTADDHACK' => '<a href="#" onclick="add_child_page('.$_SESSION[lastaddparentpage].');return false;" title="Click to set to latest">'.$latestaddhacktxt.'</a>'

and templates\wb_theme\templates\pages.htt:

Code: [Select]
// find {TEXT_PARENT}: and convert the line to
  <td width="70">{TEXT_PARENT}: {LATESTADDHACK}</td>



Any suggestions are welcome
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Small mod for adding sub pages
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2