remove things through module or through coding (php)????

artostudo

Joined: 2012-11-09
Posts: 3
Posted: Fri, 2012-11-09 07:31

Hi,

I'm a newby to Gallery3 so this may be some stupid questions. I did a search but did not find the answers I need. Maybe you can show me in the right direction.

In my Theme (Grey Dragon Wind Theme - 1.0.8) there are a couple of changes I wish to make. I'm not sure if I can do this through a module or if I have to make changes in the php files.

1) I don't want the album description to show above the album. However if possible I do like to keep it in the side bar.
2) I don't want to show the file name of the photo.

Can someone direct me to the right forum posts or modules?

Thank you,

ArtoStudo

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-11-09 17:50

1. there is a theme setting called: Description Display Mode then I guess you could use the info module to show it in the sidebar. I have not used the theme much but if it shows in 2 places currently and the settings don't work then you will have to edit the view file responsible for the view.

2. I'm sure there is a setting for this as well. play with the overwhelming amount of settings available to see if you can get what you are after.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2012-11-09 18:50

The about this album module will show the description in the sidebar, if the description is set and regardless of the description being anywhere else.
http://codex.gallery2.org/Gallery3:Modules:about_this_album

 
artostudo

Joined: 2012-11-09
Posts: 3
Posted: Sat, 2012-11-10 08:23

I looked but can't find any settings or modules with settings which can do this. In Admin under Advanced Settings under Info I do see "show_description" but that only influences the description in the side bar menu. Maybe I am overlooking things?

(always make a backup before starting to experiment)
So I went into my theme's Views folder opened the album.html.php file in dreamweaver and removed:

<div class="g-description"><?= nl2br(html::purify($item->description)) ?></div>

That removed the description from above the album thumbnails.

Next step finding out how to remove the filename from the side bar menu......

 
artostudo

Joined: 2012-11-09
Posts: 3
Posted: Sat, 2012-11-10 08:38

Got that as well....
In Admin under Advanced Settings under Info change "show_name" value from 1 to 0.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-11-11 03:22

Glad you got it all sorted but when one says there is a theme setting it is not a advanced setting.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team