It looks like you're new here. If you want to get involved, click one of these buttons!
<?
$this->load->library->database;
$sql = "select * from fuel_page_variables, fuel_pages where fuel_pages.location like ('work%') and fuel_pages.published = 'yes' and fuel_page_variables.page_id = fuel_pages.id and fuel_page_variables.name = 'page_title' order by fuel_page_variables.value;";
$result = $this->db->query($sql);
foreach($result->result() as $row){
?>
<li><a href="/<? print $row->location; ?>"> <? print $row->value; ?></a></li>
<? } ?>
Comments
Here's my updated mark-up for reference:
<? $CI->load->database(); $sql = "select * from fuel_page_variables, fuel_pages where fuel_pages.location like ('work%') and fuel_pages.published = 'yes' and fuel_page_variables.page_id = fuel_pages.id and fuel_page_variables.name = 'page_title' order by fuel_page_variables.value;"; $result = $CI->db->query($sql); foreach($result->result() as $row){ ?> <li><a href="/<? print $row->location; ?>"> <? print $row->value; ?></a></li> <? } ?>
THANK YOU.
When I update _blocks from the admin the changes aren't reflected on the front-end. However, when I update them in my WYSWIG, upload and update within the CMS the blocks work, but they really need to be manageable via admin.
Do I need to add a helper somewhere?