Future-Proof Links

rogermh

Joined: 2005-01-09
Posts: 102
Posted: Sat, 2005-03-26 22:19

In my main site, I'd like to have links to certain albums in my Gallery. That is pretty easy to do. For example, this would be a link to one of my albums:

<a href="http://mysite.com/gallery/main.php?g2_view=core:ShowItem&g2_itemId=147">Link</a>

The problem is that this link contains the text "g2". If there are future revisions of Gallery, I assume that the "g2" text will be replaced with something different, like "g3". Once that happens, then all my links will no longer work. Is that correct or am I missing something here? How can I future-proof links to my albums?

Roger

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Sat, 2005-03-26 22:34

Its defined in gallery2/modules/core/classes/GalleryUtilities.class at line 32.

I'd like to see it in config.php instead, but thats me.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 22:35

no,
1. you can define this g2_ prefix
2. G1 lasted for years, G2 will also last for years