Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:27 am EST

Geeklog Forums

custom Variables


doktor_j

Anonymous
Can someone help me Does anyone know how to create you own custom variables that can be called from the layout templates i.e
Text Formatted Code
<p>{my_custom_var}</p>
 

Without having to hack lib-custom.php ... any help is greatly appreciated

Dok
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can't add your own variables. Plugins can do that in a few places, though.

What are you trying to do?

bye, Dirk
 Quote

doktor_j

Anonymous
I would like to have a set of links to static pages to apear in the footer portion of my site. Because my site is in both french and english, I would like to make a custom php fuction that would change with the language chosen. (i am using LWC's and Euans multilanguage hack)

Since GL limits the ability of embedding PHP within a template file, I would like to create a custom function, for instance in lib-custom.php, and call it withina template file. Is this possible?

ThanX Dok
Very Happy
 Quote

All times are EST. The time is now 11:27 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content