Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In order to make this fit in my URL scheme better, I wanted to change the base bath from glossary to docs/glossary.
This patch adds another setting to the admin page that lets you change the base path from 'glossary' to something else.
This is a patch against version 1.6 for Dupal 6.
Comment | File | Size | Author |
---|---|---|---|
#3 | set_path2.patch | 16.94 KB | Nick Urban |
set_path.patch | 7.99 KB | Nick Urban |
Comments
Comment #1
phpdiva CreditAttribution: phpdiva commentedThe patch seems to be working fine for me.
I think you missed one spot (last line in this function should be also changed):
Sorry, no patch. Still trying to work out the patching on Windows (the different line endings mess everything up).
Also, a suggestion for glossary_path(). Either do this:
or perhaps define a constant in the beginning of the module file?
Comment #2
phpdiva CreditAttribution: phpdiva commentedComment #3
Nick Urban CreditAttribution: Nick Urban commentedFearfox, thanks for the patch check.
I see that I missed that clearcache line. Fixed in this patch.
Regarding caching the results of variable_get, I do not think it is necessary. I looked at the source for variable_get and it does not make a database call; it merely reads from "global $conf", so the static variable seems redundant. Anything I'm missing there?
Comment #4
Nick Urban CreditAttribution: Nick Urban commentedOh, I forgot, I added a
</dd>
on line 956 because the<dd>
tags were not being closed. I meant to submit that as a separate patch but instead it is in the patch I just submitted.Comment #5
manoloka CreditAttribution: manoloka commentedHas this patch been added to the module?
It seem a good option (especially for other languages)
Any chance to port it?
Comment #6
POVYLAZZZ CreditAttribution: POVYLAZZZ commentedsubscribing...
Comment #7
RAFA3L CreditAttribution: RAFA3L commentedsubscribing...
Comment #8
yochee CreditAttribution: yochee commentedsubscribing too
Comment #9
CMStom CreditAttribution: CMStom commentedsubscribed.
This patch didnt work, I got a hunk error.
I dont see the option inside the Site Config > Glossary to change the base path.
Comment #10
CMStom CreditAttribution: CMStom commentedMy glossary.admin.inc.rej file includes:
Comment #11
CMStom CreditAttribution: CMStom commentedI got the patch to work by using this patch command. I did get the message "Hunk #1 succeeded at 137 with fuzz 3" but the patch worked.
This is the command I used:
patch --ignore-whitespace -F3 < set_path2.patch
Hope this helps!
Comment #12
crispin CreditAttribution: crispin commentedThe patch in 3 can no longer be applied to the current release
Just tried to update a site to v1.8 of glossary and I could not reapply the patch, we are working on a new one right now, will post it up here hopefully this afternoon...
Comment #13
NancyDru