Not working in single page?
Permalink Browser Info Environment
Hii michael, the slider not working in single page like profile, register, member.
since it was single page i was add manually
the image show, but not slide. when i view source code via firefox, the js and css file not include. i try to add it to controller, but stil not work
for now i added hardcode in view.php and work fine, although not c5 style
i use concrete5 5.4.2.2
thanks for the block. as far i know, its the best slider in the market
since it was single page i was add manually
$b = Block::getByName('Header-Slideshow'); //assume name on scrapbook $bv = new BlockView(); echo $bv->render($b, 'view');
the image show, but not slide. when i view source code via firefox, the js and css file not include. i try to add it to controller, but stil not work
public function on_page_view() { $html = Loader::helper('html'); $this->addHeaderItem($html->css('style.css')); $this->addHeaderItem($html->javascript('jquery.cycle.min.js')); }
for now i added hardcode in view.php and work fine, although not c5 style
$nav = Loader::helper('navigation'); ?> <link rel="stylesheet" type="text/css" href="/css/style.css" /> <script type="text/javascript" src="/js/jquery.cycle.min.js"></script>
i use concrete5 5.4.2.2
thanks for the block. as far i know, its the best slider in the market
Type: | Discussion |
---|---|
Status: | New |