1
jamieh
#include style command for custom blocks
  • 2004/1/26 16:06

  • jamieh

  • Just popping in

  • Posts: 4

  • Since: 2004/1/24



I have a number of customized blocks which get updated many times a day, and it's wasteful to have to go into the control panel to edit these blocks.

Also, I'm forced to give relatively unexperienced people access to the control panel so that they can make these changes.

An option to use an external file instead of writing the code in the control panel would be very useful to me.

Jamie


2
studioC
Re: #include style command for custom blocks
  • 2004/1/26 17:03

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello jamie,
hope i understand correctly...

xoops is very flexible..
to solve this you can create "general" block-classes in your style.css of that tags used often in your blocks...

you can also load a second style-file if you like, but attention not to call same classe twice....

<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_imageurl}>style2.css" /> will do this for you!

<{$xoops_imageurl}> will always lead you in your actual themefolder...


michael


3
kahumbu
Re: #include style command for custom blocks
  • 2004/1/26 19:30

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


You can use the basic include funtion of PHP in your custom block and save the block as PHP. Just do not include any PHP tags to 'enclose' your include script. Do a search in the forum on how to write PHP in Custom Blocks.

Hope this helps! Good luck!

4
jamieh
Re: #include style command for custom blocks
  • 2004/1/31 1:29

  • jamieh

  • Just popping in

  • Posts: 4

  • Since: 2004/1/24


Thanks, I think that will help.

Login

Who's Online

224 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits