How to create website offline on my laptop using drupal and xampp(as offline server) then upload it online?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tiramizu888's picture

Hi. I'm going to create tourism website for my thesis. Is it possible to use drupal offline and then upload it online? I only know html, xhtml and css. Please help me to create this website. Thank you.

Comments

Yes you can. But would be

Jhef.Vicedo's picture

Yes you can. But would be good if you know something about how an application works, and in this case a web application. Refer to this page to get your started in Drupal: http://drupal.org/documentation.

@Jhef: is there the same

hubertgant80's picture

@Jhef: is there the same documentation in other languages? I have pretty much the same problem with both my touch screen laptop and my 3d laptop and I would like to fix the issue...

@Jhef: is there the same

hubertgant80's picture

double post...sorry

This sites may answer your query

drugonball's picture

Hi! This are some of websites listed in my bookmark:

http://www.drupalove.com
http://mustardseedmedia.com
http://www.gomediazine.com/tutorials/create-a-killer-band-site-with-drup...
http://www.noupe.com/drupal/the-ultimate-drupal-toolbox.html

I think this will not only help you with your query but will guide you from basic to advance in Drupal CMS, rock on! :)

basically you can install

dzieyzone's picture

basically you can install drupal on your computer (offline) using the WAMP server and after that you can purchase cheap web hosting for only 3000php/year.

Cheap web hosting provider

amitsoni26's picture

Hi,
Can you please tell me that some cheapest drupal hosting provider name?

Hi amitsoni, I do provide

dzieyzone's picture

Hi amitsoni, I do provide cheap web hosting. You can reach me thru YM or Skype with my ID: dzieyzone

drupal and xampp(as offline server)

s4m43l's picture

Yes it's possible. If you already have XAMPP setup and drupal installed everything should be smooth sailing.

I haven't tried this myself but you can also try Microsoft Webmatrix (http://www.microsoft.com/web/webmatrix/). It's a package that includes drupal so that might be easier.

If you're looking for more hands on assistance let me know. I might be able to help.

tiramizu888's picture

Where will I start first? I'm going to create a tourism website for my thesis and I will use drupal. I want to create it offline because I don't have a domain and my teacher will check it first before it will be published on the web. Kindly reply. Please and thank you.

hi there, If you are using

dzieyzone's picture

hi there,
If you are using windows OS, I recommend you to use http://www.wampserver.com/en/, just install it to your computer and you'll have a localhost server running.
After installation you can unzip drupal core to this folder C:\xampp\htdocs, and in your browser just browse http://localhost (http://localhost/drupal if you have the drupal folder inside the htdocs folder).

J

whirlwind4God's picture

Download
www.wampserver.com
install it and fallow these directions.
http://drupal.org/node/114493
Have fun.

Also, we'll be having a

Jhef.Vicedo's picture

Also, we'll be having a DrupalCamp on Feb 5-6. There would be trainings on Feb 6 covering from basic installations (locally) to module configurations. It's interesting. Visit http://groups.drupal.org/node/114069 or http://2011.drupalcampmanila.com/registration-payment for more details.

i'm interested

tiramizu888's picture

will you give a certificate for those who will attend the training drupalcamp? I want to attend this training.

pano po pag 1 day lang aattend?

tiramizu888's picture

Makakakuha pa din ba ako ng certificate?

Good post!As i was passing by

Maula123's picture

Good post!As i was passing by here and i read your post.It’s quite interesting.I will look around for more such post.Thanks for sharing.
Philips Avent Dect Baby Monitor

by the way, how do you change

r2b2's picture

by the way, how do you change your site's root configuration when deploying sites from local to live? for example , in my local box i store all my projects in /var/www/project_name, /var/www/another_project_name and i'll access this using http://localhost/project_name, http://localhost/another_project_name respectively...

In live sites , i access this as its domain name, for example , http://another_project_name.com...

now that will definitely affect the path of the attached images and files in your drupal sites.. how do you solve this problem?

If my session gets approved at DrupalCampManila 2011...

jorap's picture

