VL Entry URL
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Viget Labs
Structure support
Feature Request
Dunique
|
Posted: 17 October 2013 09:41 AM |
|
|
|
By adding the following code on line 76, you got also structure support for the var {structure_url}
if ( $channel_pattern == '{structure_url}' && file_exists( PATH_THIRD.'structure/helper.php' ) ) { require_once PATH_THIRD.'structure/helper.php'; $Sql_structure = new Sql_structure(); $pages = $Sql_structure->get_site_pages(); $this->EE->input->get('entry_id'); $channel_pattern = $pages['uris'][$this->EE->input->get('entry_id')]; }
Hope you like it :-)
|
|
|
Viget
|
Posted: 17 October 2013 03:02 PM |
# 1
|
|
Developer
|
Hmm I thought that Structure sets the page_url variable for you. Are you not seeing that?
|
|
|
Dunique
|
Posted: 18 October 2013 02:07 AM |
# 2
|
|
|
That doesn`t work under ee 2.6.1
|
|
|
Viget
|
Posted: 18 October 2013 10:13 PM |
# 3
|
|
Developer
|
We just released version 1.3 with Structure support. Thanks for the suggestion!
|
|
|