Forum for discussing general topics related to Couch.
16 posts Page 2 of 2
Hello Trendoman,

Thank you for.the response. I have saved in php and appended all that needs to be appended.

see the codes below:

1. this was placed inside of the CSS file

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>

<cms:content_type 'text/css' />   


<?php COUCH::invoke(); ?>

2. this was placed in the head of the html file:

Code: Select all

<link rel="stylesheet" href="<cms:show k_site_link />css/web.php?v=<cms:show k_page_modification_date />" type="text/css">

Last 2 steps - (1) edit the line to correctly set the path. I am certain your couch folder is outside the /css folder. A couch-managed template must be properly registered
Code: Select all
<?php require_once( '../couch/cms.php' ); ?>

(2) Visit domain/css/web.php as superadmin.
Does it help?
Need assistance? PM or email me.

active topics
wow, Trendoman, yes it does help.

I am able to load it now. Thank you very much.

Can you refer me to a comprehensive topic where I can read more about defining editable regions on the CSS if there's any?

Thank you.
You are welcome.

Regarding other threads - nothing special here or at least I couldn't spot one for you.

I am still not clear about your plans - are you giving an admin a way to edit the CSS directly in backend (as in a notepad) or allow only to tweak some params via a set of radio buttons?
Need assistance? PM or email me.

active topics
Thanks Trendoman,

I will be giving an admin the rights to make changes to certain portion of the styling, no doubt. However, I also want to be able to apply some logical coding onto the stylesheets to affect some component part of the pages.

Is that achievable at this instance?
Since your css is now a full fledged couch-powered template - you can use any tags and build any kind of logic there. Wish you best in your experiments.
Need assistance? PM or email me.

active topics
16 posts Page 2 of 2

Who is online

In total there are 6 users online :: 1 registered, 0 hidden and 5 guests
(based on users active over the past 5 minutes)

Users browsing this forum: Google [Bot] and 5 guests