If my session gets approved at DrupalCampManila 2011 (http://2011.drupalcampmanila.com/sessions/taking-advantage-multisites-fe...), that session would answer your questions...


[Jo]n [Rap]usas
www.jorap.com

To answer your question...

borrico1965's picture
     "now that will definitely affect the path of the attached images and files in your drupal sites.. how do you solve this problem?"

while your site is still in your local box, edit the image tag of your images such that the path is "relative", i.e. put only the path without "/var/www/project_name". for example:

<img src="sites/default/files/sample-image1.jpg">

hope this will help. regards,

Thank you

tiramizu888's picture

thank u so much for the info. I'm still accepting any recommendations. Thanks again.. ^^

Domain Access

DavidWheelerPhD's picture

You might want to try Domain Access and Domain Access Advanced.

http://drupal.org/project/domain
http://drupal.org/project/domain_adv

I have heard people use Domain Access as a simple staging server.

You can listen to a talk by agentrickard on Migration, Deployment and Staging by Ken Rickard
http://fall2009.drupalcamp.se/session/migration-deployment-and-staging-d...

Thanks

tiramizu888's picture

still need some help if you like

I think you can find lots of

mcpdigital's picture

I think you can find lots of help here.
Please, tell us your experience in web developing and your goals with the tourism website.
I understand Drupal is not the easiest platform to fast create simple sites. IMO a Drupal site needs some good planning to avoid some road-blocks ahead.
About XAMPP and Drupal, I had a good experience with it and it works well and it is not so hard to put it online.
Just upload modded Drupal files and import the Databases. I keep all modules and plugins updated between online and offline sites. There are two projects with Drupal and tourism. Both of them are the structure to future production websites using Drupal, just without content. If you are interested

Marcelo

Experience and goal of tourism website

tiramizu888's picture

I know basic html, xhtml and css coding. I don't have any experience of developing a website using different programming languages and applications even though I'm an It student. The goal of tourism website is to promote Tarlac City places, events, establishments and other things related to tourism. I tried to use GIMP for editing photos to be included on the website. I also tried using Adobe Dreamweaver, joomla and the last is Drupal. Please help me to develop this website using drupal. I really need your help. Thx a lot.

Well, as I said before,

mcpdigital's picture

Well, as I said before, Drupal is not the easiest platform to start. I'm not a developer that have all the information needed to help you, but I will try anyway.
Related to appearance of Drupal, it mainly uses two types of customization. CSS that you already know, can be found on the themes folder and Templates the .TPL files. These files are a mix of HTML and PHP and are the layout of the pages presented by Drupal.
Some themes like acquia (very good by the way) can have extra options like Banner image. Try to understand the regions (sidebar, sidebar-last, preface..) and the blocks that create the page so you can fix your efforts in the right direction.
One last thing is to understand the mechanism of Drupal. Everything is a page or story and you are able to create other type of content using external modules, CCK. Modules are fundamental addons that you cannot live without. My sites have at least 20-25 modules to achieve some basic stuff.
Remember, it is a CMS and its flexible, scalable and manageable, but for small sites it means you have to plan as a large one, if you really need the "dynamic content" possibilities.
Check this one here www.ruta-austral.com and you can catch a preview of the possibilities when theming your site. For anonymous users is doesn't show much, but has everything from Views, Panels to GoogleEarth plugins ready for a small tourism operator.
The site is based on acquia slate, but with lots of changes.

My development environment is
local: XAMPP + Drupal + modules + content + DB
local OR remote copy for test: Dreamweaver + XAMPP + Drupal + DB + Modules + content
remote: Host + latest Drupal + modules + DB + content

Marcelo

You should first familiarize

Jhef.Vicedo's picture

You should first familiarize yourself in the concept of website development - what is it, how it is being done and what are the things you need in order to build one. http://www.w3schools.com/ is a good place to start. Then when you think you'r ready, comeback and I guess that's when we can really help you about Drupal.

A bit of overkill?

cmcintosh's picture

I think Domain and Domain Adv is a bit of an overkill for some school project from this is sounding like. Best setup for development is to get yourself a copy of Ubuntu running in Virtual Box(Both Free), and then setup some sort of Git workflow. i will be discussing these things in my Class at Drupal Camp.

Try the Acquia Stack Installer

danreb's picture

If you are using windows here's the link -> http://acquia.com/files/downloads/acquia-drupal-win-1.2.32-5342.21760.exe
for other Operating System, you can find one here - > http://acquia.com/downloads

After you installed that stack installer, you can start immediately with the development as it will install a complete package DAMP ( Drupal, Apache, MySQL, PHP) plus some other good modules.

It will also have a feature of Multi site set-up, if you want to create a multi site website, it will allow you to easily create that.
It is almost zero configuration, It also comes with Xmail and Phpmyadmin.

Good Luck.

I tried acquia and thx for commenting

tiramizu888's picture

I tried to use acquia and I find it hard customizing the style of the navigation links(links that point to another page of the website). I don't know how to insert a picture banner. What kind of file extension is used for header picture and pictures used on the website?

The best thing I can suggest

nathanjo's picture

The best thing I can suggest is to attend the DrupalCamp this Feb 5-6, especially the training day on Feb 6 (Assuming you are just within Metro Manila). Its more basics from installation to setting up a small site.
All your questions above are so basic, use CCK, ImageField for your picture/image. You can use Views to control more how you want to display it by block, page etc.

It is not acquia that you have difficulties in styling or whatever customize you want to do, just have patient and understand Drupal http://drupal.org/documentation. :)

Good Luck!

Agreed

boogyriches's picture

I totally agree with nathanjo, Its not Acquia you are having issues with, its Drupal itself. You need to read up on the basics of using and understanding Drupal. Sorry to say but its something you must do before you can start asking questions. I am still new to Drupal, and there are many more things for me to learn. It seems like you already have it installed, whether you are using the Acquia stacker or Xampp or whatever you are using, since you already mentioned you are trying to play with the navigation and how to add pics to a banner. When I was first introduced to Drupal, I thought it was a drag and drop, move a pic and its coded type thing. But far from it. Many things to learn my friend, and you need to start with the basics, the terminology.

There are many tutorials on Drupal.org, YouTube, and just good ol' searching. Hopefully you can learn it all before your project is due :)

CSS is what you need in style customization...

danreb's picture

If you want to customize any style in the theme, all you need is a good knowledge of CSS and you need to identify the CSS declaration of the theme you want to customize - you need a combination of this tools -> Firefox + Firebug + CSS editor + your CSS knowledge.

For the image extension ( jpg, png, gif ) you can use this in Drupal theme just like any ordinary HTML / CSS web page. For the logo, Drupal use this name - > logo.png

If you really want to develop site with Drupal, at least learn a little bit of PHP code specially if you want to dig differ, download PHP Manual from php.net website and read. I don't say you can't build a site in Drupal if you don't have knowledge in PHP but it will surely help you.

Good Luck

Drupal For Beginners

loloyd's picture

The short answer to your question is - yes, it IS possible to use Drupal offline for your tourism website and then upload it online. But apparently, you haven't heeded some calls for you to visit the official documentation resource of Drupal - http://drupal.org/documentation.

Many beginners who are (or were) very IT-inclined found it relatively easy to install, use and manage Drupal websites. However, more beginners, IT-inclined or not, found the task of using Drupal too complex and too time-consuming for their purposes. It is true that there may be a need to read voluminous amounts of veritable resources just to be able to get the kind of website that you want with Drupal, and I believe nobody here will be able to help you in a spoon-fed fashion or with much hand-holding guidance, unless you manage to arrive on a paid consultancy agreement.

The bottom-line here is that, I'm afraid Drupal may not be suitable for beginners like you. But if you're willing to diligently read, have patience and heed the guidance of those who have went through the same path, you can go as far as your imagination can with Drupal. I do not intend to be rude, I was just trying to be pragmatic about your case and my sensibilities came from the inputs you have shared thus far in this thread.

thx for d advice

tiramizu888's picture

it's ok sir. I understand what you really want to say and I appreciate for taking the time give advice. I'll try my very best to follow all of your suggestions here. And thx again. ^^

<: no hard feelings. ok? :>

I "second the motion" the words of loloyd.

borrico1965's picture

@tiramizu888 - Drupal will not give you a website in a snap! But with patience and ample amount of time, it will give you an amazing website! I hope you will join the growing number of Drupal fans. Good day.

im sure by this time you have

shareabread's picture

im sure by this time you have downloaded and your in the process configuring drupal to fit your project requirement. if you hit any major errors, problems with clarity, or problems finding anything. just drop a msg here again. I’m sure you’ll run into semantic errors when working with views and other 3rd party modules for the 1st time. Its normal though. play with it and see how far along you can get before you hit a wall.

well said Loloyd

calmher's picture

Tiramizu, I believe Drupal's learning curve is pretty steep when you compare it with.. say, WP. But the possibilities are infinite & learning becomes a gem :)

I also started with Drupal without any programming background at all, but because I braved it (reading & testing until the wee hours of the morning; not knowing what to do when the screen ominously displays "call to undefined function") - I've come to love the complexities of PHP, Bash scripts, and brewed coffee ;)

I hope you'll still consider Drupal - tiyagaan lang naman talaga magbasa but the experience is enriching & rewarding! Not to mention, the community base is unparalleled - friendly, witty & diligent (ahem) people!!

I would not say that it has a

cmcintosh's picture

I would not say that it has a steep learning curve. I think that there is So much that you can do with drupal, it can easily seem overwhelming. Having a good defined site plan, layout, and functionality needs goes a long way in deciding how and what to use.

Thanks!

tiramizu888's picture

Thanks for the response ms calmher. I'll do my best to study drupal this coming summer. BTW I already created the website using wordpress since it's the same as blogger.

Creating the site especially

cmcintosh's picture

Creating the site especially for some thing simple as a school project does not take near the amount of energy as you would think. The key is to run through the process of project development which is basically this:

  1. Set the scope of the project, decide on features(module functionality), graphical layout/ui(theme), and audience(Users / roles)
  2. make a list of all resources you have, ones you need. Then compare with what is available on Drupal.org
  3. Build the remaining pieces as custom theme or module pieces. Install on a Virtual Box (I prefer this for local development), then once you are ready to save /upload the site for demonstration just do a db dump and upload it and your files to your server.

Where the time and art of web design in drupal comes in at is knowing which modules work well together and how to use them to their best measure. More than 90% of your projects will use CCK, Views, and ImageCache / ImageAPI modules. These will allow you to have a lot of flexibility with the content you want to present. If your wanting Online Order system, then you should look more into Ubercart / UC_node_checkout to accomplish something like this that works nice for a Check in / registration system. then you just have to feel in the gaps based on how you want things to react.

Be creative, and be detailed in your project planning and things will go fine.

Thanks!

tiramizu888's picture

@cmcintosh Thanks for the useful advice.

problem after uploading from localhost to online

mhike's picture

Hi to experts and all,
As a newbie in drupal,any ideas on how can I make the online site working would be appreciated. I attended the camp last Feb 6, hoping that this would be discussed. Maybe this just a simple problem. I did upload a site from localhost to online server (mindsource.x10.mx). The site appeared the almost the same from my localhost. However, I cant login and any of the links are not working online as well as the post (content)..Maybe its pointing to my localhost site..
What are the proper steps in uploading from localhost to server and is there anything that is needed to be adjusted in phpmyadmin?Thanks in advance.

usually starting it is one of

cmcintosh's picture

usually starting it is one of a couple things.

  1. Check your database settings inside your sites/default/settings.php file to make sure that they point to your database correctly.

  2. Also check to make sure that your base path in the same file is set to the url for your online site. you will also want to clear your caches on your site, and make sure that the file settings are correct.

  3. double check your .htaccess file to make sure that your live server has the correct settings to support clean urls, if it does not and your local did then you could get some errors from this, temporarily to make the site just use http://mysite/?q=user/login to log in as admin ( you will get an error saying the path does not exist after you login). You can access any url in this manner. From the sounds of what you have described you are having a clean url issue. Read here: http://drupal.org/getting-started/clean-urls to fix it.

But I believe the problem is

Jhef.Vicedo's picture

But I believe the problem is with clean URL or URL re-writing. It's either your server doesn't supports it or it doesn't allow Apache overrides via .htaccess. ask your hosting provider to help you set up if you want to use clean URL.

localhost to online problem

mhike's picture

thanks for the immediate reply cmcintosh and Jhef.
After reading the provided link, I did uncomment the rewritebase in the htacces and the site login works. My other concern at this time was that the content (like picture post) link remains to be at localhost; e.g. /localhost/sites/default/files/..., so I need to edit all the link to match the online address. Is there any way that it can be adjusted as a whole, so that i would not manually edit each post?I hope there is, like in wp where it can be adjusted in phpmyadmin database options. Also, when i logged out it went to http://localhost/xampp. Pls. help.

You will want to go to your

cmcintosh's picture

You will want to go to your sites /admin/settings/ ( Files something ) page and update the directory the iages are stored there.

cant find

mhike's picture

hi,
thanks for the effort, but cant find it. Also, when i logged out the site redirects to http://localhost.

Hi mhike, Try commenting out

borrico1965's picture

Hi mhike,

Try commenting-out the line in your live site's "sites/default/settings.php":

$base_url = 'http://your-domain-name';  // NO trailing slash!

to

/**
*$base_url = 'http://your-domain-name'; // NO trailing slash!
*/

Take note of the slash-2-hash-signs (/**) at the beginning of the line above, hash-sign before the line, and hash-sign-slash at the line below.

This will probably disable your redirects. If your drupal installation is in a sub-directory (for example, http://example.com/drupal/), you need to include or type-in the sub-directory name in the URL, this time, to go to your drupal-site.

If your image tag (example: <img src="http://example.com/images/sample-image.gif"></a>) of your images in your pages includes "http://localhost/xammp", there is no other way, i think, but to edit your pages one-by-one.

I hope these helps.

PS. mhike, naalala nga kita nung feb 6. ikaw yung nagtanong ka-agad. madugo kasi sagutin yung tanong mo nun, kaya hindi na kita pinansin. sorry ha!?! mabuti naisip mo itanong pa rin dito yung problem mo. good luck.

I am experiencing the same

ren guray's picture

I am experiencing the same problem, will the solution above (editing the base URL) work even if the urls are unclean?
The host I am using does not allow .htaccess file and the sys admins insists that their server supports clean urls (but it doesn't work on my site)...

Ren

=========================
hacking away one code at a time

hello ren guray, just try

borrico1965's picture

hello ren guray,

just try implementing the suggested solution. if it does not produce the desired result, perhaps the problem is somewhere else.

alternatively, you can comment-out the code by doing so:

/**$base_url = 'http://your-domain-name'; // NO trailing slash!*/

make sure you edit and save using Notepad or equivalent text-editor applications.

good luck.

That was quick, thanks!

ren guray's picture

Will do that as soon as we could re-upload the site. I haven't tried changing the base url code, hopefully this will do the trick. I'll post an update after.

Ren

=========================
hacking away one code at a time

No problem, find your

cmcintosh's picture

No problem, find your settings.php file on your remote host, then look for $base_url, make sure that is equal to your remote hosts url(IE where the whole world sees your site).

Some good Reading:
http://drupal.org/node/43619

clean URLs

mhike's picture

Thanks to all.
Test site is working fine now. I posted a picture for testing purposes. However, after posting a comment for that picture, and click the comment link, the picture disappears, but the comment is visible. This happens only when cleanURL is enabled, but if it is disabled, it works fine. What could be the possible solution?

Hi mhike, poidi ma view yung

borrico1965's picture

Hi mhike,
poidi ma view yung test site mo? ano ba domain name? kahit hindi mo ako bigyan log-in username and password, view ko lang bilang anonymous-user. baka ma diagnosis ko ang problem kung nakalog-out. thanks.

test site

mhike's picture

//mindsource.x10.mx/
user: tester
pass: pass123
free hosting lang po ito. baka yun din problem.
Thanks.
Meron po ba kayo ma recommend free site with good video tutorials for drupal for begginer to advance.

pansin ko version 6.17 pa

borrico1965's picture

pansin ko version 6.17 pa yung drupal mo. baka pwede mo i-update to version 6.20, mas secure yun.

fyi, medyo delikado ginagawa mo na binibigyan mo ka-agad ng admin rights yung mga tester users. anyway, wag mo na lang patagalin na ganito, alisin mo mamya. send mo by contact module yung tester username and password sa mga gusto mong mag-log-in. one username per person. para alam mo rin kung sino ang naglog-in at nag view sa site mo.

@jhayzhon - salamat sumali ka rin dito. ;)

When building themes that you

cmcintosh's picture

When building themes that you are embedding images I always use this php snippet:

<? print drupal_get_path('theme', ''); ?>/PATH TO IMAGE IN THEME FOLDER

doing the above lets drupal handle the paths, it works for modules as well.

try this. Edit your .htaccess

mjgruta's picture

try this.

Edit your .htaccess and uncomment this.

find and change this
#RewriteBase /

to this

RewriteBase /

It should work now because I tested it. =)

