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 »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • [wblinkXX] to my template
  • Print
Pages: [1]   Go Down

Author Topic: [wblinkXX] to my template  (Read 4216 times)

Offline Tinke

  • Posts: 32
[wblinkXX] to my template
« on: November 23, 2009, 12:23:04 AM »
Hello,
I have small problem.
I have a site which has lots of links to website baker pages. And many links are outside WebsiteBaker content -area.
Is it possible to [wblink-page-id] style link added to my tempalte file.
example: <a href="[wblink3]">My Link</a>
Note. This link is not a WYSIWYG editor page. This link are my template footer.   :-)
Logged

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: [wblinkXX] to my template
« Reply #1 on: November 23, 2009, 03:51:33 AM »
It is possibel to do in a inofficial way.

You must buffer your footer and do a extra parsing

Code: [Select]
<?php
  ob_start
();
?>

...
place here all your HTML and PHP of your footer (including your [wblinkxxx] parts)
...
<?php
  $output 
= ob_get_contents();
  
ob_end_clean();
  
$wb->preprocess($output);
  echo 
$output;
?>

I've not testet yet... but it should work. (without any guaranty) 8-)
« Last Edit: November 23, 2009, 03:55:54 AM by DarkViper »
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline Tinke

  • Posts: 32
Re: [wblinkXX] to my template
« Reply #2 on: November 24, 2009, 10:23:05 AM »
WOOW!  :-D
This works very vell.
Thank you very much!   :-D

--
Tinke
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • [wblinkXX] to my template
 

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