How can I make the website layout standalone without including it into drupal?
I can do this with wordpress: e.g index.php (my layout), /css/style.css (my styling), /wp/~ (wordpress directory)
Hope that gives an idea of what I'm trying to do.
Before you ask, I prefer external methods because I like to make a lot of experimental sites, usually CMS limit some of my concepts when the site is within the database.
Thanks.
If you just want to use Drupal as a storage/authentication engine, look at the Services module, or writing a custom module that provides handlers to take data from your standalone pages via AJAX or form submissions and process them in Drupal, then serve data back out to your standalone app.
To get data in: Post it via AJAX or a form submission that transparently redirects back to your standalone pages.
To get data out: Use direct MySQL queries, JSON requests or bootstrap Drupal so you can use the Drupal API inside your standalone pages.
Most of the time though you can do nearly anything "the Drupal way" once you understand how it does things (which is very quirky at times). Check out http://drupal.org/project/examples for demos of how certain things are implemented, and the http://drupal.org/project/clean base theme for a nice minimalist starter theme to work from.
With the subtheme, You do in some sense create your own "external" css.
You can add custom css in the info config file, and use different template tpl.php to implement the css on various the pages.
That is not all that different from write:
<link rel="stylesheet" type="text/css" href="test.css" />
Drupal just try to organize it for you.
Related
Normal when i try to customise WP style i would use inspector view in Chrome and this would allow me to locate style code easily.
i was wondering how i can do the same for HTML or PHP code in WP such as plugins and the CMS it self?
Thank you
PHP is server side code and can't be found in the browser. If you want to see the code for WP plugins then you'll need to either download the plugin to your local machine or view the files on the server hosting WP.
Iassume you run it on your own root-/ webserver,...
so if you want to add HTML Elements to a post or site just do it in the text few like you would in an HTML-Editor like for some link thing for instance (you should allready know that..'pretty shure it also works for js).
However if you want to customize the way every page on your blog looks, you can also do this manually, but it won't be as easy.
There should be a section under the theme customization part where you could upload your own css and php (at least with a lot of styles it's like that).
I WOULD NOT mess with the files on your server, if you don't know what you are doin, cause - to be honest - you can make a great blog/ website by using the tools it gives to you. ;)
I recommend using the stylesheet from your wordpress theme for a custom HTML-document based on the source of a blog page, if you go for the looks... and in every other case just use plugins! :P
I'm building a small CMS in php but I have a problem with the front end. I have a folder name template inside the folder I got different themes
-admin
-template
---theme1
---theme2
---theme3
-index.php
when I load the index.php I can load the theme, but in the browser URL I get localhost/cms/template/theme1/page.php
but I like to have localhost/cms/page.php instead.
will you please tell me when I'm doing wrong!
Thanks.
I'm a little confused...you say this is a front end issue, but you point to the URL as the issue.
My guess is this: You need to identify different themes using separate stylesheets in CSS. Having different pages called page.php that looks differently definitely requires more work and complicates the issue. CSS was designed for you to customize the look of different pages and/or templates. Why not create 3 different stylesheets and then create a simple form that allows the administrator to choose which stylesheet to use (by radio button, or something else).
You can determine which stylesheet is "in use" in a number of ways - either on the back end or the front end. Given that this is a CMS, you'll probably want your administrators to choose the stylesheet and allow their selection to update a database entry or change a file on the back-end. No matter what you choose, you're URL's probably should not be affected.
Finally, you can rewrite URLs with .htaccess, but that can lead to more issues as you develop the site. Generally speaking - htaccess is overkill for issues like this.
I have a folder containing a php booking system,that i want to render as un article and add it to the main menu of the site.
The solution that i end with, is to use the joomla URL Wrapper. But it brokes my design as it render it inside an iframe.
Is there another way to do that?
Use Jumi, it includes PHP files into articles, without iframes.
Usage:
{jumi [path/to/file.php]}
Jumi website
That requires an integration work. At least you'd rather think of the way to give some Jooml Component wrapper to your booking sysytem. which at least involves creating a com_yourcomname folder, and a yourcomname.php that will dispatch your actions to the actions of the booking component and, perhaps, filter the urls in the output so that they match the Joomla url building convetions. If do this properly, your app will appear as a page content (not an article)
Is it possible to build a single-page website with silverstripe? Is it a bad idea - in sight of silverstripe?
How would a template look like to load all articles from several categories and subcategories in silverstripe?
Thanks for any links to tutorials, code-snipets, etc.
I have built backbone.js 'apps' with SilverStripe. You load the front end resources as you would any other SS project. I prefer not to use SS template vars to include assets (js/css), as js applications require strict placement guidelines (although it is possible to load everything using the Requirements class).
Check out the RESTful server docs for examples of usign the SilverStripe CMS to control your data, and use API endpoints to access this data from the front end. In fact, there is no need to have the SS backend and the single page app front end on the same server in this scenario, which is the beauty of REST.
For link handling in single page apps, you can use PushState or listen for hash change events. Either way, the front end JS handles routing, rather than usign SS's Director class.
Please provide more details on what you are trying to do if you'd like more specific help.
I have a website running on osCmax setup by a developer a while back and now I want to restyle some of the pages myself from the markup and CSS only.
I'm familiar with HTML/CSS and some jQuery to an extent but I have never touched any PHP. This is my first time really getting into any of the osCmax pages, site, etc., myself so I am little confused on what it really is or does.
If I want to edit any of the HTML/CSS myself for styling pages will I have to download and login to the osCmax admin panel to get to any of the files?
Or can I just go directly through my server to grab the appropriate HTML and CSS files? Wouldn't all the necessary files from the download be on my server already or is this something that I have to download to use?
If all you want to do is restyle the pages, then just modify the css. You shouldn't need to modify the PHP (unless parts of your HTML are created with out a class or id).
oscmax has a seperate folder for its template. all you have to do is editing the .css file. but sometimes you need to design the template from scrath and since the OSCMAX is outdated you must edit all the pages with .tmpl prefix.