Project

General

Profile

Feature #5722

Allow uploading of url-specific logo

Added by Yannick Warnier about 6 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Global / Others / Misc
Target version:
Start date:
13/11/2012
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Allow the admin to configure a logo from the stylesheet page, based on the active access url (so he can change the logo without having to change the stylesheet).

The logo should be stored in the /home/[url]/ directory (or /home/ if no access-url) and should be managed as a settings_current param:

INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES
('portal_logo', NULL, 'text', 'stylesheets', '', 'PortalLogoTitle', 'PortalLogoComment', NULL, NULL, 1);

If the value is not filled (empty), then the default logo (header_logo.png) from the CSS is used.

Only allow uploading: png, gif, jpg, jpeg, svg (to avoid security flaws).

$PortalLogoTitle = "Portal logo";
$PortalLogoComment = "Pick the logo to show on your homepage. The logo should be 90 pixels high and up to a maximum of 800 pixels wide. Finer customization can be obtained by changing the CSS background properties and uploading a transparent gif/png logo image (to enable click over this area).";

Although the field type is "text", it should allow for the upload of an image (the "stylesheets" category is customized anyway).

History

#1

Updated by Yannick Warnier almost 3 years ago

  • Target version changed from 2.0 to 3.0

Also available in: Atom PDF