Links in Accordian return a 404
Permalink Browser Info Environment
I have multiple accordians on a single page. All of the links return a 404 error:
http://paccoastsupply.com/our-companies...
I tried what was recommended under Support topic: File links in the editor not working, but the fix didn't work for me, although I'm not a developer and I'm not sure they were even installed in the right place:
public function add()
{
$this->requireAsset('redactor');
$this->requireAsset('core/file-manager');
$this->requireAsset('core/lightbox');
}
public function edit()
{
$this->requireAsset('redactor');
$db = Loader::db();
$items = $db->GetAll('SELECT * from btVividSimpleAccordionItem WHERE bID = ? ORDER BY sortOrder', array($this->bID));
$this->set('items', $items);
$this->requireAsset('core/file-manager');
$this->requireAsset('core/lightbox');
}
public function view()
{
$db = Loader::db();
$items = $db->GetAll('SELECT * from btVividSimpleAccordionItem WHERE bID = ? ORDER BY sortOrder', array($this->bID));
$this->set('items', $items);
$this->requireAsset('css', 'font-awesome');
switch($this->semantic){
case "h2":
$openTag = "<h2 class='panel-title'>";
$closeTag = "</h2>";
break;
case "h3":
$openTag = "<h3 class='panel-title'>";
$closeTag = "</h3>";
break;
case "h4":
$openTag = "<h4 class='panel-title'>";
$closeTag = "</h4>";
break;
case "paragraph":
$openTag = "<p class='panel-title'>";
$closeTag = "</p>";
break;
case "span":
$openTag = "<span class='panel-title'>";
$closeTag = "</span>";
break;
}
$this->set("openTag",$openTag);
$this->set("closeTag",$closeTag);
$this->requireAsset('core/file-manager');
$this->requireAsset('core/lightbox');
}
Thank you.
http://paccoastsupply.com/our-companies...
I tried what was recommended under Support topic: File links in the editor not working, but the fix didn't work for me, although I'm not a developer and I'm not sure they were even installed in the right place:
public function add()
{
$this->requireAsset('redactor');
$this->requireAsset('core/file-manager');
$this->requireAsset('core/lightbox');
}
public function edit()
{
$this->requireAsset('redactor');
$db = Loader::db();
$items = $db->GetAll('SELECT * from btVividSimpleAccordionItem WHERE bID = ? ORDER BY sortOrder', array($this->bID));
$this->set('items', $items);
$this->requireAsset('core/file-manager');
$this->requireAsset('core/lightbox');
}
public function view()
{
$db = Loader::db();
$items = $db->GetAll('SELECT * from btVividSimpleAccordionItem WHERE bID = ? ORDER BY sortOrder', array($this->bID));
$this->set('items', $items);
$this->requireAsset('css', 'font-awesome');
switch($this->semantic){
case "h2":
$openTag = "<h2 class='panel-title'>";
$closeTag = "</h2>";
break;
case "h3":
$openTag = "<h3 class='panel-title'>";
$closeTag = "</h3>";
break;
case "h4":
$openTag = "<h4 class='panel-title'>";
$closeTag = "</h4>";
break;
case "paragraph":
$openTag = "<p class='panel-title'>";
$closeTag = "</p>";
break;
case "span":
$openTag = "<span class='panel-title'>";
$closeTag = "</span>";
break;
}
$this->set("openTag",$openTag);
$this->set("closeTag",$closeTag);
$this->requireAsset('core/file-manager');
$this->requireAsset('core/lightbox');
}
Thank you.
Type: | Discussion |
---|---|
Status: | New |