Announcement

  •  » Engine
  •  » more triggers and template vars

#1 2009-07-08 17:57:37

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

more triggers and template vars

[Bugtracker] ticket 611

As I've been able to add the menu to the picture page by a plugin using

Code:

trigger_action('loc_begin_picture');

(in picture.php)

Code:

{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}

(in picture.tpl)


shouldn't we use the picture page "structure" for other pages ?
something like :

Code:

{if !empty($PLUGIN_TAG_BEFORE)}{$PLUGIN_TAG_BEFORE}{/if}

(and after too) for pages likes tags, search, about etc ...

in the same way, shouldn't we have :

Code:

trigger_action('loc_begin_tag');

(and 'loc_end' too) for the sames pages?

there might somoe different ways for me to add the menu on those pages,
but even if not used (but I intend to 8-) ), don't you think those adds would be a plus for plugin developpers ?

Last edited by repie38 (2009-07-08 18:01:01)

Offline

 

#2 2009-07-11 15:26:33

flop25
Piwigo Team
2006-07-06
7037

Re: more triggers and template vars

I think it's a good idea .


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2009-07-17 18:37:18

repie38
Former Piwigo Team
grenoble (FR)
2006-05-23
418

Re: more triggers and template vars

up !
team ? what you think about this ?
(I prefer to ask before doing a feature request)

Offline

 

#4 2009-07-17 21:16:16

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: more triggers and template vars

loc_end_page_header
loc_begin_page_tail 

and template-extensions can cover the points.

But in my opinion, I agree, it would be easier.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Engine
  •  » more triggers and template vars

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact