adding a link to a pop up window

stefanofornari

Joined: 2011-08-21
Posts: 34
Posted: Mon, 2011-11-21 23:02

Hi All,
I've done some research aon the forum and watched the source code of the menu module, but I could do not find the answer.

I would like to add a link the top part of the page that when clicked opens a popup window like the one to edit the album properties. How can I do it with the Gallery framework?

Thanks a lot in advance.
Ste

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-11-22 00:19

You need to add a special class to the link. For example the permissions dialog is done like:

<a class="g-dialog-link " href="/gallery3/index.php/permissions/browse/1">
    Edit permissions  </a>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
stefanofornari

Joined: 2011-08-21
Posts: 34
Posted: Wed, 2011-11-23 22:13

Thanks Dave,
I managed to get the popup displayed with some static HTML. But the title bar does not show the title. How can I set the title bar text? Do I have to create a view? If so, where can I find information on how to create my own MVC in Gallery 3?

Thanks a lot in advance.

Ste

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2011-11-23 23:55

Stick something like this at the top of your html and it should show up as the title bar:
<h1 style="display: none;">Title Goes Here</h1>

 
stefanofornari

Joined: 2011-08-21
Posts: 34
Posted: Thu, 2011-11-24 09:33

Thanks! it worked.