You are not logged in.
Pages: 1
I'm just trying to link to images that have been uploaded. All the links in the database have a {staticroot} in front of them, otherwise I'd be able to link to them just fine. But this {staticroot} prefix gets in the way of the url.
Offline
Ok, well, I managed to get it to work with str_replace. Somehow I doubt that is what you're supposed to do, so if anyone feels like telling me the proper way, feel free.
Offline
Fetching module data using the base class functions, like get() or getApproved(), will use the internal function replaceInternalPageLinks() to make sure these variables are replaced with the actual URL set in the config.php file. If you're writing a new function in a custom module, it's best to run each item through the module's get() function:
public function getTeamMembers() {
$team = array();
$q = sqlquery("SELECT ...");
while ($f = sqlfetch($q)) {
$team[] = $this->get($f);
}
return $team;
}
Offline
Pages: 1