Clean Canvas Questions

Loreauville Phil

Joined: 2011-08-20
Posts: 10
Posted: Sun, 2013-05-26 14:37

Got a few questions. I'm not sure if they're specific to the clean canvas theme, but that's what I'm using.
First Question: The sidebar always seems to be in the wrong place. Too high on the page to be specific. I figured out the CSS to push it down a few pix easy enough but it goes back up whenever a search has been performed and one of the searched-for items is chosen. It covers up the "Next" button, but like I said, only after a search. Where would I edit the CSS for this? If I check the source code, it shows the default top: 6x; I want it to be about 60px.

Next question. Whenever I edit a photo and add a link in the description, I can't add target="_blank" to the a href tag. Can this be fixed?

And finally, is there a way to edit comments?

Thanks, and thanks again for such a cool program.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-05-26 16:12

Sidebar:

#g-sidebar {
top: 60px!important;
}

to the css should do the trick. if not a url to show the behavior.

@links in descriptions: the HTML_purifier module might help, never tried or the http://codex.galleryproject.org/Gallery3:Modules:exlinks_new_window might help.

@comments: not that I know.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Loreauville Phil

Joined: 2011-08-20
Posts: 10
Posted: Sun, 2013-05-26 16:23

Thanks so much Dave.

 
Loreauville Phil

Joined: 2011-08-20
Posts: 10
Posted: Sun, 2013-05-26 16:43

Ok dave.
I installed the exlinks_new_window module.
Works great......... if the link is outside the Gallery's main domain. I have the gallery set up as a sub-domain and If I link to a page in the main domain, a new window will not open.
But, a new window will open up for another domain.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-05-26 18:24

I guess you could play about the the jquery in the exlink_new_window module to give it the behavior you desire.

The other option is to:
Install the purifier module.
Add:
$config->set('Attr.AllowedFrameTargets', array('_blank', '_self', '_target', '_top'));
before
self::$_purifier = new HTMLPurifier($config);
in modules/purifier/helpers/purifier.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team