CSS Module
Return to Extensions Gallery
rating: +5+x

15

Information

Developer: leiger

Downloads: 9 (most recent 05 Feb 2011 15:03)

Installation ID: 15 <- You need this number if you want to install the extension using STE!

Revision no.: 2

Description

This extension will not install unless you are using STE 3.23 (New Year edition) or above.

This is an implementation of the CSS module as an STE extension. I am creating it here so that the functionality is still available if you want it after it is removed from the "Modules" menu in STE.

It includes all possible parameters (just two!), and a default module body.

edit this section

Code

edit this section

Screenshots

Sorry, we couldn't find any images attached to this page.

edit this section


Comments

wdavatar?user=
(user deleted)

02 Jan 2011 03:23. Edited 0 times. (Edit, Permalink)
Hey leiger, I was looking at this extension's code and decided to read Wikidot's documentation again since I've never used the arguments hide or disable with the css module. I was trying to figure out a use case for them. The official doc page is very fuzzy and may have a mistake on how to use the arguments. It says:

Arguments

You can render the CSS block in a [[code type="css"]] block by adding:

  • show="true"

You can disable the CSS block by adding:

  • disable="true"

Is the [[code type="css"]] a typo? Should it be [[module css]]? I know you have editing rights for the docs. Can you clean it up so it makes more sense and maybe provide an example or two?

Thanks!

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

02 Jan 2011 03:35. Edited 1 times. (Edit, Permalink)
I didn't even know those two options existed - until I decided to do a quick check of the docs before creating this extension :)

show

When set to true, this makes whatever code you typed into the CSS module get rendered on the page as if you had actually typed it like this:

[[code type="css"]]
/* code from within CSS module */
[[/code]]

But if I remember correctly, I tried accessing it using /code/1 and it didn't show up - so it's not rendered 100% the same way as the CSS code blocks are.

disable

This disables the CSS module so that it doesn't actually do anything. Seems a bit pointless, to be honest, but it might help when trying to debug something.

If you have show="true" and disable="true", then the CSS module looks and acts just as if you had used a CSS code block. The code is shown rendered on the page, but it doesn't affect the theme because it's been disabled.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=
(user deleted)

02 Jan 2011 03:42. Edited 0 times. (Edit, Permalink)
OK, I get it now. The doc page should be updated with what you just explained.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

02 Jan 2011 04:30. Edited 0 times. (Edit, Permalink)
I did update the documentation page for the CSS module. Let me know if you have any suggestion to make it better… wasn't really sure how I should re-phrase it.

Included page "inc:signature" does not exist (create it now)

Post Reply

Add reply on "CSS Module"