i would like to try this using the 5.x version. I cannot find where to download

Comments

fgm’s picture

Status: Active » Fixed

Hi.

See http://drupal.org/node/41641/release for all releases, including 5.x. Note that 5.x today is NOT supported, and DOES contain bugs and limitations, which is why it is not on the list of generally recommended releases. A production-level version is poised to be released near the end of June, but it is still under testing before release.

This being said, you can try the 5.x-dev version from the page mentioned above, but be aware of the risks : don't try it on a production site.

netentropy’s picture

Hey thanks for the link. I know this is unsupported and my questions are intended for whats to come. I customized the Joomla Glossary module on two of my sites and people loved the changes. So I will ask here?

1) In the new version will it be possible front the G2 main page view to list all of the glossary nodes with pagination?

2) For each term, will there be an option to display the definition beside it as well as link to the node containing the definition?

Will it be able to search the site and link up like the Glossary module?

fgm’s picture

Thanks for your message. The versions that will be released soon are an exact match of the current ones feature-wise : they are only quality/security releases to bring theses branches to production level, so there are no new features being added.

  1. You can already do this yourself in two different ways:
    • Simpler: create a node with PHP content using a pager_query() as a base to paginate just like you want, then select that node as the main page in the module settings
    • Better: create a function generating what I just describe in the site-specific module for your site (most sites have one anyway), and give its name as the main page in the module settings
  2. It could be a future feature, but it is not present yet. Note that the term-based glossary module (glossary.module) has this feature.
netentropy’s picture

Wow thanks for such a quick reply.

2. I am aware of Glossary and I think it is great. The only reason I can't use it is a) I will have 500+ definitions and if I remember correctly Glossary displays all the terms on one page with anchors down the page. b) Everything else in Drupal is node based and as many chemistry teachers are working on this together, well, drupal is hard enough to explain anyway, I can't imagine now trying to tell them why they have to use term descriptions instead of nodes.

1) I would love to know how to write a function for the module main page. but to be honest, i have read two drupal development books and asked a ton of questions on the forums and I can't figure out two things:

  • how drupal modules determine what function presents is the main page? in other words i wouldn' t know where to go in your code to add the function i needed.
  • how the drupal module figures out where to go when they click links like you have 0|1|2|a|b|c
  • fgm’s picture

    If you haven't created a site-specific module of your own, let's keep it simple for a start, then :-)

    • create a new "G2 Entry" node
    • define its input format to be PHP code: this will allow you to insert PHP code in the node itself, without having to create a module
    • Within the code in that node, between <?php ... ?> delimiters, insert your own logic, typically around two Drupal functions: pager_query to obtain the data, and theme_item_list to display them
    • Save the node as NOT published; note the number of that node. I repeat: NOT published
    • go to the module settings admin/settings/g2. In the first input field, key in the number of the node you just created, and validate
    • the node is now your G2 glossary home page. You can tweak its code just as you like. If you want to include an alphabar, for instance, you can invoke _g2_alphabar, or theme('g2_alphabar') to have an already-themed alphabar

    To query the list of G2 nodes, just use something like "SELECT FROM {node} n WHERE n.type = '%s'" and use G2::NODE_TYPE as the name of the G2 node type in your query.

    Regarding your second question, drupal resolves this through the g2_menu function

    Anonymous’s picture

    Status: Fixed » Closed (fixed)

    Automatically closed -- issue fixed for two weeks with no activity.