How can you set no theme?
Permalink
Wondering if there is anyway to specify that a page have no theme. I have written a JSON output script under single_pages and it tries to theme it. I have tried setting the theme to "" and null under config/site_theme_paths.php but that does not work. Would like to have the dispatcher execute the script so that I can verify that the user is logged in and is a certain group , otherwise I would place under tools/ .
Thanks
Thanks
is it pulling in the actual theme or just styling the html from the CSS? if it's the styling not sure how you can bypass the core css but you could create another css file to include only on that page, which overrides the core css settings. To make sure the new css takes you might need to add !important to your definitions. like
Its theming with the site's default theme.. And since this is a JSON script used for an AJAX request (JQGRID) simple css won't work.. I need no output but the script output...
unless your referencing the theme files. Can you post your code?
but thinking about it shouldn't matter where the files located since you don't need to check once when accessing the page if the users logged in or not, just before you give access, in the place where your calling the script. make sense?
but thinking about it shouldn't matter where the files located since you don't need to check once when accessing the page if the users logged in or not, just before you give access, in the place where your calling the script. make sense?
Jelthure,
This JSON script is capable of CRUD operations on a transactions database I need all the security levels I can get..
My Current workaround places the script in elements/ and loads the C5 database config and class. Script is protected by HTTP auth for now.
In case you weren't aware, singlepages feature of Concrete5 are themable via view.php.
Remo,
Thats a good idea! Gonna be tricky figuring out where to put the ob_start() call.. I'm thinking view() or render() in the controller off hand.. I'll have to play with it..
This JSON script is capable of CRUD operations on a transactions database I need all the security levels I can get..
My Current workaround places the script in elements/ and loads the C5 database config and class. Script is protected by HTTP auth for now.
In case you weren't aware, singlepages feature of Concrete5 are themable via view.php.
Remo,
Thats a good idea! Gonna be tricky figuring out where to put the ob_start() call.. I'm thinking view() or render() in the controller off hand.. I'll have to play with it..
I'm trying to do a similar thing - I just want a simple script to spit out minimal HTML from the database on an Ajax query that I can then put into a popup. I need the C5 database library, etc. but I don't want any of the template, CSS, etc. I've tried single_pages but that adds everything. I tried including what I *thought* were the required libraries, but that didn't work either.
why not just make a clean theme and not hack the model? you theme files can be pretty much empty ya know.
Okay this is a bad idea but have you tried to use ob_ to clean to output?
I haven't tried that but it might work.
But I would like to see a better solution to this too! Currently I'm not using pages for this but rather helper tools..
I haven't tried that but it might work.
But I would like to see a better solution to this too! Currently I'm not using pages for this but rather helper tools..