EDIT: forgot to add < code >

clean URLs ok

mhike's picture

Jhayzon and borrico.
Thanks sa suggestion. I already deleted that test user.
Already uncomment that RewriteBase / two days ago without benefit.
RewriteBase / lang po ba or may additional codes pa?
At this time, its already ok. Meron po ba nag ayos sa inyo?

Ako nag-log-in lang at nag

borrico1965's picture

Ako nag-log-in lang at nag post ng comment. baka si jhayzhon ang nag-fix.
reminder: email mo sa akin yung email address mo via contact module. hare ko sa yo mga tutorial ng mga attendees ng feb 26 meet-up.

tutorials

mhike's picture

Di ko pa po kabisado tong contact module, anyways eto po ang email ko ---(sent reply). Pakisend na lang po dun yung tutorials. Malaking tulong talaga kayo sa akin. Self study lang kasi ako. God bless sa inyo.

ang ibig sabihin ko, contact

borrico1965's picture

ang ibig sabihin ko, contact module dito sa groups.drupal.org./philippines (gdo). kung ko-contact-takin mo ko, punta ka dito: borrico1965. makakasend ka ng email sa akin kahit hindi mo kita email-address ko. regards.

ps. dapat naka log-in ka pala kung contact mo ibang gdo members.

I created an account on

