g2:howto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
g2:howto [2005/12/29 22:48] – G2 Block on front page fgm | g2:howto [2020/11/23 17:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== G2 HOWTO. Or "How do I ..." ====== | ====== G2 HOWTO. Or "How do I ..." ====== | ||
+ | |||
+ | ===== How do I obtain teasers ? ===== | ||
+ | |||
+ | Also: "all my teasers are empty. What is happening ?". | ||
+ | |||
+ | G2 by default does not create teasers from the body of the definitions (node body): it uses the "Entry expansion or translation" | ||
+ | |||
+ | So, there are two main possibilities if you want to have teasers on all G2 definition nodes: | ||
+ | |||
+ | * create the teasers in that field yourself. This is the normal solution for this module | ||
+ | * use hook_form_alter to auto-generate a teaser from the body, typically using node_teaser() | ||
+ | |||
===== How do I create an alphabar unlike the predefined block ? ===== | ===== How do I create an alphabar unlike the predefined block ? ===== | ||
+ | |||
==== Context ==== | ==== Context ==== | ||
Line 28: | Line 41: | ||
The trick is not to use the predefined block, but to create a custom block using the function supplying the predefined block with data: _g2_random(), | The trick is not to use the predefined block, but to create a custom block using the function supplying the predefined block with data: _g2_random(), | ||
+ | |||
+ | |||
+ | ===== How do I know which revision of G2 my site is using ? ===== | ||
+ | |||
+ | * This is available in admin/ | ||
===== How do I add a complete definition to my front page ? ===== | ===== How do I add a complete definition to my front page ? ===== | ||
+ | |||
==== Context ==== | ==== Context ==== | ||
g2/howto.1135896532.txt.gz · Last modified: 2020/11/23 17:23 (external edit)