Correctly creating a skin

12 views
Skip to first unread message

AC

unread,
Mar 14, 2012, 4:09:43 PM3/14/12
to Subtext
I've been manually mucking up the deployed ASPX/ASCX files in the base
install in the past by putting in hard links to my CSS & JS files that
I want to use in my skin. This has been mostly because I could never
get the skin.config file to work. Basically no matter what I put in
it, it seems that it's just ignored every time.

Is there something you need to do to get you skin.config file ot be
recognized and get SubText to include your CSS & JS references in
there?

Is there a recent "how to create a skin" doc somewhere as I'm coming
up blank in my searches :(

Simone Chiaretta

unread,
Mar 14, 2012, 5:19:06 PM3/14/12
to sub...@googlegroups.com
In 2.5 every skin needs its own skin.config with the CSS and js references

Simo

Sent from my iPhone

> --
> You received this message because you are subscribed to the Google Groups "Subtext" group.
> To post to this group, send email to sub...@googlegroups.com.
> To unsubscribe from this group, send email to subtext+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/subtext?hl=en.
>

AC

unread,
Mar 15, 2012, 5:46:53 AM3/15/12
to Subtext
So to apply a skin, I just drop in the folder that contains the
controls (that's working right now) and a skin.config file and it
should be adding my CSS & JS referencs to the head, right? I don't
need to register anything anywhere else... correct? This is what my
impression was...

What if it isnt doing that (loading my CSS & JS references)?

-AC

On Mar 14, 10:19 pm, Simone Chiaretta <simone.chiare...@gmail.com>
wrote:
> In 2.5 every skin needs its own skin.config with the CSS and js references
>
> Simo
>
> Sent from my iPhone
>

Simone Chiaretta

unread,
Mar 15, 2012, 6:29:34 AM3/15/12
to sub...@googlegroups.com
yep.
Under the skins/myskin you add a skin.config that contains just the entry specific to your skin (steal from the other skins).

And then of course you have to specify you want to use that skin in the config page of the admin.

Simone
--
Simone Chiaretta
Microsoft MVP ASP.NET - ASPInsider
Blog: http://codeclimber.net.nz
RSS: http://feeds2.feedburner.com/codeclimber
twitter: @simonech

Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"

AC

unread,
Mar 16, 2012, 7:41:51 AM3/16/12
to Subtext
Ah... there's one more thing: you need to recycle the app pool (I did
this by downloading my root web.config & reuploading it) as it seems
that even though when I switch skins, SubText wasn't aware that there
was a skin.config file present. After I recycled the Web App, it
finally found the skin file and started importing my CSS & JS
libraries.

On Mar 15, 6:29 am, Simone Chiaretta <simone.chiare...@gmail.com>
wrote:

Simone Chiaretta

unread,
Mar 16, 2012, 7:47:30 AM3/16/12
to sub...@googlegroups.com
Yes, of course... :)

Sent from my iPhone

Reply all
Reply to author
Forward
0 new messages