mjgruta's picture

I created an account on x10hosting to test your problem about clean url and it seams that adding or uncommenting this ( RewriteBase / ) to .htaccess solved the problem about clean url.

The problem is fixed by configuring IMCE

danreb's picture

There is a Common settings field-set/link here - > admin/settings/imce , by ticking the checkbox which says Absolute URLs , IMCE image insertion will return an absolute URL for your Drupal's image file location, this will avoid broken / missing link for your inserted image even if clean URL settings are in On / OFF state.

Heto yung naging problema nung site mo kaya nawawala yung image pag na ka on yung clean URL. And suggestion, install transliteration module this will sanitize file name of your uploaded image assets.

Napansin ko kasi na yung name ng image mo contains spaces, avoid spaces in your image file name, it cause problem, broken image is one of them.

@mhike, I agree with sir

calmher's picture

@mhike, I agree with sir Danreb about the URLs of your images. Might I suggest the Wysiwyg module which integrates beautifully with ckeditor & imce too.

@danreb, thanks so much for the tip on Transliteration Module - very very helpful with my project right now.

fixing image link

mhike's picture

sir Danreb, thanks.

THANKS!

tiramizu888's picture

Thank you guys and girls for all replies to this thread. Sorry if can't message you one by one. I appreciate it very much for your kind and responsive messages. :)

