Hello all,
After a long time away I have decided to start using this blog again to post about useful code snippets mainly for my own benefit, but feel free to use or modify it to help you learn.
This is a very quick blog post revisiting the alternative table row styling AKA “Zebra tables” blog post I made back in May of this year, I have recently started using the Javascript library called jQuery, which I have managed to revisit this topic and reduce the lines of code dramatically. By using the jQuery library I have manged to produce Javascript which is easy to read and understand.
Here is the example of the improved alternative table row example.
As always I look forward to hearing your comments.
Hello all,
Well this is a quick blog post to let you know I have made a minor path update
to the Creative Website package, which creates the Assets folder in the “Data”
folder located at the Root as opposed to having the “Assets” folder in the root
because of people reporting permission issues with this and the JS folder has
been moved to the NEW “Scripts” folder in V3 of umbraco.
Well once I am more settled I plan to look at the Umbraco forums and keep up
with all the blog posts - but this will now be out of office hours because my
current position does not use Umbraco at the new company where I work.
Hello all,
I have updated the package from Douglas Robar’s feedback with XSLT Search 2.0
not being configured correctly.
With this update I would like to annouce that this package is now live in the
NEW v3 umbraco repository. So you can download this website package right inside
umbraco.
Keep your eyes peeled - as plans are for a Website Package with a CSS Switcher
and theme gallery.
Hello all,
This post will be brief and to the point. I have updated the Creative Website
Wizard for umbraco with a minor update.
This update includes Douglas Robar’s XSLT Search version 2.0 which now works
with umbraco V3- “hurrah I hear you cry!”
Hello all,
Well hopefully this will be a useful solution to the
Umbraco CMS community. I have worked on a
CSS style switcher that allows the user to change the look of your site with a
different CSS stylesheet. For example you may have two coloured themes that you
want your user to be able to decide which they want to use when browsing your
site.
This solution requires two files, a VB.NET usercontrol and an XSLT file.
The VB.NET file checks if the style querystring exists if so it
creates the cookie of StyleSwitch with the value from the
style querystring otherwise it sets a default value. If your
intrested take a look at the code in usercontrol, it is heavily commented and
should be easy to understand.
The XSLT does the important part of loading the correct stylesheet depending on
the cookie value. Using an XSL:Choose statement with the
umbraco.library we are able to read the cookie value and load
diffferent stylesheets depending on the cookie value.
This solution is very flexible as it is also possible to load in different
JavaScript files as well to compliment the CSS stylesheets. For example I plan
to use this style switcher in a future release of my
Creative
Website Wizard Package for Umbraco to load in different layouts and themes.
However just simply changing the CSS will not change the font colour used in
sIFR3
as this is set with a JavaScript config file. So I will need to load a new
JavaScript file along with the CSS file when doing the theme switches.