How do I display item IDs?
|
Canadrian
![]()
Joined: 2005-09-20
Posts: 6 |
Posted: Mon, 2006-01-02 06:48
|
|
I have a G2 installation integrated into Drupal. I have installed a text filter so I can embed Gallery items into nodes using the syntax [G2:itemid]. However, with URL rewrite turned on, there's no simple way to see from the URL what an item's ID is! Is there a way I can display item ID numbers below photos and albums in the gallery? ---------- I am a proud member of the ElectricTeaParty.Net online community. You can also check out my personal website at http://canadrian.electricteaparty.net/ |
|


Posts: 32509
other integrations have text filters for G2:itemId and G2:path which is mainly useful when rewrite is on . you can then use function GalleryCoreApi::fetchItemIdByPath($path) to get the id.
also, there's the "formatted urls" module which shows the itemId even when the rewrite module is on.
codex.gallery2.org -> user contributions -> modules.