17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1315 Views |
-
Get $Title from Page.php

19 November 2008 at 2:27am
I am going to replace each $Title with an Image. The Image replacement work, but I can not find a way to pass the $Title variable from the .ss file to the actual function in Page.php.
ss template:
$ifr($Test) <-- This do not work!
Php:
function ifr($text) {
$text = DataObject::get('Title');
doIfr($text);
} -
Re: Get $Title from Page.php

19 November 2008 at 2:45am
If you want to replace just the Titles , why not override the Title method in your class ?
e.g. :
function Title() {
return $this->doIfr($this->Title);
}or something along those lines....
| 1315 Views | ||
|
Page:
1
|
Go to Top |


