ZenphotoCMS Forum
hiding selected keywords - feature idea - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: hiding selected keywords - feature idea (/thread-12317.html)



hiding selected keywords - feature idea - Eli15 - 2015-09-18

hi,

I disable displaying selected keywords by a string-notation
like "hiddenimagesBlue", so words are not shown anymore
if they starts with "hidden
",
but I can still use them for dynamic albums, as filter "Blue Images".

In the file template-functions.php
on about line 3456
...
$singletag = getTags();

// start --------------
foreach ($singletag as $key=>$val) {
if (pregmatch('/hidden/',$val)) {
unset($singletag[$key]); }
}
$singletag = array_values($singletag); // rebuild keys
// end --------------

$tagstring = implode(', ', $singletag);
...

Therefor I had to comment out in the file
reconfigure.php
on line 180
of the
function reconfigurePage( ...
the default-action on line 206-207
between default: and break;
Otherwise there comes every 3-4 times a terror-popup up,
that something changed in the core.

btw.: but the feature is not finished yet:
I have to disable the set-keywords too for the tag_cloud ("Archive") ...

Eli




hiding selected keywords - feature idea - acrylian - 2015-09-19

Sounds like a special requirement you should solve either via a plugin or theme based custom function. You NEVER should modify core functions.