is there any option in the drupal settings to hide the node titles ?
I usually comment the code in my theme template, but I was wondering if I can do it from drupal back-end. (For all nodes, or some content-types.. (even better)).
Thanks
Not really. Node titles are somewhat fundimental to drupal.
Removing via the theme is proably the best way to go for the front end of your site. You will need to change the default page title as well.
You can prevent people from having to enter node title with the Automatic Nodetitles module.
But there are still pages like /admin/content which will show the node title.
You can do it from backend using views and specyfing what exactly you want to show.
Related
I'm developing a theme for wordpress and would like to know the best way to show highlights on the home page.
Examples:
I thought two ways:
Custom post types -a custom post "highlight" with metabox for image, text and link.
Theme Options - a page with options for each box.
What is the right way?
Neither. What you want can be achieved using either Wordpress' core functions and/or Custom Fields. Consider using Custom Meta Boxes if you have a client that requires a more intuitive setup, or installing something like the Types Plugin to do it for you.
This will allow you to attach your own variables to given Posts/Pages.
To gain access to a post's Custom Fields, click the Screen Options button at the top of the Post Editor to enable Custom Fields.
Personally, I would Enable Support for Thumbnails for your Highlights image, use The Excerpt for your Highlight copy, and use either The Title or a Custom Field for the heading.
This way, you can keep all your eggs in one basket rather than overcomplicating things with Custom Post Types or Theme Options Pages.
Look at the Plugin "Ether Content Builder"
You could use either of the methods you've suggested. In my opinion getting involved with lots of meta boxes on one specific page template for this is a total waste of time - there is only an image, a header and an excerpt linking to a post/page. Three posts (whether custom or not) will handle that with featured image, excerpt and the page/post title.
I also think doing a Custom Post type is too much just for three posts on the homepage. If you go the posts route just create a new post category called Home Highlights and put your three posts in there, pull them in via a custom loop built on WP_Query.
Yes you can go the Theme Options route too. If it's the client updating the site then it can look quite professional this way, I've started using a plugin called Options Tree after it came integrated with Super Skeleton, it makes it very easy to build your custom theme options which work just as well too.
A matter of opinion really, rather than a hard and fast 'this one is definitely better'!
I have a project that i would like to complete in Wordpress.
Basically, the story is that I have 8 boxes on my page that would each be enclosed in their own div.
I want to have a form on another page that a user can fill out and they would get to choose a box in which to put images or text into. If a box is taken, they can’t choose that one and must choose another.
What would be the best approach for this? I was thinking something like a CSS gallery type theme but how would I go about letting the user choose which box?
Any ideas and nudges in the right direction is appreciated.
I would do this in Drupal, or straight php. I think wordpress is going to be an impediment here rather than a boon. I would make each box a drupal block or node and use the standard form, to allow users to trigger editing that box. Then use CCK in control content like pictures and text and the way they display. Hope this helps.
The only way I can see this going anywhere is more or less completely bypassing Wordpress. So you use Wordpress only to render the theme, but the form action goes straight to PHP.
This way you're free to parse the form posts and store the uploaded images somewhere.
You could try to shoehorn everything into a Wordpress comment, but I don't think attaching files would work. So your best bet is to just have the form action point to a PHP file and handle everything manually.
It should be easy enough to query a custom table in the database using your theme's functions.php and $wpdb.
Is there a way to make all the posts promoted to font page to be included in RSS?
I believe you need to make use of the Promote to Front Page / Sticky options under the Publishing options on the node.
In the edit form for each content type defined in Drupal (in example, the one at http://example.com/admin/content/node-type/page), it is possible to promote to front page all the nodes of that content type.
Is it possible to create small blocks of editable content on certain pages of a wordpress install?
I am thinking along the lines of little boxes that contain specific information that can be edited through the admin dashboard.
I'm sure it's possible, but you'd probably have to look in to the WordPress plugin API to hook in to the proper places and save it to the DB. Also check out jQuery's inlne editor plugin.
I'm trying to place my own theme settings into a drupal subtheme. i've used the forms API in theme-settings.php but they are not showing up in admin/build/themes/settings/$mytheme. my theme-settings.php is uploaded here in case you'd like to see it.
what it does is choose vocabularies for categories and tags, making it easier to port wordpress blogs to drupal.
so, the thing seems to be in mytheme.info
it seems i need to place a default value here in order to have the settings saved.
but i guess it doesn't make any sense.