Get the block path


/ Published in: PHP
Save to your folder(s)

Returns the path of the block. In this snippet, it is used within a block (to add images or certain other files)


Copy this code and paste it in your HTML
  1. $btID = $b->getBlockTypeID();
  2. $bt = BlockType::getByID($btID); //getByHandle($btHandle);
  3.  
  4. $uh = Loader::helper('concrete/urls');
  5. $uh->getBlockTypeAssetsURL($bt);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.