alex546
Posts: 1
|
Posted: 04/28/2015, 5:12 AM |
|
<link rel="stylesheet" href="{page:pathToCurrentPage}style.css" media="screen">
How do i create this dynamic attribute {page:pathToCurrentPage} so as to dynamically link my stylesheet file.
The one above i took from Codecharge example.
_________________
Alex |
|
|
eratech
Posts: 513
|
Posted: 04/28/2015, 11:47 PM |
|
Alex - you don't need to.
Use the 'Page Properties' (right click on a page, 'Page Properties' > Stylesheets) and link to your page. CCS will keep track of it for you.
There is a very big chance that whatever you need to do is a property or a right-click away and most tasks are done without code.
Having said that, you can create attributes for the controls, records, page etc - in the Properties there is an 'attributes' box with a [...] that opens a dialog to help you create them, and then they are available in a right-click in the HTML mode (see Help for 'Component Attributes')
Cheers
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
|