Jump to content


Photo

Using Twitter Bootstrap

templates

  • Please log in to reply
5 replies to this topic

#1 Gazley

Gazley

    Sr. Member

  • Members
  • PipPipPipPip
  • 239 posts
  • 38

  • LocationManchester, UK

Posted 07 August 2012 - 05:43 PM

Hi there,

I want to use Bootstrap with my templates. This may seem a very obvious question but am I correct to assume that you simply add the various Bootstrap folders in to the PW templates folder?

Normally, the pathing in Bootstrap is relative to the location of the page(s) in the site structure. However, I am unsure how PW utilises the template folder when pages are actually being served. I hope you understand what I am trying to say here :)

Any thoughts around this one would be appreciated!

Thanks

--Gary

#2 SiNNuT

SiNNuT

    Sr. Member

  • Members
  • PipPipPipPip
  • 366 posts
  • 231

Posted 07 August 2012 - 05:51 PM

You are correct, just make sure you supply the correct path in your template code. something like:
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>bootstrap/styles.css" />


#3 Gazley

Gazley

    Sr. Member

  • Members
  • PipPipPipPip
  • 239 posts
  • 38

  • LocationManchester, UK

Posted 08 August 2012 - 01:48 AM

Cool - thanks for the confirmation! :)

#4 Gazley

Gazley

    Sr. Member

  • Members
  • PipPipPipPip
  • 239 posts
  • 38

  • LocationManchester, UK

Posted 08 August 2012 - 09:15 AM

Hey there, just a quick heads-up, I'm now displaying my Bootstrap enabled page(s) thanks to your advice! :)

Regards

--Gary

#5 onjegolders

onjegolders

    Hero Member

  • Members
  • PipPipPipPipPip
  • 799 posts
  • 207

  • LocationMidlands, UK

Posted 09 August 2012 - 10:32 AM

Good stuff, am also operating a couple of sites with PW and Bootstrap, as easy as linking to the css and js files.

#6 Biorn

Biorn

    Distinguished Member

  • Members
  • PipPip
  • 28 posts
  • 9

  • LocationOdense, Denmark

Posted 10 August 2012 - 06:59 PM

Try this little thing I cooked up in a hurry.. Its not 100%..
https://dl.dropbox.c...rocessStrap.zip
And you have to edit the .htaccess file, so you can access PHP files i the template folder..

Cheers..
Best regards

Biorn Christiansen
ChrisB.dk
Bredstedgade 6 st th
DK 5000 Odense C





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users