Need ur HELP Drupal Group

tiramizu888's picture

Please visit the website that I created using wordpress. Then after navigating through the site, click the SURVEY menu at the right side of the navbar located at the topmost of the page. Thanks again!

hello tiramizu888, what is

borrico1965's picture

hello tiramizu888, what is the domain-name of your website powered by wordpress, if i may ask? MTKS!

and yeah, ako na din pala ang nag on ng clean URL

danreb's picture

dun sa website mo, napadaan lang, kaya sinamantala ko na, I'll take the opportunity to enable clean URL for you and check IMCE settings and the inserted image.

kudos to sir danreb! thank

borrico1965's picture

kudos to sir danreb! thank you for joining and explaining. ako din natuto.

@tiramizu888 - pasensya ka na. ginamit namin post mo para matulungan itong si mhike.

40+ Essential Drupal

mjgruta's picture

40+ Essential Drupal Modules
01.04.2010
http://www.nicklewis.org/40-essential-drupal-6-modules

Very helpful kapag starting ka sa drupal.

Thanks!

calmher's picture

Very helpful indeed,

Although I prefer AddThis Module over Service Links :)

title

mhike's picture

hi to all,
I tried to search how can I hide the title of the post, but I cant find an effective way. Kindly help. Thanks. Sorry if I posted in wrong section.

hi mhike, try inputting

borrico1965's picture

hi mhike,
try inputting <none> to the title field.
Or leave blank the menu-settings of the post.

Taking Out The Title

calmher's picture

Hi mhike,

I was trying to look for the exact node in drupal.org but couldn't find it anymore. You can add this to the template.php of your custom theme:

function your-theme-name_preprocess_page(&$vars) {

  // Titles are ignored by content type when they are not desired in the design.
  $vars['original_title'] = $vars['title'];
  if (!empty($vars['node']) && in_array($vars['node']->type, array('page','story'))) {
    $vars['title'] = '';
  }

}

Where 'your-theme-name' is the name of the custom theme you're using right now and 'page' and/or 'story' are the content types of the title you want to hide.

Hope that helps :)

auto_nodetitle

nathanjo's picture

Try looking this module auto_nodetitle.
Mas maganda every new topic create new discussion or try logging into our irc channel #drupal-ph or #drupal-support, #drupal (Freenode) if you need a quick help.

title field

mhike's picture

thanks sir borrico, nag prompt po na title field is required pag blank lang, pag , nag aappear naman yung none.

hi mhike, you can try the

borrico1965's picture

hi mhike,
you can try the suggestion of calmher.
just is in case you want another way, try saving your post un-promoted from the frontage by doing the following:
1. at http://domain-name/node/add/page or http://domain-name/node/add/story or http://domain-name/node/add/any-content-type, scroll-down to "Publishing options".
2. un-check "Promoted to frontpage". Then, save your post.
3. to view your post, make sure you enabled "Tracker" module in "Core-optional" at http://domain-name/admin/build/modules/list.
4. find and view your post at http://domain-name/?q=tracker or http://domain-name/tracker.
Together with leaving blank the "Menu Link title" at "Menu settings", your post will not appear in any page, only in number 4 above.
hope that helps.

still not working

mhike's picture

Hi, I tried the suggestion of calmher, but the content requires title field and it still showed on front page. Anyways, Im using acquiadrupal in localhost. also tried the autonodetitle, but it did not show in the modules section. Just want to hide the title on front page in some posts if possible. Thanks.

Preprocess_page { }

calmher's picture

What kind of Content is it? If you just want to take out the title in the front page, you could also put something like this in your template.php

function your-theme-name_preprocess_page(&$vars) {
    if (drupal_is_front_page()) {
        $vars['title'] = NULL;
        }
     }

just change your-theme-name to the name of your custom theme :)

Another work around is using an if statement in your page.tpl.php, just locate where acquiadrupal prints the $title or $node -> title and wrap an if statement around it, e.g.

<?php if(!$is_front): ?>
     <?php print $node -> title; ?>
<?php endif; ?>

This will only print the title if it's not the front page.

hi mhike, If you apply

borrico1965's picture

hi mhike,
If you apply calmher's suggestion, you will still have to input a Title. What the code does is to hide the Title, assuming you enabled and set to Default the Theme where calmher's code is used.
Have you tried Exclude Node Title module? In this module, you will still have to input a Title also.
Hope these help.

I think yung only works for

iamrasec's picture

I think yung <none> only works for blocks. You can remove the node title by removing <?php print $title; ?> in page-front.tpl.php.

what kind of style is your

mjgruta's picture

what kind of style is your front page? is it a listing of nodes like blogs? or a blocks of nodes?
maybe you can use views to create your front page then use attachment to add some blocks or other nodes then just add the node:body on fields if you don't want to add the node:title. This is what I did on my first drupal website(Drupal 7). I don't know if this is the right way because I'm still new to drupal.

hi mhike, when this issue of

borrico1965's picture

hi mhike,
when this issue of hiding node title is resolved, please heed the suggestion of nathanjo, (please click here), that every new topic or issue is a new posting. para madali mag-navigate at i-locate yung issue or topic.
thanks.

Philippines

Group organizers

Group categories

Post category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: