Slideshow AND background?

279 views
Skip to first unread message

Yadin Flammer

unread,
Dec 8, 2016, 5:40:34 PM12/8/16
to ResourceSpace
So it seems that setting the big slidwshow removes the little slideshow if both are set true.  That makes sense if they are in fact the same function and there can only be one.

My question is, is it possible to have the old style little slideshow, AND have a full screen background image?  Right now it seems the latter item can only happen with a single image big slideshow (i.e. out of box default setup).  But we'd like that full screen image as well as having a little slideshow widget like we used to have.  Any way to do this?

Dan Huby

unread,
Dec 9, 2016, 7:40:32 AM12/9/16
to ResourceSpace
Not without writing new code.

Yadin Flammer

unread,
Dec 9, 2016, 1:50:18 PM12/9/16
to ResourceSpace
Bummer.  Feature request?  :)

That said, it seems like this should be fairly easy to do on a one off by modifying pages/home.php
I'm no php expert by any means, but looking it over couldn't a single line be added somewhere in here that would set a background image on the page?  Yes doing that would be a static pointer, and it would be overlapped by the full screen slideshow if that was enabled, but otherwise it would show up so you'd have wallpaper with small slideshow?

It seems like just adding this:
background-image:url('../gfx/images/bg.jpg');
would work, if I knew the right place in 646 lines to put it in the file?  Any thoughts?  And yeah it would need re-added after an update may replace home.php, I'm ok with that  :)

dougla...@austincc.edu

unread,
Dec 12, 2016, 10:45:28 AM12/12/16
to ResourceSpace
You should be able to add that to your CSS file. I would recommend making a plugin with your CSS changes though, so you don't lose it on update. 
If you haven't already done this, you can start by using one of the existing color plugins and just adding your line of code to the style.css file. Then rename it and change the yaml file.

Yadin Flammer

unread,
Dec 12, 2016, 11:10:44 AM12/12/16
to ResourceSpace
Appreciate the response, sounds great, but I have no idea what you just said  :)

Where are these files you're talking about?  What's a yaml file?  Why would I rename a file in this process?  If you could give more specific pointers and steps I'd greatly appreciate it  :)

Thanks!

dougla...@austincc.edu

unread,
Dec 13, 2016, 10:25:40 AM12/13/16
to ResourceSpace
Appreciate the response, sounds great, but I have no idea what you just said  :)
No worries, we all start somewhere - although I suggest a couple of courses from your code school of choice to launch you in the right direction (I like team treehouse myself)

Where are these files you're talking about?  
The files I mentioned in the inital response were the plugins that came bundled with your installation. You could modify col-black (which is a plugin located in resourcespace/plugins directory)
The css could be modified in the css file located in resourcespace/plugins/col-black/css/style.css

What's a yaml file?  
The yaml file is just the plugin description, you would need to alter this and the plugin folder itself to rename the plugin.

Why would I rename a file in this process?  
If you copy the existing plugin and then rename your custom version, it should not be overwritten when you update. (protects all your hard work)

If you could give more specific pointers and steps I'd greatly appreciate it  :)
For more step-by-step stuff, check out the knowledge base, this page in particular

Good Luck!

Yadin Flammer

unread,
Dec 13, 2016, 11:00:31 AM12/13/16
to ResourceSpace
Thanks Doug, that's all great info!  Unfortunately this is one of 40 servers I maintain so my ability to specialize in this at the code level is non existent.  But, you have me close to the info I need in this case that's for sure!

So from what I see col-black (and others) are UI plugins that change the look of RS entirely which I don't want.  I want to use the default style, for which there appears to be no plugin.  That would indicate to me I can follow the structure of col-black or another UI plugin to make my own that effectively changes nothing save for this background thing, but to do that I need to know where the default stuff is.  I'll have to dig through the plugin gfx directory to figure out the images part of this, but where would I find the default style.css to copy? 

Or am I confused and getting too complicated and these things are all just overrides/additions so all I need is the yaml file and the css file with a single line in it and none of the other stuff that col-black has?

dougla...@austincc.edu

unread,
Dec 13, 2016, 11:21:03 AM12/13/16
to ResourceSpace
The plugins appear to only overwrite what you tell them to overwrite, so just remove all other css overwrites, then add your own. No need to track down the original css.

Yadin Flammer

unread,
Dec 13, 2016, 5:53:48 PM12/13/16
to ResourceSpace
Thanks again for all the pointers.  I got as far as trying this out and the plugin doesn't show up in the UI, not sure why.  I don't see anything in the KB article about needing to register the plugin somewhere, seems like just having the yaml file in a directory in that location should make it show up, but it doesn't.  Maybe it needs something with that config directory?  But if so info is lacking on that from what I see.

Unfortunately it looks like the full idea is something of a bust anyway due to other UI design issues with the small slideshow layout.  Still, I'd be curious to figure out why the plugin isn't being read.

Cheers!

Dan Huby

unread,
Dec 14, 2016, 7:51:46 AM12/14/16
to ResourceSpace

You don't need a .yaml file at all. A single CSS file can constitute a plugin.

You can simply create a file:

/plugins/myplugin/css/style.css

...then activate "myplugin" from Plugin Manager (it will go in the "General" category, as there is no .yaml file to define the category). Feel free to choose a name other than "myplugin".

Then your CSS will be included after the main CSS.

Dan

Yadin Flammer

unread,
Dec 14, 2016, 9:36:25 AM12/14/16
to ResourceSpace
That works.  Unclear why the yaml file does not work and causes the plugin to not appear at all.  Contents as copied from another and modified:

name: bkimage
desc: Set background image
author: Yadin
version: 1.0
default_priority: 1000
category: User interface
userpreferencegroup: colourtheme

Dan Huby

unread,
Dec 14, 2016, 11:01:42 AM12/14/16
to ResourceSpace
Is 'bkimage' the name of the plugin's folder? (i.e. /plugins/bkimage/)

Yadin Flammer

unread,
Dec 14, 2016, 11:47:16 AM12/14/16
to ResourceSpace
yep, and the file is bkimage.yaml

dougla...@austincc.edu

unread,
Dec 15, 2016, 9:53:42 AM12/15/16
to ResourceSpace
If you want to send it to me I can take a look at it, probably something easily fixed.
Reply all
Reply to author
Forward
0 new messages