OrangeCD Community Forums  

Go Back   OrangeCD Community Forums > OrangeCD Catalog > Customization, themes and templates

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2007, 08:19 PM
Balok Balok is offline
Member
 
Join Date: Feb 2004
Location:
Posts: 95
Send a message via ICQ to Balok
Default New section for .DAX files (feature request)

If you feel this belongs in New Features, please move it there.

May I suggest a new section in the .DAX file where Javascript common to more than one page might appear? This would solve the problem of the same code used in multiple places, which I'm sure you're aware is a maintenance headache.

Perhaps a new "Javascript" tab might appear in the DAX editor, as well.

Thanks in advance.
Reply With Quote
  #2  
Old 05-27-2007, 05:22 PM
andrei_c andrei_c is offline
Administrator
 
Join Date: Feb 2009
Posts: 1,307
Default Re: New section for .DAX files (feature request)

Thanks for suggestion. Indeed, as more javascript is added to the default theme these days, separate javascript section makes a lot of sense.

I will look into it.

Andrei
Reply With Quote
  #3  
Old 09-25-2007, 09:44 AM
Gagliem Gagliem is offline
Member
 
Join Date: Apr 2006
Posts: 32
Default Re: New section for .DAX files (feature request)

Hi Balok!
I think it's a useful suggestion ;D, as I heavily modified OCD with my own theme full of Javascript functions (Andrei knows it.. I posted him some topics about JS on OCD) and they're always used in more than a section, also it seems that OCD doesn't like external .js files (I tried different ways...)

Cheers
Emanuele
Reply With Quote
  #4  
Old 07-19-2008, 01:01 PM
Balok Balok is offline
Member
 
Join Date: Feb 2004
Location:
Posts: 95
Send a message via ICQ to Balok
Default Re: New section for .DAX files (feature request)

Yes, I also tried various ways of shoehorning in external files without much luck. I also tried using an external editor to tuck them into the end of the styles section. OCD can't find them if they're there (and the template editor that comes with it won't even display them). And, of course, you can't refer to routines on one page from another, I'd guess because each page is loaded into a separate execution context.

Hopefully, Andrei will get 'round to looking at this one of these days, but it might be harder to do than we think.
Reply With Quote
  #5  
Old 08-26-2008, 08:39 PM
Balok Balok is offline
Member
 
Join Date: Feb 2004
Location:
Posts: 95
Send a message via ICQ to Balok
Default Re: New section for .DAX files (feature request)

This would suuuure be a nice feature... (hint, hint)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.