Hi,
I need get the current page's url for to insert in category template.
I tested:
1.- <%g%>
2.- <%Plugins::ULTRAGlobals::Get_Current_URL()%>
3.- and two 'Globals':
3.1.-
sub {
return $CFG->{build_root_url} .$ENV{REQUEST_URI};
}
3.2.-
sub {
use GT::CGI;
my $in = new GT::CGI;
my $url = $in->url(absolute => 1);
return $url;
}
All works fine in dynamic pages but don't work in static pages.
For example, if the URL is: http://www.mysite/category4/subcategory8/more32.html
The results are:
1.- (D) /category4/subcategory8/more32.html
(S) Unknown Tag: 'g'
2.- (D) http://www.mysite/category4/subcategory8/more32.html
(S) http://www.mysite
3.1.-(D) http://www.mysite/category4/subcategory8/more32.html
(S) http://www.mysite
3.2.- (D) /category4/subcategory8/more32.html
(S) nph-build.cgi
How could get the current URL in static pages? Or will be a problem in my site?
Thanks in advance.
JoseML
I need get the current page's url for to insert in category template.
I tested:
1.- <%g%>
2.- <%Plugins::ULTRAGlobals::Get_Current_URL()%>
3.- and two 'Globals':
3.1.-
sub {
return $CFG->{build_root_url} .$ENV{REQUEST_URI};
}
3.2.-
sub {
use GT::CGI;
my $in = new GT::CGI;
my $url = $in->url(absolute => 1);
return $url;
}
All works fine in dynamic pages but don't work in static pages.
For example, if the URL is: http://www.mysite/category4/subcategory8/more32.html
The results are:
1.- (D) /category4/subcategory8/more32.html
(S) Unknown Tag: 'g'
2.- (D) http://www.mysite/category4/subcategory8/more32.html
(S) http://www.mysite
3.1.-(D) http://www.mysite/category4/subcategory8/more32.html
(S) http://www.mysite
3.2.- (D) /category4/subcategory8/more32.html
(S) nph-build.cgi
How could get the current URL in static pages? Or will be a problem in my site?
Thanks in advance.
JoseML