Can a WordPress blog pull content from Django pages? - php

Say you have a WordPress theme you like, but want to make use of a bunch of Django code that's already written. Is there a good and easy, and performant way, of sucking in HTML that is output from Django and displaying it inline in a WordPress posting, or page without using browser frames? Any good examples of this?

You can do this by outputting the content in Django as usuall and then making a Wordpress plugin with code for downloading it from Django's URL
readfile("http://yourdomain/your/django/view")
But it's a really bad idea. If you just want to use the wordpress theme port it to Django. This strange PHP/Python hybrid will be a nightmare to maintain, especially if at any point you decide to add more features or make it more dynamic.

if the djanjo-code generates a rss-feed, you could use a plugin like wp-o-matic to import posts from your django website into wordpress.

Related

Creating a Template based PHP BLOG

I just created a BLOG Script. I'm using foreach to loop and display the posts. But now I want to create a template engine like Wordpress. How can I do that? I'm new to PHP. I don't have any idea to do this.
I tried using file_get_content. For example:
file_get_contents("template_dir/template_name/index.php");
But there is a problem with CSS and images. That's my first problem. Anyone please help me to create this.
To bring in files you use include() or require()
However, I don't see why so many people insist on trying to reinvent the wheel. If you are building a blog install Wordpress and code your own Wordpress theme. Wordpress has been in development for years and is now not only one of the best blogging engines, but a very powerful cms capable of powering any type of site.

views_slideshow without using Drupal CMS

I'd like to use exactly the same slideshow script like http://drupal.org/project/views_slideshow but without using Drupal itself. Do you think it is possible? Perhaps the script is based on other OpenSource project I don't know?
There are a couple of Javascript Slideshow plugins. Drupal's Views Slideshow module uses jQuery Cycle plugin. http://jquery.malsup.com/cycle/
There are plenty of script that allow you to do some slideshow.
There are a lot of page that list lots of them.
Isn't here something that is what you are looking for ?

First Larger-Scale Web Dev Project - Advice for Content Management?

I'm familiar with HTML, CSS, and some PHP and Javascript. I've made several fairly complicated websites for which I've acted as webmaster, manually adding all content in HTML.
I'm about to put in a proposal for my first outside client at a larger business. They have an IT person that would be responsible for updating the website that I create for them.
My question is what to do about content management. I've looked into things like Drupal, but they seem overly complex for this kind of situation, with a single person adding updates of things like text, images, and PDFs.
What would you recommend as the next step above the simple way of manually uploading files and editing HTML like I'm used to? Something like a MySQL database and PHP calls? Would I then store all the images in the database as well?
I guess I'm just trying to figure out what's most common at a medium-sized business. I appreciate any guidance you can offer!
Nathaniel
My company has built large scale projects and medium scale as well. What we like to do is setup a outer page with navigation and an inside page that the client has control of by a control panel with FCK Editor or TinyMCE.
So essentially we have a wrapper page (in our case a MasterPage but in PHP you would use an include or a index.php with a query string to pull the content) and then we drop in HTML content from the database.
That database is populated by the client in their control panel. FCK Editor allows them to upload images and manage links, etc.
For our bigger clients we get very specific in our control panel allowing them to add videos, PDF attachments, blog entries, FAQ content, etc.
Some examples we have are http://pspwllc.com and http://needsontime.com and http://nwacasa.org
Drupal can be bit complex at first but if you stick with the basic modules - it is great for website content management.You can write your own mini content management system - store text and images(MySQL blob format) in MySQL.It will be couple of PHP admin pages and a good render() function responsible for page rendering.
Also have a look at wordpress, it is much easier than drupal. It is less powerful but it may serve your needs. You will NOT need to configure modules like FCKeditor, with it bcoz they come inbuilt. Anybody will be able to edit the content easily. Do note that wordpress is not just for blogs, you can create different kinds of websites with it. Another choice is Joomla, it is also simpler than drupal. But, wordpress is the simplest.

How do I properly use code in joomla articles?

I am very new to web development and CMSs. I want to make a Joomla site that features articles with a lot of graphs at the top of the page and written content below them. The charts will probably be done with fusioncharts and some controls directly below them to dynamically influence the data displayed in the charts preferably without reloading the page.
My question is what is the most appropriate way to do this in joomla? Can I get the sourcer add in and simple create articles using inline javascript calls to place the charts and controls directly in the article? Is this how people usually embed non text based content in joomla? Is it possible to access the database with code directly embedded in the article to generate the chart?
I dont really want to learn too much of the joomla API right now, I'm more interested in using the CMS features to create the pages and then just coding everything else in javascript/php directly in the page but I'm not sure if that is appropriate or if it would introduce security concerns to my site.
Why not try the FusionCharts extension for Joomla -
This will be much easier than coding this yourself, the work has already been done.
I believe the best thing to do is just use a good WSIWYG and then use the source code feature.
TinyMCE does the work just fine.
Are you looking for plugins or components to add and do this or do you just want to log into administrator and start doing this right away?

Haxe PHP vs PHP - what language is better for creating Plugins for WordPress?

I want to create a WP plugin with use of WP DB tables and costume ones, Ajax requests Rss feeds reading and writing and media storing and Google maps. Such a crazy plugin it will be...
So Haxe PHP or normal PHP - what language is better for creating Plugins for WordPress?
BTW books blog articles and docs are appreciated as proofs for your answer…
Haxe can translate to pure PHP, but in this case why would you need Haxe in the first place?!
Use PHP.
Yes. Go for pure PHP. Haxe/PHP brings a lot of overload just for the bootstrap and handeling WordPress data structures could be a mess (since Haxe wraps a lot of stuff).

Categories