Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Detailed page name

Quote Reply
Detailed page name
Hello,

Is there a way to have a custom detailed page name in place of using the id on the name?, I'm searching the forums with no luck.

Thanks for your help

Jesus

PS
I'm using Version: 3.0.4
Quote Reply
Re: [Jesus] Detailed page name In reply to
Hi,

You mean the detailed page URL's, but without _1234 in the URL? Unfortunatly not, as its required to have the ID in the URL (this is partly due to mod_rewrite needing the LinkID to work out which page to show... but its also to stop any possible duplication of URLs)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy thanks for your answer.

Right now my detailed page name its just <ID>.html and not any_name_here_<ID>.html <-Is this one possible?

Thanks
Quote Reply
Re: [Jesus] Detailed page name In reply to
Hi,

Yup, you can build it with Title_ID.html , or whatever you want. I can't remember if this was introduced in GLinks 3.0.4 or 3.2.0 though. It will be in Setup > Build Options > build_detail_format , if you have it.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy, I got 4 options here:

LinkID
FullCategoryName/Title_LinkID
FullCategoryName/Title_LinkID, shortened
Advanced...

Advanced option offers me: %ID%

Should I use advanced option to have %Title_ID% as you suggested?

or should use the one with the FullCategoryName?

Thanks
Quote Reply
Re: [Jesus] Detailed page name In reply to
Hi,

I would do it using "FullCategoryName/Title_LinkID" , as that gives you a lot more SEO keywords in the URL (which helps you with search results on google)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Thank you, will try that one.

Jesus
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy,
today i tried to set detailed name to
Code:
%Title%_%ID%
but I always got an 404 error!

Is there something wrong in my htaccess file?
Code:
# detailed pages rewrite
RewriteRule ^Detailed/([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]
RewriteRule ^.*L([0-9]+)/(.*)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]
RewriteRule ^.*L([0-9]+)/?$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Hi,

The problem is most likely with your rewrite rules. You need something like:

Code:
RewriteRule ^Detailed/.*/.*_([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Andy wrote:
Hi,

The problem is most likely with your rewrite rules. You need something like:

Code:
RewriteRule ^Detailed/.*/.*_([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]

Hi Andy,
thanks for your answer!
I tried it with this code. But it does not work!
Code:
# detailed pages rewrite
RewriteRule ^Detailed/.*/.*_([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]
RewriteRule ^.*L([0-9]+)/(.*)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]
RewriteRule ^.*L([0-9]+)/?$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]
Do I have to change the second and third line in detailed pages rewrite, too?

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Hi,

What is the actual URL for detailed pages that its creating?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Andy wrote:
Hi,

What is the actual URL for detailed pages that its creating?

Cheers

At the moment it looks like this
http://www.gpaed.de/Detailed/_Heute_spielen_wir..._Einzelf_rderung_mit_dem_Schwerpunkt_Unterst_tzte_Kommunikation_10027.html

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Mmm, well that should work then. Maybe try this one instead:

Code:
RewriteRule ^Detailed/.*_([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Andy wrote:
Mmm, well that should work then. Maybe try this one instead:

Code:
RewriteRule ^Detailed/.*_([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]

Yes this one works. Thanks a lot.
I have to change a lot of globals now from %ID% to %Title%_%ID% Frown
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Hi,

NP

For globals that use ID.html, you can change the line that makes the tag to:

Code:
$link->{detailed_url} = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $link->{ID} );

..and this will correctly change the URL (and also in the future if you ever change it again)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy,
it's not that easy.
I'm using loops with code like this
<a href="<%build_root_url%>/Detailed/<%ID%>.html">

First I thought I have to add just <%Title%>_ to this URL, but then I have different URLs
glinks creates URLs like this
http://www.domain.de/Detailed/this_is_the_title_15250.html

But when I add <%Title%> to the global loop it get URLs like this
http://www.domain.de/Detailed/this is the title_15250.html

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Try it with a little global:

get_detailed_url
Code:
sub {
return $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $_[0] );
}

Then call with:

<%get_detailed_url($ID)%>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Thanks Andy, I will check this tonight!

Matthias
gpaed.de
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy,
is there a way to get rid of the
/Detailed/
in my url and just get
http://www.domain.de/this_is_the_title_ID

without having all links build in the root directory.

I mean can I have all links build in a subdirectory, but rewrite rules still show this
http://www.domain.de/this_is_the_title_ID

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Yup, you should be able to do it by using this format for the Links:

Code:
%Title%_D%ID%

...then using this rewrite:

Code:
RewriteRule .*_D([0-9]+)\.html$ /cgi-bin/unterricht/page.cgi?g=Detailed/$1.html [L]

Then in Setup > Paths & URLs, change build_detail_url and build_detail_path so that they don't have /Detailed in any more.

The "D" is important, so GLinks knows that its dealing with a detailed page

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy,
thanks for your help.
The last two days were a big step to SEO with glinks.

Changed my URLs from
domain.de/Detailed/ID.html
to
domain.de/Title_with_german_umlauts_DID.html

Did not know, that it's possible, but this is nearly perfect.

Thanks again

Matthias
gpaed.de
Quote Reply
Re: [Andy] Detailed page name In reply to
Hi Andy,
there is one global that shows still the wrong URL to detailed page
Code:
sub {
my $id = $_[0];
my $desc = $_[1];
my $chars = $_[2] || '200';
my $build_detail_url = $CFG->{build_detail_url};
my $build_extension = $CFG->{build_extension};

if (!$desc) { return "No description on this template"; }

if ( length $desc < $chars ) {
$desc = GT::CGI::html_escape($desc);
$desc =~ s/\n/<br \/>\n/g;
return $desc;
}
my $short = substr ($desc, 0, $chars);
$short =~ s/\s\S+?$//;

$short = GT::CGI::html_escape($short);
$short =~ s/\n/<br \/>\n/g;

my $detailed_url = "$build_detail_url/$id$build_extension";
$short .= qq| ... <a href="$detailed_url">weiter lesen</a>|;
return $short;
}
I call it with
Code:
<%description_short($ID,$Description,200,1)%>

Do you know what to change to get the new URL?
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detailed page name In reply to
Code:
my $detailed_url = "$build_detail_url/$id$build_extension";

..should be:

Code:
my $detailed_url = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $id );

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Detailed page name In reply to
Works perfect Cool
Thanks

Matthias
gpaed.de