-
-
Save akroii/458b9a2902a0a06d93d36c0aef75ae65 to your computer and use it in GitHub Desktop.
find content by id of its page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$objPage = \PageModel::findByIdOrAlias( $alias ); | |
$strUrl = $this->generateFrontendUrl( $objPage->row() ); | |
$strUrl = $this->replaceInsertTags('{{link_url::pageAlias}}'); |
Author
akroii
commented
Oct 5, 2016
•
If inserttag is in TL_HEAD or TL_BODY:
\Controller::replaceInsertTags('{{file::cdbe6d70-dcb2-11e6-9352-b193cb3fda88}}',false);
<?php
global $objPage;
//$objPage->alias;
//$objPage->id;
$foo = \Input::get('auto_item');
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment