I'd like to replace the "Quick Local Synchronization" link on the admin main page with a different link (specifically to an extension, in this case, AlbumPilot). This link is defined in U_QUICK_SYNC in admin/intro.php and then used in admin/themes/default/template/intro.tpl.
I can just directly edit the .tpl file and replace the link (which works perfectly) but I'd prefer to use a template-extension so this change is preserved during upgrades. But I don't see a way to override the admin template via template-extension.
Is what I'm trying to do possible?
Offline
Pierrick answered me once about overriding the admin theme. But I do not know if it can help in your case. Below is how he solved my issue :
Pierrick : I know the LocalFiles Editor can't change the CSS for the administration. But here is a trick. Use [extension by ddtddt] Add < head > Element instead with :
.permitActionItem {margin-left: 30px; width: 800px;}
.permitActionItem .selectize-control.single.plugin-remove_button {width: auto !important;}
.permitActionItem .selectize-input.items.full.has-options.has-items {width: 800px !important; line-height: 23px;}
and you're good. No need to re-implement it after each Piwigo update.
Last edited by Katryne (2025-07-04 16:51:47)
Offline
Interesting idea but yeah, I don't think that would work since it only allows you to make changes to the head tags and not a link on the template/page itself.
Offline
That's pure css : it did modify the display width of the maps on admin side. I don't think its about the head tags, despite the mod's name.
Offline