This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

abbasadel
abbasadel

Hi, I'm trying to use current page URL with the comments component but I have no idea how to do so.

[mycomp]
currentPage = ???
==
{% component 'mycomp' %}

I tried many things like

currentPage = {{page.url}}
currentPage = {{this.page.url}}

but nothing works so far. Any idea?

Thanks, Abbas

webBook
webBook

What about $this->page['baseFileName']

daftspunky
daftspunky

{{ ''|page }} will do it or {{ this.controller.currentPageUrl() }}

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.