"coverview"

The forum for designers and developers.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

"coverview"

Postby djjb » 12. Oct 08, 10:43

Hello friends...
I tried to use this in my skin. But it won't work.
Even the "albumview" won't work.


<if cond="coverview">
<box x=.....>
</box>
</if>

The box is in the skin but it stays there in all views.

I also tried <else> but also no succes.
Do I forget something??

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: "coverview"

Postby Service-Team » 12. Oct 08, 14:54

I think, you assume the <if cond="coverview">-statement will check, if the current view is the coverview. However, this is not true.

Instead, the statement checks, if the coverview functionality should be present at all. The condition is false eg. if the user has deselected the option "Settings / Kiosk mode / Functionality / Cover view":

coverview.gif
coverview.gif (27.2 KiB) Viewed 2326 times


In this case, the layout may hide eg. a button that normally switches from album view to cover view.

To find out or to change the current view mode in a script, you can use the program.viewMode property, see http://www.silverjuke.net/sdk/program-viewmode.html.

Best regards,
Your Silverjuke-Team


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”